diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_bans.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_bans.yaml index e64e38a..79ae65b 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_bans.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_bans.yaml @@ -19,10 +19,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -47,10 +47,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -63,7 +64,7 @@ uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -75,10 +76,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -125,10 +127,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -188,10 +190,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -251,10 +253,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -279,10 +281,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -295,7 +298,7 @@ uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -307,10 +310,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -357,10 +361,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -420,10 +424,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -483,10 +487,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -546,10 +550,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -574,10 +578,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -624,10 +629,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -652,10 +657,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -680,7 +686,7 @@ uri: http://localhost:9001/3.0/lists/test_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -693,7 +699,7 @@ uri: http://localhost:9001/3.0/lists/test_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -705,10 +711,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_bans_add_ban.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_bans_add_ban.yaml index 4226b61..490e718 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_bans_add_ban.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_bans_add_ban.yaml @@ -6,10 +6,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -34,10 +35,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -49,10 +51,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: - body: {string: !!python/unicode '{"http_etag": "\"3f2107d752512a58b966f626957a8a21f2280abd\"", - "total_size": 1, "entries": [{"email": "banned@example.com", "list_id": "test_list.example.com", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com", - "http_etag": "\"f97c7e71d9d67fe90f1f8d98429c3fa6a5c76f3d\""}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "banned@example.com", + "http_etag": "\"f97c7e71d9d67fe90f1f8d98429c3fa6a5c76f3d\"", "list_id": "test_list.example.com", + "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com"}], + "http_etag": "\"3f2107d752512a58b966f626957a8a21f2280abd\"", "start": 0, "total_size": + 1}'} headers: content-length: ['327'] content-type: [application/json; charset=utf-8] @@ -64,10 +67,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: - body: {string: !!python/unicode '{"http_etag": "\"3f2107d752512a58b966f626957a8a21f2280abd\"", - "total_size": 1, "entries": [{"email": "banned@example.com", "list_id": "test_list.example.com", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com", - "http_etag": "\"f97c7e71d9d67fe90f1f8d98429c3fa6a5c76f3d\""}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "banned@example.com", + "http_etag": "\"f97c7e71d9d67fe90f1f8d98429c3fa6a5c76f3d\"", "list_id": "test_list.example.com", + "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com"}], + "http_etag": "\"3f2107d752512a58b966f626957a8a21f2280abd\"", "start": 0, "total_size": + 1}'} headers: content-length: ['327'] content-type: [application/json; charset=utf-8] @@ -79,10 +83,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -94,9 +99,9 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com response: - body: {string: !!python/unicode '{"email": "banned@example.com", "list_id": "test_list.example.com", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com", - "http_etag": "\"f97c7e71d9d67fe90f1f8d98429c3fa6a5c76f3d\""}'} + body: {string: !!python/unicode '{"email": "banned@example.com", "http_etag": + "\"f97c7e71d9d67fe90f1f8d98429c3fa6a5c76f3d\"", "list_id": "test_list.example.com", + "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com"}'} headers: content-length: ['222'] content-type: [application/json; charset=utf-8] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_bans_add_duplicate.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_bans_add_duplicate.yaml index 04d407c..e35b4d9 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_bans_add_duplicate.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_bans_add_duplicate.yaml @@ -6,10 +6,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -34,9 +35,9 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com response: - body: {string: !!python/unicode '{"email": "banned@example.com", "list_id": "test_list.example.com", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com", - "http_etag": "\"f97c7e71d9d67fe90f1f8d98429c3fa6a5c76f3d\""}'} + body: {string: !!python/unicode '{"email": "banned@example.com", "http_etag": + "\"f97c7e71d9d67fe90f1f8d98429c3fa6a5c76f3d\"", "list_id": "test_list.example.com", + "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com"}'} headers: content-length: ['222'] content-type: [application/json; charset=utf-8] @@ -48,10 +49,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -76,10 +78,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -91,10 +94,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: - body: {string: !!python/unicode '{"http_etag": "\"3f2107d752512a58b966f626957a8a21f2280abd\"", - "total_size": 1, "entries": [{"email": "banned@example.com", "list_id": "test_list.example.com", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com", - "http_etag": "\"f97c7e71d9d67fe90f1f8d98429c3fa6a5c76f3d\""}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "banned@example.com", + "http_etag": "\"f97c7e71d9d67fe90f1f8d98429c3fa6a5c76f3d\"", "list_id": "test_list.example.com", + "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com"}], + "http_etag": "\"3f2107d752512a58b966f626957a8a21f2280abd\"", "start": 0, "total_size": + 1}'} headers: content-length: ['327'] content-type: [application/json; charset=utf-8] @@ -106,10 +110,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: - body: {string: !!python/unicode '{"http_etag": "\"3f2107d752512a58b966f626957a8a21f2280abd\"", - "total_size": 1, "entries": [{"email": "banned@example.com", "list_id": "test_list.example.com", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com", - "http_etag": "\"f97c7e71d9d67fe90f1f8d98429c3fa6a5c76f3d\""}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "banned@example.com", + "http_etag": "\"f97c7e71d9d67fe90f1f8d98429c3fa6a5c76f3d\"", "list_id": "test_list.example.com", + "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com"}], + "http_etag": "\"3f2107d752512a58b966f626957a8a21f2280abd\"", "start": 0, "total_size": + 1}'} headers: content-length: ['327'] content-type: [application/json; charset=utf-8] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_bans_del_ban.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_bans_del_ban.yaml index bc01a15..81c50b9 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_bans_del_ban.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_bans_del_ban.yaml @@ -6,10 +6,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -34,9 +35,9 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com response: - body: {string: !!python/unicode '{"email": "banned@example.com", "list_id": "test_list.example.com", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com", - "http_etag": "\"f97c7e71d9d67fe90f1f8d98429c3fa6a5c76f3d\""}'} + body: {string: !!python/unicode '{"email": "banned@example.com", "http_etag": + "\"f97c7e71d9d67fe90f1f8d98429c3fa6a5c76f3d\"", "list_id": "test_list.example.com", + "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com"}'} headers: content-length: ['222'] content-type: [application/json; charset=utf-8] @@ -48,10 +49,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -63,10 +65,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: - body: {string: !!python/unicode '{"http_etag": "\"3f2107d752512a58b966f626957a8a21f2280abd\"", - "total_size": 1, "entries": [{"email": "banned@example.com", "list_id": "test_list.example.com", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com", - "http_etag": "\"f97c7e71d9d67fe90f1f8d98429c3fa6a5c76f3d\""}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "banned@example.com", + "http_etag": "\"f97c7e71d9d67fe90f1f8d98429c3fa6a5c76f3d\"", "list_id": "test_list.example.com", + "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned@example.com"}], + "http_etag": "\"3f2107d752512a58b966f626957a8a21f2280abd\"", "start": 0, "total_size": + 1}'} headers: content-length: ['327'] content-type: [application/json; charset=utf-8] @@ -89,10 +92,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -105,7 +109,7 @@ uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_bans_del_unknown_ban.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_bans_del_unknown_ban.yaml index eb20193..a663f84 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_bans_del_unknown_ban.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_bans_del_unknown_ban.yaml @@ -6,10 +6,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -33,10 +34,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -49,7 +51,7 @@ uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -61,10 +63,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -77,7 +80,7 @@ uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_bans_delete_forms.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_bans_delete_forms.yaml index a3be384..dc90b28 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_bans_delete_forms.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_bans_delete_forms.yaml @@ -6,10 +6,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -138,10 +139,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "test_list", - "display_name": "Test_list", "list_id": "test_list.example.com", "fqdn_listname": - "test_list@example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\""}'} + 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] @@ -153,26 +155,27 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: - body: {string: !!python/unicode '{"http_etag": "\"e4ba18e67f3919a7a8d4fa7ed61bf1432bae9f12\"", - "total_size": 9, "entries": [{"email": "banned1@example.com", "list_id": "test_list.example.com", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned1@example.com", - "http_etag": "\"31fd4b12c69f84bd2bda2111c15b15eced1f890f\""}, {"email": "banned2@example.com", - "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned2@example.com", - "http_etag": "\"ba6d0d5c1d9a927137dcb6b29d74ab571449be86\""}, {"email": "banned3@example.com", - "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned3@example.com", - "http_etag": "\"c659ef9d7966a17bd73be06cec34fe7eedffe518\""}, {"email": "banned4@example.com", - "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned4@example.com", - "http_etag": "\"f7f52a9b77481b0221e185b2ad1ac0e92be1df5e\""}, {"email": "banned5@example.com", - "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned5@example.com", - "http_etag": "\"e8c1f85a8852257519387b125c10b195a02b37fd\""}, {"email": "banned6@example.com", - "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned6@example.com", - "http_etag": "\"f4d4a3159b921ecc7fcb0ac4736ab592d66ac85f\""}, {"email": "banned7@example.com", - "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned7@example.com", - "http_etag": "\"24739d710562601a44c0c7ef70f18c473d099a9e\""}, {"email": "banned8@example.com", - "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned8@example.com", - "http_etag": "\"aa77f6b65a38219393dbdf81fff7ce94e67ea4bb\""}, {"email": "banned9@example.com", - "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned9@example.com", - "http_etag": "\"51bbc9a5717cac6db2d258e677e8fcaeb0863355\""}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "banned1@example.com", + "http_etag": "\"31fd4b12c69f84bd2bda2111c15b15eced1f890f\"", "list_id": "test_list.example.com", + "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned1@example.com"}, + {"email": "banned2@example.com", "http_etag": "\"ba6d0d5c1d9a927137dcb6b29d74ab571449be86\"", + "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned2@example.com"}, + {"email": "banned3@example.com", "http_etag": "\"c659ef9d7966a17bd73be06cec34fe7eedffe518\"", + "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned3@example.com"}, + {"email": "banned4@example.com", "http_etag": "\"f7f52a9b77481b0221e185b2ad1ac0e92be1df5e\"", + "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned4@example.com"}, + {"email": "banned5@example.com", "http_etag": "\"e8c1f85a8852257519387b125c10b195a02b37fd\"", + "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned5@example.com"}, + {"email": "banned6@example.com", "http_etag": "\"f4d4a3159b921ecc7fcb0ac4736ab592d66ac85f\"", + "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned6@example.com"}, + {"email": "banned7@example.com", "http_etag": "\"24739d710562601a44c0c7ef70f18c473d099a9e\"", + "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned7@example.com"}, + {"email": "banned8@example.com", "http_etag": "\"aa77f6b65a38219393dbdf81fff7ce94e67ea4bb\"", + "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned8@example.com"}, + {"email": "banned9@example.com", "http_etag": "\"51bbc9a5717cac6db2d258e677e8fcaeb0863355\"", + "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned9@example.com"}], + "http_etag": "\"e4ba18e67f3919a7a8d4fa7ed61bf1432bae9f12\"", "start": 0, "total_size": + 9}'} headers: content-length: ['2137'] content-type: [application/json; charset=utf-8] @@ -184,26 +187,27 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: - body: {string: !!python/unicode '{"http_etag": "\"e4ba18e67f3919a7a8d4fa7ed61bf1432bae9f12\"", - "total_size": 9, "entries": [{"email": "banned1@example.com", "list_id": "test_list.example.com", - "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned1@example.com", - "http_etag": "\"31fd4b12c69f84bd2bda2111c15b15eced1f890f\""}, {"email": "banned2@example.com", - "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned2@example.com", - "http_etag": "\"ba6d0d5c1d9a927137dcb6b29d74ab571449be86\""}, {"email": "banned3@example.com", - "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned3@example.com", - "http_etag": "\"c659ef9d7966a17bd73be06cec34fe7eedffe518\""}, {"email": "banned4@example.com", - "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned4@example.com", - "http_etag": "\"f7f52a9b77481b0221e185b2ad1ac0e92be1df5e\""}, {"email": "banned5@example.com", - "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned5@example.com", - "http_etag": "\"e8c1f85a8852257519387b125c10b195a02b37fd\""}, {"email": "banned6@example.com", - "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned6@example.com", - "http_etag": "\"f4d4a3159b921ecc7fcb0ac4736ab592d66ac85f\""}, {"email": "banned7@example.com", - "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned7@example.com", - "http_etag": "\"24739d710562601a44c0c7ef70f18c473d099a9e\""}, {"email": "banned8@example.com", - "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned8@example.com", - "http_etag": "\"aa77f6b65a38219393dbdf81fff7ce94e67ea4bb\""}, {"email": "banned9@example.com", - "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned9@example.com", - "http_etag": "\"51bbc9a5717cac6db2d258e677e8fcaeb0863355\""}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "banned1@example.com", + "http_etag": "\"31fd4b12c69f84bd2bda2111c15b15eced1f890f\"", "list_id": "test_list.example.com", + "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned1@example.com"}, + {"email": "banned2@example.com", "http_etag": "\"ba6d0d5c1d9a927137dcb6b29d74ab571449be86\"", + "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned2@example.com"}, + {"email": "banned3@example.com", "http_etag": "\"c659ef9d7966a17bd73be06cec34fe7eedffe518\"", + "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned3@example.com"}, + {"email": "banned4@example.com", "http_etag": "\"f7f52a9b77481b0221e185b2ad1ac0e92be1df5e\"", + "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned4@example.com"}, + {"email": "banned5@example.com", "http_etag": "\"e8c1f85a8852257519387b125c10b195a02b37fd\"", + "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned5@example.com"}, + {"email": "banned6@example.com", "http_etag": "\"f4d4a3159b921ecc7fcb0ac4736ab592d66ac85f\"", + "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned6@example.com"}, + {"email": "banned7@example.com", "http_etag": "\"24739d710562601a44c0c7ef70f18c473d099a9e\"", + "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned7@example.com"}, + {"email": "banned8@example.com", "http_etag": "\"aa77f6b65a38219393dbdf81fff7ce94e67ea4bb\"", + "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned8@example.com"}, + {"email": "banned9@example.com", "http_etag": "\"51bbc9a5717cac6db2d258e677e8fcaeb0863355\"", + "list_id": "test_list.example.com", "self_link": "http://localhost:9001/3.0/lists/test_list.example.com/bans/banned9@example.com"}], + "http_etag": "\"e4ba18e67f3919a7a8d4fa7ed61bf1432bae9f12\"", "start": 0, "total_size": + 9}'} headers: content-length: ['2137'] content-type: [application/json; charset=utf-8] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_members.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_members.yaml index ac6fdf8..3f3f872 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members.yaml @@ -19,10 +19,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -82,10 +82,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] 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 adb7188..65671e5 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml @@ -19,10 +19,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -47,10 +47,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/286251951282443815856066149849766342077'] + location: ['http://localhost:9001/3.0/members/9'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,7 +79,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/290291651328520240611632842902112196688'] + location: ['http://localhost:9001/3.0/members/10'] status: {code: 201, message: Created} - request: body: null @@ -123,10 +123,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -151,10 +151,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -170,7 +170,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/138360125371808536789730292505008477791'] + location: ['http://localhost:9001/3.0/members/11'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -183,7 +183,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/212007934930262850369418714569449291660'] + location: ['http://localhost:9001/3.0/members/12'] status: {code: 201, message: Created} - request: body: null @@ -227,10 +227,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -255,10 +255,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -274,7 +274,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/16188549390915332942556807930498728235'] + location: ['http://localhost:9001/3.0/members/13'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -287,7 +287,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/105396767391427854244602718608187066500'] + location: ['http://localhost:9001/3.0/members/14'] status: {code: 201, message: Created} - request: body: null @@ -331,10 +331,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -359,10 +359,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -378,7 +378,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/298362971165320631316849803686479069626'] + location: ['http://localhost:9001/3.0/members/15'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -391,7 +391,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/120392520381115878345812784410997152741'] + location: ['http://localhost:9001/3.0/members/16'] status: {code: 201, message: Created} - request: body: null @@ -400,10 +400,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -427,15 +427,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"61d8a3cc4a7060752d052a78350d31183167350a\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 298362971165320631316849803686479069626, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/298362971165320631316849803686479069626", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"aafda4fc6bdcdfe2637b0b169ee9c3cf125b6fa5\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"4836d2dd1f4a635e0c2c68676401e7aac4b041d2\"", + "list_id": "foo.example.com", "member_id": 15, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/15", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"7fda7ca54850aa6bcc32a857e05f1b67f4fd112c\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['597'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -445,15 +444,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"93a2b35741f6e053f758033fb40fae79601a5989\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 120392520381115878345812784410997152741, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/120392520381115878345812784410997152741", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"114ee514b4501e3b2907740328a18090b1e85101\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"e37384d6114ae66b8992af01f6cdac80a8a1518d\"", "list_id": "foo.example.com", + "member_id": 16, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/16", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"05883ee672508b5b66a3270c4c9f215e08d264b2\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -498,10 +497,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -526,10 +525,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -545,7 +544,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/78753872982914149100117528927027255925'] + location: ['http://localhost:9001/3.0/members/17'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -558,7 +557,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/54155563085598261694515620345937128126'] + location: ['http://localhost:9001/3.0/members/18'] status: {code: 201, message: Created} - request: body: null 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 db049d0..d876859 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml @@ -6,10 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -21,11 +21,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"55e86723504466b64db8f6b5f5201fa204102963\"", - "user_id": 126455316482294391934516094526453555812, "self_link": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "created_on": "2016-01-23T01:15:50.522083", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"b774d488fd2356b7bedf0e6fa4a26dc70dc2b02b\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/6", "user_id": 6}'} headers: - content-length: ['271'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -33,15 +33,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/126455316482294391934516094526453555812/addresses + uri: http://localhost:9001/3.0/users/6/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"ccbd535acdb220da09aa6655766b3aee8ab881d7\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "self_link": "http://localhost:9001/3.0/addresses/moderator@example.com", - "original_email": "moderator@example.com", "http_etag": "\"570144bc68ad6640e8ef28e641e937bfea699d70\"", - "registered_on": "2016-01-23T01:15:50.499980"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", + "http_etag": "\"ec747dd7d53c1dc2e3dac5df82b3757518dc89d1\"", "original_email": + "moderator@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"e912c0fa7b456f2f4b6f1841ae6d573072b49f2b\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['447'] + content-length: ['402'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -51,15 +52,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"f8c8ba4bb26185e63a356e40de5a13b82f7b4769\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 286251951282443815856066149849766342077, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/286251951282443815856066149849766342077", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"436de161dfe08176fd07493e2c4741d70732ff69\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"e954ac08bd224de03551765da8c594b25fa78a14\"", + "list_id": "foo.example.com", "member_id": 9, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/9", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"421b1403f5702076a932c6e83cc5e6ee9dd3d2c1\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['597'] + content-length: ['483'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -69,15 +69,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"d3791fadede1b625388e1445934d9ea48de9664d\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 290291651328520240611632842902112196688, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/290291651328520240611632842902112196688", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"48ef8355e05cf7c608c1d2aa63021e769b493a50\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"f24c248b914be898eca0cc45afd0e46da0e43538\"", "list_id": "foo.example.com", + "member_id": 10, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/10", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"88546319f2cb2dcbb4e7532df77e7210870be9fb\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -87,10 +87,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -102,11 +102,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"59b7f59deaf4d330b7d43e914f0092a44d1308b1\"", - "user_id": 119658018821760135569595540350577395485, "self_link": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "created_on": "2016-01-23T01:15:50.422832", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"637c12d15eb0203c9ffac9ea2d5ac8605d18e38d\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/5", "user_id": 5}'} headers: - content-length: ['271'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -114,15 +114,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/119658018821760135569595540350577395485/addresses + uri: http://localhost:9001/3.0/users/5/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"eab92461cf51275242a1b9c26bd339095f9ba946\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", "original_email": - "owner@example.com", "http_etag": "\"bf581fd0c1a24635e12b4f376eefb017acef9c1c\"", - "registered_on": "2016-01-23T01:15:50.397330"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": + "\"d69637140095e2552943e259d5cfb5258b3acafa\"", "original_email": "owner@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", + "user": "http://localhost:9001/3.0/users/5"}], "http_etag": "\"abd6991d7cfc1ad5563ad5020a42c2ec5b88538a\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['435'] + content-length: ['390'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -132,15 +132,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"7cbfe251e321fefe7136197dfd448d9ff9ec5b7d\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 138360125371808536789730292505008477791, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/138360125371808536789730292505008477791", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"5301b85bc5f436a602ac6a6d0a24865edfbce579\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"e74d02cc776fe0401b0e48c1125fe629dda8604c\"", + "list_id": "foo.example.com", "member_id": 11, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/11", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"50c7343675aeac50c12505149b2c35c323664c7e\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['597'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -150,15 +149,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"fbb19a634ecabe47c2e04c25e78e98f631477163\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 212007934930262850369418714569449291660, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/212007934930262850369418714569449291660", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"70a321fa2adfb4b3b25c795e1f8151254e3b966a\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"aed24da483570207355c924912d06b4d7f66d457\"", "list_id": "foo.example.com", + "member_id": 12, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/12", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"81087c4d1e54a5c52dcb6c26870d9d851ab73c1f\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -168,10 +167,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -184,7 +183,7 @@ uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=1&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -197,7 +196,7 @@ uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -209,10 +208,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -225,7 +224,7 @@ uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=1&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -238,7 +237,7 @@ uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=25&page=1 response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_members_search_members.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_members_search_members.yaml index 91b43cc..5adbe5e 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members_search_members.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members_search_members.yaml @@ -6,10 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -25,7 +25,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/284719724064515935086069516862239734444'] + location: ['http://localhost:9001/3.0/members/19'] status: {code: 201, message: Created} - request: body: display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=member-2%40example.com @@ -38,7 +38,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/206453578658078741292660142486334627939'] + location: ['http://localhost:9001/3.0/members/20'] status: {code: 201, message: Created} - request: body: null @@ -47,10 +47,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 2, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"4d9bc85dd33a55faefff3ccbbf04ab14a6889a98\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"4d9bc85dd33a55faefff3ccbbf04ab14a6889a98\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 2, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -62,15 +62,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/members/find?count=1&list_id=foo.example.com&page=1&role=member&subscriber=%2Aexample.com%2A response: - body: {string: !!python/unicode '{"http_etag": "\"2eac5c0aca9351d562f2eba672b5e49174ebad01\"", - "total_size": 2, "entries": [{"email": "member-1@example.com", "user": "http://localhost:9001/3.0/users/260079548535446176603032346709171362117", - "member_id": 284719724064515935086069516862239734444, "role": "member", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/284719724064515935086069516862239734444", - "address": "http://localhost:9001/3.0/addresses/member-1@example.com", "http_etag": - "\"e4383dc9117f3cf917c1004a48beb9e90769ca8d\"", "moderation_action": "defer"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/member-1@example.com", + "delivery_mode": "regular", "email": "member-1@example.com", "http_etag": + "\"46788223fde9c9dff2d2ceecd6b131690a911740\"", "list_id": "foo.example.com", + "member_id": 19, "moderation_action": "defer", "role": "member", "self_link": + "http://localhost:9001/3.0/members/19", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"03a7a0eae1852d442b4383f883d0354c5962c091\"", "start": 0, "total_size": + 2}'} headers: - content-length: ['603'] + content-length: ['491'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -80,20 +80,19 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/members/find?count=25&list_id=foo.example.com&page=1&role=member&subscriber=%2Aexample.com%2A response: - body: {string: !!python/unicode '{"http_etag": "\"bebf223795ae7843a9d92a3dc37eb15d1c47a4f7\"", - "total_size": 2, "entries": [{"email": "member-1@example.com", "user": "http://localhost:9001/3.0/users/260079548535446176603032346709171362117", - "member_id": 284719724064515935086069516862239734444, "role": "member", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/284719724064515935086069516862239734444", - "address": "http://localhost:9001/3.0/addresses/member-1@example.com", "http_etag": - "\"e4383dc9117f3cf917c1004a48beb9e90769ca8d\"", "moderation_action": "defer"}, - {"email": "member-2@example.com", "user": "http://localhost:9001/3.0/users/250258230991159333075849826970336325869", - "member_id": 206453578658078741292660142486334627939, "role": "member", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/206453578658078741292660142486334627939", - "address": "http://localhost:9001/3.0/addresses/member-2@example.com", "http_etag": - "\"2d470f1073da96e9dc0cefdb1b748cfceef37d72\"", "moderation_action": "defer"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/member-1@example.com", + "delivery_mode": "regular", "email": "member-1@example.com", "http_etag": + "\"46788223fde9c9dff2d2ceecd6b131690a911740\"", "list_id": "foo.example.com", + "member_id": 19, "moderation_action": "defer", "role": "member", "self_link": + "http://localhost:9001/3.0/members/19", "user": "http://localhost:9001/3.0/users/7"}, + {"address": "http://localhost:9001/3.0/addresses/member-2@example.com", "delivery_mode": + "regular", "email": "member-2@example.com", "http_etag": "\"3d6051eb54c33307d09bc1c0a48cf84ba59911a7\"", + "list_id": "foo.example.com", "member_id": 20, "moderation_action": "defer", + "role": "member", "self_link": "http://localhost:9001/3.0/members/20", "user": + "http://localhost:9001/3.0/users/8"}], "http_etag": "\"4a3251103c14034604c8a92fe625d775f87a8f4a\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['1103'] + content-length: ['879'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -101,15 +100,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/284719724064515935086069516862239734444 + uri: http://localhost:9001/3.0/members/19 response: - body: {string: !!python/unicode '{"email": "member-1@example.com", "user": "http://localhost:9001/3.0/users/260079548535446176603032346709171362117", - "member_id": 284719724064515935086069516862239734444, "role": "member", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/284719724064515935086069516862239734444", - "address": "http://localhost:9001/3.0/addresses/member-1@example.com", "http_etag": - "\"e4383dc9117f3cf917c1004a48beb9e90769ca8d\"", "moderation_action": "defer"}'} + body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/member-1@example.com", + "delivery_mode": "regular", "email": "member-1@example.com", "http_etag": + "\"46788223fde9c9dff2d2ceecd6b131690a911740\"", "list_id": "foo.example.com", + "member_id": 19, "moderation_action": "defer", "role": "member", "self_link": + "http://localhost:9001/3.0/members/19", "user": "http://localhost:9001/3.0/users/7"}'} headers: - content-length: ['498'] + content-length: ['386'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -117,15 +116,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/206453578658078741292660142486334627939 + uri: http://localhost:9001/3.0/members/20 response: - body: {string: !!python/unicode '{"email": "member-2@example.com", "user": "http://localhost:9001/3.0/users/250258230991159333075849826970336325869", - "member_id": 206453578658078741292660142486334627939, "role": "member", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/206453578658078741292660142486334627939", - "address": "http://localhost:9001/3.0/addresses/member-2@example.com", "http_etag": - "\"2d470f1073da96e9dc0cefdb1b748cfceef37d72\"", "moderation_action": "defer"}'} + body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/member-2@example.com", + "delivery_mode": "regular", "email": "member-2@example.com", "http_etag": + "\"3d6051eb54c33307d09bc1c0a48cf84ba59911a7\"", "list_id": "foo.example.com", + "member_id": 20, "moderation_action": "defer", "role": "member", "self_link": + "http://localhost:9001/3.0/members/20", "user": "http://localhost:9001/3.0/users/8"}'} headers: - content-length: ['498'] + content-length: ['386'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -135,10 +134,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 2, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"4d9bc85dd33a55faefff3ccbbf04ab14a6889a98\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"4d9bc85dd33a55faefff3ccbbf04ab14a6889a98\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 2, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -150,15 +149,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/members/find?count=1&list_id=foo.example.com&page=1&role=member&subscriber=%2Amember-1%2A response: - body: {string: !!python/unicode '{"http_etag": "\"a321cca03a6b1ae30403d4d4ba10f865408cfcf2\"", - "total_size": 1, "entries": [{"email": "member-1@example.com", "user": "http://localhost:9001/3.0/users/260079548535446176603032346709171362117", - "member_id": 284719724064515935086069516862239734444, "role": "member", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/284719724064515935086069516862239734444", - "address": "http://localhost:9001/3.0/addresses/member-1@example.com", "http_etag": - "\"e4383dc9117f3cf917c1004a48beb9e90769ca8d\"", "moderation_action": "defer"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/member-1@example.com", + "delivery_mode": "regular", "email": "member-1@example.com", "http_etag": + "\"46788223fde9c9dff2d2ceecd6b131690a911740\"", "list_id": "foo.example.com", + "member_id": 19, "moderation_action": "defer", "role": "member", "self_link": + "http://localhost:9001/3.0/members/19", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"08b2888a537f05315b4c2f7c4f06ff5ff2874577\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['603'] + content-length: ['491'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -168,15 +167,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/members/find?count=25&list_id=foo.example.com&page=1&role=member&subscriber=%2Amember-1%2A response: - body: {string: !!python/unicode '{"http_etag": "\"a321cca03a6b1ae30403d4d4ba10f865408cfcf2\"", - "total_size": 1, "entries": [{"email": "member-1@example.com", "user": "http://localhost:9001/3.0/users/260079548535446176603032346709171362117", - "member_id": 284719724064515935086069516862239734444, "role": "member", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/284719724064515935086069516862239734444", - "address": "http://localhost:9001/3.0/addresses/member-1@example.com", "http_etag": - "\"e4383dc9117f3cf917c1004a48beb9e90769ca8d\"", "moderation_action": "defer"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/member-1@example.com", + "delivery_mode": "regular", "email": "member-1@example.com", "http_etag": + "\"46788223fde9c9dff2d2ceecd6b131690a911740\"", "list_id": "foo.example.com", + "member_id": 19, "moderation_action": "defer", "role": "member", "self_link": + "http://localhost:9001/3.0/members/19", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"08b2888a537f05315b4c2f7c4f06ff5ff2874577\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['603'] + content-length: ['491'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_members_show_members_page.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_members_show_members_page.yaml index e50ad71..eaf05aa 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members_show_members_page.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members_show_members_page.yaml @@ -6,10 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -25,7 +25,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/48677728311034364519373383633644973454'] + location: ['http://localhost:9001/3.0/members/21'] status: {code: 201, message: Created} - request: body: display_name=None&list_id=foo.example.com&pre_approved=True&pre_confirmed=True&pre_verified=True&subscriber=member-2%40example.com @@ -38,7 +38,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/323402856112996734098135415696586808633'] + location: ['http://localhost:9001/3.0/members/22'] status: {code: 201, message: Created} - request: body: null @@ -47,10 +47,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 2, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"4d9bc85dd33a55faefff3ccbbf04ab14a6889a98\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"4d9bc85dd33a55faefff3ccbbf04ab14a6889a98\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 2, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -62,15 +62,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/roster/member?count=1&page=1 response: - body: {string: !!python/unicode '{"http_etag": "\"5d03e48b265f6a05a8e9bd772ea7305e0f8da7db\"", - "total_size": 2, "entries": [{"email": "member-1@example.com", "user": "http://localhost:9001/3.0/users/260079548535446176603032346709171362117", - "member_id": 48677728311034364519373383633644973454, "role": "member", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/48677728311034364519373383633644973454", - "address": "http://localhost:9001/3.0/addresses/member-1@example.com", "http_etag": - "\"a1c35eb88fd5f6fe1f4c3a4339fc77f66d261760\"", "moderation_action": "defer"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/member-1@example.com", + "delivery_mode": "regular", "email": "member-1@example.com", "http_etag": + "\"c6a73a9e50906134dcc81d2f753889516afd10ed\"", "list_id": "foo.example.com", + "member_id": 21, "moderation_action": "defer", "role": "member", "self_link": + "http://localhost:9001/3.0/members/21", "user": "http://localhost:9001/3.0/users/7"}], + "http_etag": "\"d57151c55186a47ce642e684793dc46c6d5627e2\"", "start": 0, "total_size": + 2}'} headers: - content-length: ['601'] + content-length: ['491'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -80,20 +80,19 @@ 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 '{"http_etag": "\"feadf90f88486925cad573399e6ad53a11faa9dc\"", - "total_size": 2, "entries": [{"email": "member-1@example.com", "user": "http://localhost:9001/3.0/users/260079548535446176603032346709171362117", - "member_id": 48677728311034364519373383633644973454, "role": "member", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/48677728311034364519373383633644973454", - "address": "http://localhost:9001/3.0/addresses/member-1@example.com", "http_etag": - "\"a1c35eb88fd5f6fe1f4c3a4339fc77f66d261760\"", "moderation_action": "defer"}, - {"email": "member-2@example.com", "user": "http://localhost:9001/3.0/users/250258230991159333075849826970336325869", - "member_id": 323402856112996734098135415696586808633, "role": "member", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/323402856112996734098135415696586808633", - "address": "http://localhost:9001/3.0/addresses/member-2@example.com", "http_etag": - "\"0e1da791bb237a208fc96242db3624d7fd2a1d82\"", "moderation_action": "defer"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/member-1@example.com", + "delivery_mode": "regular", "email": "member-1@example.com", "http_etag": + "\"c6a73a9e50906134dcc81d2f753889516afd10ed\"", "list_id": "foo.example.com", + "member_id": 21, "moderation_action": "defer", "role": "member", "self_link": + "http://localhost:9001/3.0/members/21", "user": "http://localhost:9001/3.0/users/7"}, + {"address": "http://localhost:9001/3.0/addresses/member-2@example.com", "delivery_mode": + "regular", "email": "member-2@example.com", "http_etag": "\"b184a3d2fb8d63ee8b632a4de49fc255aa1c809a\"", + "list_id": "foo.example.com", "member_id": 22, "moderation_action": "defer", + "role": "member", "self_link": "http://localhost:9001/3.0/members/22", "user": + "http://localhost:9001/3.0/users/8"}], "http_etag": "\"cac1c6fdd3d8b2b20e34c1e507fa789cfdefd7ce\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['1101'] + content-length: ['879'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -101,15 +100,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/48677728311034364519373383633644973454 + uri: http://localhost:9001/3.0/members/21 response: - body: {string: !!python/unicode '{"email": "member-1@example.com", "user": "http://localhost:9001/3.0/users/260079548535446176603032346709171362117", - "member_id": 48677728311034364519373383633644973454, "role": "member", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/48677728311034364519373383633644973454", - "address": "http://localhost:9001/3.0/addresses/member-1@example.com", "http_etag": - "\"a1c35eb88fd5f6fe1f4c3a4339fc77f66d261760\"", "moderation_action": "defer"}'} + body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/member-1@example.com", + "delivery_mode": "regular", "email": "member-1@example.com", "http_etag": + "\"c6a73a9e50906134dcc81d2f753889516afd10ed\"", "list_id": "foo.example.com", + "member_id": 21, "moderation_action": "defer", "role": "member", "self_link": + "http://localhost:9001/3.0/members/21", "user": "http://localhost:9001/3.0/users/7"}'} headers: - content-length: ['496'] + content-length: ['386'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -117,15 +116,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/323402856112996734098135415696586808633 + uri: http://localhost:9001/3.0/members/22 response: - body: {string: !!python/unicode '{"email": "member-2@example.com", "user": "http://localhost:9001/3.0/users/250258230991159333075849826970336325869", - "member_id": 323402856112996734098135415696586808633, "role": "member", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/323402856112996734098135415696586808633", - "address": "http://localhost:9001/3.0/addresses/member-2@example.com", "http_etag": - "\"0e1da791bb237a208fc96242db3624d7fd2a1d82\"", "moderation_action": "defer"}'} + body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/member-2@example.com", + "delivery_mode": "regular", "email": "member-2@example.com", "http_etag": + "\"b184a3d2fb8d63ee8b632a4de49fc255aa1c809a\"", "list_id": "foo.example.com", + "member_id": 22, "moderation_action": "defer", "role": "member", "self_link": + "http://localhost:9001/3.0/members/22", "user": "http://localhost:9001/3.0/users/8"}'} headers: - content-length: ['498'] + content-length: ['386'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_settings.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_settings.yaml index dcfa689..0515534 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_settings.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_settings.yaml @@ -19,10 +19,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -47,10 +47,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/15885455101312519106209291737399644296'] + location: ['http://localhost:9001/3.0/members/23'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,7 +79,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/154066506558448237702544707559682995874'] + location: ['http://localhost:9001/3.0/members/24'] status: {code: 201, message: Created} - request: body: null @@ -123,10 +123,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -151,10 +151,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -170,7 +170,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/213567682742693978718780112884272528758'] + location: ['http://localhost:9001/3.0/members/25'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -183,7 +183,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/301685758763917615226283279776912561342'] + location: ['http://localhost:9001/3.0/members/26'] status: {code: 201, message: Created} - request: body: null @@ -227,10 +227,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -255,10 +255,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -274,7 +274,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/169411174852184749297079136571664768335'] + location: ['http://localhost:9001/3.0/members/27'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -287,7 +287,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/137539128830916456062905998105304813600'] + location: ['http://localhost:9001/3.0/members/28'] status: {code: 201, message: Created} - request: body: null @@ -331,10 +331,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -359,10 +359,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -378,7 +378,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/4482302068254311708887267899378061914'] + location: ['http://localhost:9001/3.0/members/29'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -391,7 +391,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/187261612582917262873113438913163384463'] + location: ['http://localhost:9001/3.0/members/30'] status: {code: 201, message: Created} - request: body: null @@ -435,10 +435,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -463,10 +463,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -482,7 +482,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/42462534541842348785894218829186552256'] + location: ['http://localhost:9001/3.0/members/31'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -495,7 +495,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/44704867619044542128120856573884663659'] + location: ['http://localhost:9001/3.0/members/32'] status: {code: 201, message: Created} - request: body: null @@ -539,10 +539,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -567,10 +567,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -586,7 +586,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/326378345715098819045970592211161856928'] + location: ['http://localhost:9001/3.0/members/33'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -599,7 +599,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/284221844051450930465038805324118500349'] + location: ['http://localhost:9001/3.0/members/34'] status: {code: 201, message: Created} - request: body: null @@ -643,10 +643,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -671,10 +671,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -690,7 +690,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/20186402028936361880921721607075006500'] + location: ['http://localhost:9001/3.0/members/35'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -703,7 +703,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/323632278305666695147972794763018243094'] + location: ['http://localhost:9001/3.0/members/36'] status: {code: 201, message: Created} - request: body: null diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_settings_access.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_settings_access.yaml index 75d7f06..23f8326 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_settings_access.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_settings_access.yaml @@ -6,10 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -21,11 +21,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"55e86723504466b64db8f6b5f5201fa204102963\"", - "user_id": 126455316482294391934516094526453555812, "self_link": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "created_on": "2016-01-23T01:15:50.522083", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"b774d488fd2356b7bedf0e6fa4a26dc70dc2b02b\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/6", "user_id": 6}'} headers: - content-length: ['271'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -33,15 +33,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/126455316482294391934516094526453555812/addresses + uri: http://localhost:9001/3.0/users/6/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"ccbd535acdb220da09aa6655766b3aee8ab881d7\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "self_link": "http://localhost:9001/3.0/addresses/moderator@example.com", - "original_email": "moderator@example.com", "http_etag": "\"570144bc68ad6640e8ef28e641e937bfea699d70\"", - "registered_on": "2016-01-23T01:15:50.499980"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", + "http_etag": "\"ec747dd7d53c1dc2e3dac5df82b3757518dc89d1\"", "original_email": + "moderator@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"e912c0fa7b456f2f4b6f1841ae6d573072b49f2b\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['447'] + content-length: ['402'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -51,15 +52,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"a006ef21d6dca2fdca9fe4a687ec81477be4171e\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 169411174852184749297079136571664768335, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/169411174852184749297079136571664768335", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"8028af6dde2ca4dad75c763cacebc7b410d272b7\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"2a9a03b07de1496a26745a177a01f17e15de1bd9\"", + "list_id": "foo.example.com", "member_id": 27, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/27", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"18e8859f52e9f695d49fde68c7985e8c9bf954b3\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['597'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -69,15 +69,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"11e47b04e976dd8be4d9f46637283a955c417b3d\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 137539128830916456062905998105304813600, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/137539128830916456062905998105304813600", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"39b19a6f0469f7a76478b7612d0a5c041dd519cb\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"45deaf6f600f8de30faeac82bbd312b8f4d6777f\"", "list_id": "foo.example.com", + "member_id": 28, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/28", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"10d5613c3f931acf83ae06904dd9553b65701dd4\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -87,10 +87,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -102,11 +102,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"55e86723504466b64db8f6b5f5201fa204102963\"", - "user_id": 126455316482294391934516094526453555812, "self_link": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "created_on": "2016-01-23T01:15:50.522083", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"b774d488fd2356b7bedf0e6fa4a26dc70dc2b02b\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/6", "user_id": 6}'} headers: - content-length: ['271'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -114,15 +114,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/126455316482294391934516094526453555812/addresses + uri: http://localhost:9001/3.0/users/6/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"ccbd535acdb220da09aa6655766b3aee8ab881d7\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "self_link": "http://localhost:9001/3.0/addresses/moderator@example.com", - "original_email": "moderator@example.com", "http_etag": "\"570144bc68ad6640e8ef28e641e937bfea699d70\"", - "registered_on": "2016-01-23T01:15:50.499980"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", + "http_etag": "\"ec747dd7d53c1dc2e3dac5df82b3757518dc89d1\"", "original_email": + "moderator@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"e912c0fa7b456f2f4b6f1841ae6d573072b49f2b\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['447'] + content-length: ['402'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -132,15 +133,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"a006ef21d6dca2fdca9fe4a687ec81477be4171e\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 169411174852184749297079136571664768335, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/169411174852184749297079136571664768335", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"8028af6dde2ca4dad75c763cacebc7b410d272b7\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"2a9a03b07de1496a26745a177a01f17e15de1bd9\"", + "list_id": "foo.example.com", "member_id": 27, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/27", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"18e8859f52e9f695d49fde68c7985e8c9bf954b3\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['597'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -150,15 +150,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"11e47b04e976dd8be4d9f46637283a955c417b3d\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 137539128830916456062905998105304813600, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/137539128830916456062905998105304813600", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"39b19a6f0469f7a76478b7612d0a5c041dd519cb\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"45deaf6f600f8de30faeac82bbd312b8f4d6777f\"", "list_id": "foo.example.com", + "member_id": 28, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/28", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"10d5613c3f931acf83ae06904dd9553b65701dd4\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -168,10 +168,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -183,11 +183,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"55e86723504466b64db8f6b5f5201fa204102963\"", - "user_id": 126455316482294391934516094526453555812, "self_link": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "created_on": "2016-01-23T01:15:50.522083", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"b774d488fd2356b7bedf0e6fa4a26dc70dc2b02b\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/6", "user_id": 6}'} headers: - content-length: ['271'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -195,15 +195,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/126455316482294391934516094526453555812/addresses + uri: http://localhost:9001/3.0/users/6/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"ccbd535acdb220da09aa6655766b3aee8ab881d7\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "self_link": "http://localhost:9001/3.0/addresses/moderator@example.com", - "original_email": "moderator@example.com", "http_etag": "\"570144bc68ad6640e8ef28e641e937bfea699d70\"", - "registered_on": "2016-01-23T01:15:50.499980"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", + "http_etag": "\"ec747dd7d53c1dc2e3dac5df82b3757518dc89d1\"", "original_email": + "moderator@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"e912c0fa7b456f2f4b6f1841ae6d573072b49f2b\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['447'] + content-length: ['402'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -213,15 +214,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"a006ef21d6dca2fdca9fe4a687ec81477be4171e\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 169411174852184749297079136571664768335, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/169411174852184749297079136571664768335", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"8028af6dde2ca4dad75c763cacebc7b410d272b7\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"2a9a03b07de1496a26745a177a01f17e15de1bd9\"", + "list_id": "foo.example.com", "member_id": 27, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/27", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"18e8859f52e9f695d49fde68c7985e8c9bf954b3\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['597'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -231,15 +231,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"11e47b04e976dd8be4d9f46637283a955c417b3d\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 137539128830916456062905998105304813600, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/137539128830916456062905998105304813600", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"39b19a6f0469f7a76478b7612d0a5c041dd519cb\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"45deaf6f600f8de30faeac82bbd312b8f4d6777f\"", "list_id": "foo.example.com", + "member_id": 28, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/28", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"10d5613c3f931acf83ae06904dd9553b65701dd4\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -249,10 +249,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -264,11 +264,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"55e86723504466b64db8f6b5f5201fa204102963\"", - "user_id": 126455316482294391934516094526453555812, "self_link": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "created_on": "2016-01-23T01:15:50.522083", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"b774d488fd2356b7bedf0e6fa4a26dc70dc2b02b\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/6", "user_id": 6}'} headers: - content-length: ['271'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -276,15 +276,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/126455316482294391934516094526453555812/addresses + uri: http://localhost:9001/3.0/users/6/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"ccbd535acdb220da09aa6655766b3aee8ab881d7\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "self_link": "http://localhost:9001/3.0/addresses/moderator@example.com", - "original_email": "moderator@example.com", "http_etag": "\"570144bc68ad6640e8ef28e641e937bfea699d70\"", - "registered_on": "2016-01-23T01:15:50.499980"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", + "http_etag": "\"ec747dd7d53c1dc2e3dac5df82b3757518dc89d1\"", "original_email": + "moderator@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"e912c0fa7b456f2f4b6f1841ae6d573072b49f2b\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['447'] + content-length: ['402'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -294,15 +295,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"a006ef21d6dca2fdca9fe4a687ec81477be4171e\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 169411174852184749297079136571664768335, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/169411174852184749297079136571664768335", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"8028af6dde2ca4dad75c763cacebc7b410d272b7\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"2a9a03b07de1496a26745a177a01f17e15de1bd9\"", + "list_id": "foo.example.com", "member_id": 27, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/27", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"18e8859f52e9f695d49fde68c7985e8c9bf954b3\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['597'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -312,15 +312,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"11e47b04e976dd8be4d9f46637283a955c417b3d\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 137539128830916456062905998105304813600, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/137539128830916456062905998105304813600", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"39b19a6f0469f7a76478b7612d0a5c041dd519cb\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"45deaf6f600f8de30faeac82bbd312b8f4d6777f\"", "list_id": "foo.example.com", + "member_id": 28, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/28", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"10d5613c3f931acf83ae06904dd9553b65701dd4\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -330,10 +330,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -345,11 +345,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"55e86723504466b64db8f6b5f5201fa204102963\"", - "user_id": 126455316482294391934516094526453555812, "self_link": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "created_on": "2016-01-23T01:15:50.522083", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"b774d488fd2356b7bedf0e6fa4a26dc70dc2b02b\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/6", "user_id": 6}'} headers: - content-length: ['271'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -357,15 +357,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/126455316482294391934516094526453555812/addresses + uri: http://localhost:9001/3.0/users/6/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"ccbd535acdb220da09aa6655766b3aee8ab881d7\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "self_link": "http://localhost:9001/3.0/addresses/moderator@example.com", - "original_email": "moderator@example.com", "http_etag": "\"570144bc68ad6640e8ef28e641e937bfea699d70\"", - "registered_on": "2016-01-23T01:15:50.499980"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", + "http_etag": "\"ec747dd7d53c1dc2e3dac5df82b3757518dc89d1\"", "original_email": + "moderator@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"e912c0fa7b456f2f4b6f1841ae6d573072b49f2b\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['447'] + content-length: ['402'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -375,15 +376,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"a006ef21d6dca2fdca9fe4a687ec81477be4171e\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 169411174852184749297079136571664768335, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/169411174852184749297079136571664768335", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"8028af6dde2ca4dad75c763cacebc7b410d272b7\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"2a9a03b07de1496a26745a177a01f17e15de1bd9\"", + "list_id": "foo.example.com", "member_id": 27, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/27", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"18e8859f52e9f695d49fde68c7985e8c9bf954b3\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['597'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -393,15 +393,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"11e47b04e976dd8be4d9f46637283a955c417b3d\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 137539128830916456062905998105304813600, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/137539128830916456062905998105304813600", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"39b19a6f0469f7a76478b7612d0a5c041dd519cb\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"45deaf6f600f8de30faeac82bbd312b8f4d6777f\"", "list_id": "foo.example.com", + "member_id": 28, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/28", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"10d5613c3f931acf83ae06904dd9553b65701dd4\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -411,10 +411,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -426,11 +426,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"55e86723504466b64db8f6b5f5201fa204102963\"", - "user_id": 126455316482294391934516094526453555812, "self_link": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "created_on": "2016-01-23T01:15:50.522083", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"b774d488fd2356b7bedf0e6fa4a26dc70dc2b02b\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/6", "user_id": 6}'} headers: - content-length: ['271'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -438,15 +438,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/126455316482294391934516094526453555812/addresses + uri: http://localhost:9001/3.0/users/6/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"ccbd535acdb220da09aa6655766b3aee8ab881d7\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "self_link": "http://localhost:9001/3.0/addresses/moderator@example.com", - "original_email": "moderator@example.com", "http_etag": "\"570144bc68ad6640e8ef28e641e937bfea699d70\"", - "registered_on": "2016-01-23T01:15:50.499980"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", + "http_etag": "\"ec747dd7d53c1dc2e3dac5df82b3757518dc89d1\"", "original_email": + "moderator@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"e912c0fa7b456f2f4b6f1841ae6d573072b49f2b\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['447'] + content-length: ['402'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -456,15 +457,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"a006ef21d6dca2fdca9fe4a687ec81477be4171e\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 169411174852184749297079136571664768335, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/169411174852184749297079136571664768335", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"8028af6dde2ca4dad75c763cacebc7b410d272b7\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"2a9a03b07de1496a26745a177a01f17e15de1bd9\"", + "list_id": "foo.example.com", "member_id": 27, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/27", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"18e8859f52e9f695d49fde68c7985e8c9bf954b3\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['597'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -474,15 +474,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"11e47b04e976dd8be4d9f46637283a955c417b3d\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 137539128830916456062905998105304813600, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/137539128830916456062905998105304813600", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"39b19a6f0469f7a76478b7612d0a5c041dd519cb\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"45deaf6f600f8de30faeac82bbd312b8f4d6777f\"", "list_id": "foo.example.com", + "member_id": 28, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/28", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"10d5613c3f931acf83ae06904dd9553b65701dd4\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -492,10 +492,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -507,11 +507,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"55e86723504466b64db8f6b5f5201fa204102963\"", - "user_id": 126455316482294391934516094526453555812, "self_link": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "created_on": "2016-01-23T01:15:50.522083", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"b774d488fd2356b7bedf0e6fa4a26dc70dc2b02b\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/6", "user_id": 6}'} headers: - content-length: ['271'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -519,15 +519,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/126455316482294391934516094526453555812/addresses + uri: http://localhost:9001/3.0/users/6/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"ccbd535acdb220da09aa6655766b3aee8ab881d7\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "self_link": "http://localhost:9001/3.0/addresses/moderator@example.com", - "original_email": "moderator@example.com", "http_etag": "\"570144bc68ad6640e8ef28e641e937bfea699d70\"", - "registered_on": "2016-01-23T01:15:50.499980"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", + "http_etag": "\"ec747dd7d53c1dc2e3dac5df82b3757518dc89d1\"", "original_email": + "moderator@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/moderator@example.com", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"e912c0fa7b456f2f4b6f1841ae6d573072b49f2b\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['447'] + content-length: ['402'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -537,15 +538,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"a006ef21d6dca2fdca9fe4a687ec81477be4171e\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 169411174852184749297079136571664768335, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/169411174852184749297079136571664768335", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"8028af6dde2ca4dad75c763cacebc7b410d272b7\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"2a9a03b07de1496a26745a177a01f17e15de1bd9\"", + "list_id": "foo.example.com", "member_id": 27, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/27", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"18e8859f52e9f695d49fde68c7985e8c9bf954b3\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['597'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -555,15 +555,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"11e47b04e976dd8be4d9f46637283a955c417b3d\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 137539128830916456062905998105304813600, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/137539128830916456062905998105304813600", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"39b19a6f0469f7a76478b7612d0a5c041dd519cb\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"45deaf6f600f8de30faeac82bbd312b8f4d6777f\"", "list_id": "foo.example.com", + "member_id": 28, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/28", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"10d5613c3f931acf83ae06904dd9553b65701dd4\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -573,10 +573,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -588,11 +588,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"59b7f59deaf4d330b7d43e914f0092a44d1308b1\"", - "user_id": 119658018821760135569595540350577395485, "self_link": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "created_on": "2016-01-23T01:15:50.422832", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"637c12d15eb0203c9ffac9ea2d5ac8605d18e38d\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/5", "user_id": 5}'} headers: - content-length: ['271'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -600,15 +600,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/119658018821760135569595540350577395485/addresses + uri: http://localhost:9001/3.0/users/5/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"eab92461cf51275242a1b9c26bd339095f9ba946\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", "original_email": - "owner@example.com", "http_etag": "\"bf581fd0c1a24635e12b4f376eefb017acef9c1c\"", - "registered_on": "2016-01-23T01:15:50.397330"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": + "\"d69637140095e2552943e259d5cfb5258b3acafa\"", "original_email": "owner@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", + "user": "http://localhost:9001/3.0/users/5"}], "http_etag": "\"abd6991d7cfc1ad5563ad5020a42c2ec5b88538a\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['435'] + content-length: ['390'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -618,15 +618,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"50463237ab6b8bfb550d0d082ddc4bc88b5e187c\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 4482302068254311708887267899378061914, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/4482302068254311708887267899378061914", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"56fc9e4fe1581cf0c972cd9eaafa52a8ac3063cc\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"13ccfad9eeabb2db9df09d3647021a06105e8609\"", + "list_id": "foo.example.com", "member_id": 29, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/29", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"da840766646cf79629b20241a5b240c7571178b7\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['593'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -636,15 +635,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"d66154449102f9b3bb304456250e153b017c0e2a\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 187261612582917262873113438913163384463, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/187261612582917262873113438913163384463", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"9cc1f849f350bf3825609c3cfa2b53aaea9401b0\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"67c7c01b2bd6c1a21b1107c329f2ba1805564161\"", "list_id": "foo.example.com", + "member_id": 30, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/30", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"91147190c5181951a10297e24a397b2781048dbd\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -654,10 +653,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -669,30 +668,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"d3a36483e6b3a1f822cf7892ab7d1b30ac998f31\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:04.408533", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -702,10 +700,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -717,11 +715,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"59b7f59deaf4d330b7d43e914f0092a44d1308b1\"", - "user_id": 119658018821760135569595540350577395485, "self_link": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "created_on": "2016-01-23T01:15:50.422832", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"637c12d15eb0203c9ffac9ea2d5ac8605d18e38d\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/5", "user_id": 5}'} headers: - content-length: ['271'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -729,15 +727,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/119658018821760135569595540350577395485/addresses + uri: http://localhost:9001/3.0/users/5/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"eab92461cf51275242a1b9c26bd339095f9ba946\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", "original_email": - "owner@example.com", "http_etag": "\"bf581fd0c1a24635e12b4f376eefb017acef9c1c\"", - "registered_on": "2016-01-23T01:15:50.397330"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": + "\"d69637140095e2552943e259d5cfb5258b3acafa\"", "original_email": "owner@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", + "user": "http://localhost:9001/3.0/users/5"}], "http_etag": "\"abd6991d7cfc1ad5563ad5020a42c2ec5b88538a\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['435'] + content-length: ['390'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -747,15 +745,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"50463237ab6b8bfb550d0d082ddc4bc88b5e187c\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 4482302068254311708887267899378061914, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/4482302068254311708887267899378061914", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"56fc9e4fe1581cf0c972cd9eaafa52a8ac3063cc\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"13ccfad9eeabb2db9df09d3647021a06105e8609\"", + "list_id": "foo.example.com", "member_id": 29, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/29", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"da840766646cf79629b20241a5b240c7571178b7\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['593'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -765,15 +762,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"d66154449102f9b3bb304456250e153b017c0e2a\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 187261612582917262873113438913163384463, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/187261612582917262873113438913163384463", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"9cc1f849f350bf3825609c3cfa2b53aaea9401b0\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"67c7c01b2bd6c1a21b1107c329f2ba1805564161\"", "list_id": "foo.example.com", + "member_id": 30, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/30", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"91147190c5181951a10297e24a397b2781048dbd\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -783,10 +780,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -798,30 +795,94 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"d3a36483e6b3a1f822cf7892ab7d1b30ac998f31\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:04.408533", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] + 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/foo.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/foo.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/foo.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/foo.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/foo.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: @@ -831,10 +892,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -846,11 +907,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"59b7f59deaf4d330b7d43e914f0092a44d1308b1\"", - "user_id": 119658018821760135569595540350577395485, "self_link": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "created_on": "2016-01-23T01:15:50.422832", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"637c12d15eb0203c9ffac9ea2d5ac8605d18e38d\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/5", "user_id": 5}'} headers: - content-length: ['271'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -858,15 +919,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/119658018821760135569595540350577395485/addresses + uri: http://localhost:9001/3.0/users/5/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"eab92461cf51275242a1b9c26bd339095f9ba946\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", "original_email": - "owner@example.com", "http_etag": "\"bf581fd0c1a24635e12b4f376eefb017acef9c1c\"", - "registered_on": "2016-01-23T01:15:50.397330"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": + "\"d69637140095e2552943e259d5cfb5258b3acafa\"", "original_email": "owner@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", + "user": "http://localhost:9001/3.0/users/5"}], "http_etag": "\"abd6991d7cfc1ad5563ad5020a42c2ec5b88538a\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['435'] + content-length: ['390'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -876,15 +937,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"50463237ab6b8bfb550d0d082ddc4bc88b5e187c\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 4482302068254311708887267899378061914, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/4482302068254311708887267899378061914", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"56fc9e4fe1581cf0c972cd9eaafa52a8ac3063cc\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"13ccfad9eeabb2db9df09d3647021a06105e8609\"", + "list_id": "foo.example.com", "member_id": 29, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/29", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"da840766646cf79629b20241a5b240c7571178b7\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['593'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -894,15 +954,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"d66154449102f9b3bb304456250e153b017c0e2a\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 187261612582917262873113438913163384463, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/187261612582917262873113438913163384463", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"9cc1f849f350bf3825609c3cfa2b53aaea9401b0\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"67c7c01b2bd6c1a21b1107c329f2ba1805564161\"", "list_id": "foo.example.com", + "member_id": 30, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/30", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"91147190c5181951a10297e24a397b2781048dbd\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -912,10 +972,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -927,30 +987,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"d3a36483e6b3a1f822cf7892ab7d1b30ac998f31\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:04.408533", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -960,10 +1019,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -975,11 +1034,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"59b7f59deaf4d330b7d43e914f0092a44d1308b1\"", - "user_id": 119658018821760135569595540350577395485, "self_link": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "created_on": "2016-01-23T01:15:50.422832", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"637c12d15eb0203c9ffac9ea2d5ac8605d18e38d\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/5", "user_id": 5}'} headers: - content-length: ['271'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -987,15 +1046,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/119658018821760135569595540350577395485/addresses + uri: http://localhost:9001/3.0/users/5/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"eab92461cf51275242a1b9c26bd339095f9ba946\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", "original_email": - "owner@example.com", "http_etag": "\"bf581fd0c1a24635e12b4f376eefb017acef9c1c\"", - "registered_on": "2016-01-23T01:15:50.397330"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": + "\"d69637140095e2552943e259d5cfb5258b3acafa\"", "original_email": "owner@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", + "user": "http://localhost:9001/3.0/users/5"}], "http_etag": "\"abd6991d7cfc1ad5563ad5020a42c2ec5b88538a\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['435'] + content-length: ['390'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1005,15 +1064,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"50463237ab6b8bfb550d0d082ddc4bc88b5e187c\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 4482302068254311708887267899378061914, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/4482302068254311708887267899378061914", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"56fc9e4fe1581cf0c972cd9eaafa52a8ac3063cc\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"13ccfad9eeabb2db9df09d3647021a06105e8609\"", + "list_id": "foo.example.com", "member_id": 29, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/29", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"da840766646cf79629b20241a5b240c7571178b7\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['593'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1023,15 +1081,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"d66154449102f9b3bb304456250e153b017c0e2a\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 187261612582917262873113438913163384463, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/187261612582917262873113438913163384463", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"9cc1f849f350bf3825609c3cfa2b53aaea9401b0\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"67c7c01b2bd6c1a21b1107c329f2ba1805564161\"", "list_id": "foo.example.com", + "member_id": 30, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/30", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"91147190c5181951a10297e24a397b2781048dbd\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1041,10 +1099,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -1056,30 +1114,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"d3a36483e6b3a1f822cf7892ab7d1b30ac998f31\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:04.408533", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1089,10 +1146,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -1104,11 +1161,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"59b7f59deaf4d330b7d43e914f0092a44d1308b1\"", - "user_id": 119658018821760135569595540350577395485, "self_link": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "created_on": "2016-01-23T01:15:50.422832", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"637c12d15eb0203c9ffac9ea2d5ac8605d18e38d\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/5", "user_id": 5}'} headers: - content-length: ['271'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1116,15 +1173,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/119658018821760135569595540350577395485/addresses + uri: http://localhost:9001/3.0/users/5/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"eab92461cf51275242a1b9c26bd339095f9ba946\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", "original_email": - "owner@example.com", "http_etag": "\"bf581fd0c1a24635e12b4f376eefb017acef9c1c\"", - "registered_on": "2016-01-23T01:15:50.397330"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": + "\"d69637140095e2552943e259d5cfb5258b3acafa\"", "original_email": "owner@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", + "user": "http://localhost:9001/3.0/users/5"}], "http_etag": "\"abd6991d7cfc1ad5563ad5020a42c2ec5b88538a\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['435'] + content-length: ['390'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1134,15 +1191,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"50463237ab6b8bfb550d0d082ddc4bc88b5e187c\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 4482302068254311708887267899378061914, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/4482302068254311708887267899378061914", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"56fc9e4fe1581cf0c972cd9eaafa52a8ac3063cc\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"13ccfad9eeabb2db9df09d3647021a06105e8609\"", + "list_id": "foo.example.com", "member_id": 29, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/29", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"da840766646cf79629b20241a5b240c7571178b7\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['593'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1152,15 +1208,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"d66154449102f9b3bb304456250e153b017c0e2a\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 187261612582917262873113438913163384463, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/187261612582917262873113438913163384463", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"9cc1f849f350bf3825609c3cfa2b53aaea9401b0\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"67c7c01b2bd6c1a21b1107c329f2ba1805564161\"", "list_id": "foo.example.com", + "member_id": 30, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/30", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"91147190c5181951a10297e24a397b2781048dbd\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1170,10 +1226,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -1185,30 +1241,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"d3a36483e6b3a1f822cf7892ab7d1b30ac998f31\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:04.408533", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1218,10 +1273,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -1233,11 +1288,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"59b7f59deaf4d330b7d43e914f0092a44d1308b1\"", - "user_id": 119658018821760135569595540350577395485, "self_link": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "created_on": "2016-01-23T01:15:50.422832", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"637c12d15eb0203c9ffac9ea2d5ac8605d18e38d\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/5", "user_id": 5}'} headers: - content-length: ['271'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1245,15 +1300,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/119658018821760135569595540350577395485/addresses + uri: http://localhost:9001/3.0/users/5/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"eab92461cf51275242a1b9c26bd339095f9ba946\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", "original_email": - "owner@example.com", "http_etag": "\"bf581fd0c1a24635e12b4f376eefb017acef9c1c\"", - "registered_on": "2016-01-23T01:15:50.397330"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": + "\"d69637140095e2552943e259d5cfb5258b3acafa\"", "original_email": "owner@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", + "user": "http://localhost:9001/3.0/users/5"}], "http_etag": "\"abd6991d7cfc1ad5563ad5020a42c2ec5b88538a\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['435'] + content-length: ['390'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1263,15 +1318,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"50463237ab6b8bfb550d0d082ddc4bc88b5e187c\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 4482302068254311708887267899378061914, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/4482302068254311708887267899378061914", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"56fc9e4fe1581cf0c972cd9eaafa52a8ac3063cc\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"13ccfad9eeabb2db9df09d3647021a06105e8609\"", + "list_id": "foo.example.com", "member_id": 29, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/29", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"da840766646cf79629b20241a5b240c7571178b7\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['593'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1281,15 +1335,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"d66154449102f9b3bb304456250e153b017c0e2a\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 187261612582917262873113438913163384463, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/187261612582917262873113438913163384463", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"9cc1f849f350bf3825609c3cfa2b53aaea9401b0\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"67c7c01b2bd6c1a21b1107c329f2ba1805564161\"", "list_id": "foo.example.com", + "member_id": 30, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/30", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"91147190c5181951a10297e24a397b2781048dbd\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1299,10 +1353,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -1314,95 +1368,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"d3a36483e6b3a1f822cf7892ab7d1b30ac998f31\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:04.408533", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] - 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/foo.example.com/archivers - response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} - headers: - content-length: ['122'] - 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/foo.example.com/archivers - response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} - headers: - content-length: ['122'] - 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/foo.example.com/archivers - response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} - headers: - content-length: ['122'] - 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/foo.example.com/archivers - response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} - headers: - content-length: ['122'] - 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/foo.example.com/archivers - response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} - headers: - content-length: ['122'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1412,10 +1400,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -1427,11 +1415,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"59b7f59deaf4d330b7d43e914f0092a44d1308b1\"", - "user_id": 119658018821760135569595540350577395485, "self_link": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "created_on": "2016-01-23T01:15:50.422832", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"637c12d15eb0203c9ffac9ea2d5ac8605d18e38d\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/5", "user_id": 5}'} headers: - content-length: ['271'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1439,15 +1427,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/119658018821760135569595540350577395485/addresses + uri: http://localhost:9001/3.0/users/5/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"eab92461cf51275242a1b9c26bd339095f9ba946\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", "original_email": - "owner@example.com", "http_etag": "\"bf581fd0c1a24635e12b4f376eefb017acef9c1c\"", - "registered_on": "2016-01-23T01:15:50.397330"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": + "\"d69637140095e2552943e259d5cfb5258b3acafa\"", "original_email": "owner@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/owner@example.com", + "user": "http://localhost:9001/3.0/users/5"}], "http_etag": "\"abd6991d7cfc1ad5563ad5020a42c2ec5b88538a\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['435'] + content-length: ['390'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1457,15 +1445,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"50463237ab6b8bfb550d0d082ddc4bc88b5e187c\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 4482302068254311708887267899378061914, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/4482302068254311708887267899378061914", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"56fc9e4fe1581cf0c972cd9eaafa52a8ac3063cc\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"13ccfad9eeabb2db9df09d3647021a06105e8609\"", + "list_id": "foo.example.com", "member_id": 29, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/29", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"da840766646cf79629b20241a5b240c7571178b7\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['593'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1475,15 +1462,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"d66154449102f9b3bb304456250e153b017c0e2a\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 187261612582917262873113438913163384463, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/187261612582917262873113438913163384463", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"9cc1f849f350bf3825609c3cfa2b53aaea9401b0\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"67c7c01b2bd6c1a21b1107c329f2ba1805564161\"", "list_id": "foo.example.com", + "member_id": 30, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/30", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"91147190c5181951a10297e24a397b2781048dbd\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1493,10 +1480,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -1508,30 +1495,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"d3a36483e6b3a1f822cf7892ab7d1b30ac998f31\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:04.408533", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1541,10 +1527,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -1556,30 +1542,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"d47bbdb1ffde01cd3d8817ea8818f95d1a0e95ec\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:07.102239", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1589,10 +1574,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -1604,222 +1589,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"d47bbdb1ffde01cd3d8817ea8818f95d1a0e95ec\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:07.102239", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] - 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/foo@example.com - response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} - headers: - content-length: ['294'] - 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/foo@example.com/config - response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"d47bbdb1ffde01cd3d8817ea8818f95d1a0e95ec\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:07.102239", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} - headers: - content-length: ['1710'] - 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/foo@example.com - response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} - headers: - content-length: ['294'] - 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/foo@example.com/config - response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"d47bbdb1ffde01cd3d8817ea8818f95d1a0e95ec\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:07.102239", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} - headers: - content-length: ['1710'] - 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/foo@example.com - response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} - headers: - content-length: ['294'] - 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/foo@example.com/config - response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"d47bbdb1ffde01cd3d8817ea8818f95d1a0e95ec\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:07.102239", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} - headers: - content-length: ['1710'] - 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/foo@example.com - response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} - headers: - content-length: ['294'] - 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/foo@example.com/config - response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"d47bbdb1ffde01cd3d8817ea8818f95d1a0e95ec\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:07.102239", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} - headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1829,10 +1621,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1842,10 +1634,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1855,10 +1647,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1868,10 +1660,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1881,10 +1673,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1894,10 +1686,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -1909,30 +1701,217 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"d47bbdb1ffde01cd3d8817ea8818f95d1a0e95ec\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:07.102239", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] + 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/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + 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/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1703'] + 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/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + 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/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1703'] + 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/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + 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/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1703'] + 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/foo@example.com + response: + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} + headers: + content-length: ['294'] + 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/foo@example.com/config + response: + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} + headers: + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1942,10 +1921,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -1969,15 +1948,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"467e8eab875b63c9f769a501f79627d8cc83ab70\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 326378345715098819045970592211161856928, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/326378345715098819045970592211161856928", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"a72025df32b6210074c07c3a76d85ae02d1d0109\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"0adf08847a893fd64b9b3601ca24864e9b8d5fb9\"", + "list_id": "foo.example.com", "member_id": 33, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/33", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"216a54b7c2a1e5725c8db60bdbaf93acc41d7ed4\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['597'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1987,15 +1965,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"c67f6fde0498dfbbbbbfdde2afd37da92b8b832e\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 284221844051450930465038805324118500349, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/284221844051450930465038805324118500349", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"6c9f9196b34c5ca21f68e5ea507f3e04b35368c8\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"5f0af825a44f383f27b942e49ef1c8dbbe6f0695\"", "list_id": "foo.example.com", + "member_id": 34, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/34", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"029589d1189982ca4fb2bf3be4a3fe73c8b59b1b\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2005,10 +1983,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -2032,15 +2010,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"467e8eab875b63c9f769a501f79627d8cc83ab70\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 326378345715098819045970592211161856928, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/326378345715098819045970592211161856928", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"a72025df32b6210074c07c3a76d85ae02d1d0109\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"0adf08847a893fd64b9b3601ca24864e9b8d5fb9\"", + "list_id": "foo.example.com", "member_id": 33, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/33", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"216a54b7c2a1e5725c8db60bdbaf93acc41d7ed4\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['597'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2050,15 +2027,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"c67f6fde0498dfbbbbbfdde2afd37da92b8b832e\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 284221844051450930465038805324118500349, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/284221844051450930465038805324118500349", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"6c9f9196b34c5ca21f68e5ea507f3e04b35368c8\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"5f0af825a44f383f27b942e49ef1c8dbbe6f0695\"", "list_id": "foo.example.com", + "member_id": 34, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/34", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"029589d1189982ca4fb2bf3be4a3fe73c8b59b1b\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2068,10 +2045,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -2095,15 +2072,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"467e8eab875b63c9f769a501f79627d8cc83ab70\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 326378345715098819045970592211161856928, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/326378345715098819045970592211161856928", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"a72025df32b6210074c07c3a76d85ae02d1d0109\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"0adf08847a893fd64b9b3601ca24864e9b8d5fb9\"", + "list_id": "foo.example.com", "member_id": 33, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/33", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"216a54b7c2a1e5725c8db60bdbaf93acc41d7ed4\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['597'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2113,15 +2089,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"c67f6fde0498dfbbbbbfdde2afd37da92b8b832e\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 284221844051450930465038805324118500349, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/284221844051450930465038805324118500349", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"6c9f9196b34c5ca21f68e5ea507f3e04b35368c8\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"5f0af825a44f383f27b942e49ef1c8dbbe6f0695\"", "list_id": "foo.example.com", + "member_id": 34, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/34", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"029589d1189982ca4fb2bf3be4a3fe73c8b59b1b\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2131,10 +2107,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -2158,15 +2134,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"467e8eab875b63c9f769a501f79627d8cc83ab70\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 326378345715098819045970592211161856928, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/326378345715098819045970592211161856928", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"a72025df32b6210074c07c3a76d85ae02d1d0109\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"0adf08847a893fd64b9b3601ca24864e9b8d5fb9\"", + "list_id": "foo.example.com", "member_id": 33, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/33", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"216a54b7c2a1e5725c8db60bdbaf93acc41d7ed4\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['597'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2176,15 +2151,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"c67f6fde0498dfbbbbbfdde2afd37da92b8b832e\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 284221844051450930465038805324118500349, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/284221844051450930465038805324118500349", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"6c9f9196b34c5ca21f68e5ea507f3e04b35368c8\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"5f0af825a44f383f27b942e49ef1c8dbbe6f0695\"", "list_id": "foo.example.com", + "member_id": 34, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/34", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"029589d1189982ca4fb2bf3be4a3fe73c8b59b1b\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2194,10 +2169,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -2221,15 +2196,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"467e8eab875b63c9f769a501f79627d8cc83ab70\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 326378345715098819045970592211161856928, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/326378345715098819045970592211161856928", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"a72025df32b6210074c07c3a76d85ae02d1d0109\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"0adf08847a893fd64b9b3601ca24864e9b8d5fb9\"", + "list_id": "foo.example.com", "member_id": 33, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/33", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"216a54b7c2a1e5725c8db60bdbaf93acc41d7ed4\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['597'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2239,15 +2213,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"c67f6fde0498dfbbbbbfdde2afd37da92b8b832e\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 284221844051450930465038805324118500349, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/284221844051450930465038805324118500349", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"6c9f9196b34c5ca21f68e5ea507f3e04b35368c8\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"5f0af825a44f383f27b942e49ef1c8dbbe6f0695\"", "list_id": "foo.example.com", + "member_id": 34, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/34", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"029589d1189982ca4fb2bf3be4a3fe73c8b59b1b\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2257,10 +2231,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -2284,15 +2258,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"467e8eab875b63c9f769a501f79627d8cc83ab70\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 326378345715098819045970592211161856928, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/326378345715098819045970592211161856928", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"a72025df32b6210074c07c3a76d85ae02d1d0109\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"0adf08847a893fd64b9b3601ca24864e9b8d5fb9\"", + "list_id": "foo.example.com", "member_id": 33, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/33", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"216a54b7c2a1e5725c8db60bdbaf93acc41d7ed4\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['597'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2302,15 +2275,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"c67f6fde0498dfbbbbbfdde2afd37da92b8b832e\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 284221844051450930465038805324118500349, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/284221844051450930465038805324118500349", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"6c9f9196b34c5ca21f68e5ea507f3e04b35368c8\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"5f0af825a44f383f27b942e49ef1c8dbbe6f0695\"", "list_id": "foo.example.com", + "member_id": 34, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/34", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"029589d1189982ca4fb2bf3be4a3fe73c8b59b1b\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2320,10 +2293,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -2347,15 +2320,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"467e8eab875b63c9f769a501f79627d8cc83ab70\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/119658018821760135569595540350577395485", - "member_id": 326378345715098819045970592211161856928, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/326378345715098819045970592211161856928", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"a72025df32b6210074c07c3a76d85ae02d1d0109\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"0adf08847a893fd64b9b3601ca24864e9b8d5fb9\"", + "list_id": "foo.example.com", "member_id": 33, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/33", "user": + "http://localhost:9001/3.0/users/5"}], "http_etag": "\"216a54b7c2a1e5725c8db60bdbaf93acc41d7ed4\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['597'] + content-length: ['485'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2365,15 +2337,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"c67f6fde0498dfbbbbbfdde2afd37da92b8b832e\"", - "total_size": 1, "entries": [{"email": "moderator@example.com", "user": "http://localhost:9001/3.0/users/126455316482294391934516094526453555812", - "member_id": 284221844051450930465038805324118500349, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/284221844051450930465038805324118500349", - "address": "http://localhost:9001/3.0/addresses/moderator@example.com", "http_etag": - "\"6c9f9196b34c5ca21f68e5ea507f3e04b35368c8\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", + "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": + "\"5f0af825a44f383f27b942e49ef1c8dbbe6f0695\"", "list_id": "foo.example.com", + "member_id": 34, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/34", "user": "http://localhost:9001/3.0/users/6"}], + "http_etag": "\"029589d1189982ca4fb2bf3be4a3fe73c8b59b1b\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['609'] + content-length: ['497'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_settings_archivers.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_settings_archivers.yaml index b3c852a..4de547a 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_settings_archivers.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_settings_archivers.yaml @@ -6,10 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -19,10 +19,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -34,30 +34,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"ec1d44a7f0423b1b25e91a1455676eb091e8d83e\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:58.939501", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -67,10 +66,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -80,10 +79,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -93,10 +92,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -106,10 +105,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -119,10 +118,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -132,10 +131,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -147,10 +146,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -160,30 +159,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"ec1d44a7f0423b1b25e91a1455676eb091e8d83e\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:58.939501", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -193,14 +191,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: prototype=True + body: mail-archive=False&mhonarc=False headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -242,10 +240,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -257,30 +255,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"ec1d44a7f0423b1b25e91a1455676eb091e8d83e\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:58.939501", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -290,10 +287,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"f8ecaeeadc4cf5d8900d7c7ed3990e675116ad31\"", + "mail-archive": false, "mhonarc": false, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['121'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -303,10 +300,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"f8ecaeeadc4cf5d8900d7c7ed3990e675116ad31\"", + "mail-archive": false, "mhonarc": false, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['121'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -316,10 +313,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"f8ecaeeadc4cf5d8900d7c7ed3990e675116ad31\"", + "mail-archive": false, "mhonarc": false, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['121'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -329,10 +326,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"f8ecaeeadc4cf5d8900d7c7ed3990e675116ad31\"", + "mail-archive": false, "mhonarc": false, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['121'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -342,10 +339,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"f8ecaeeadc4cf5d8900d7c7ed3990e675116ad31\"", + "mail-archive": false, "mhonarc": false, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['121'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -355,10 +352,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -370,10 +367,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"f8ecaeeadc4cf5d8900d7c7ed3990e675116ad31\"", + "mail-archive": false, "mhonarc": false, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['121'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_settings_archiving.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_settings_archiving.yaml index bb4e177..1ad5de6 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_settings_archiving.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_settings_archiving.yaml @@ -6,30 +6,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"04f5b204efcd2d388264caa703b421b99a3ec46f\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:00.554985", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -39,10 +38,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -54,30 +53,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"04f5b204efcd2d388264caa703b421b99a3ec46f\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:00.554985", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -87,10 +85,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -100,10 +98,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -113,10 +111,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -126,10 +124,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -139,10 +137,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -152,10 +150,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -167,10 +165,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -180,30 +178,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"04f5b204efcd2d388264caa703b421b99a3ec46f\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:00.554985", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -213,14 +210,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", + "mail-archive": true, "mhonarc": true, "prototype": true}'} headers: - content-length: ['122'] + content-length: ['119'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: !!python/unicode + body: mail-archive=False&mhonarc=False&prototype=False headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -262,10 +259,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -277,30 +274,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"484c906170a1689144b672031ce70124ef49dc36\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "private", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:00.554985", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "private", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"ee2b013f388534986873dd50897c63326f8fc57d\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1711'] + content-length: ['1704'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -310,8 +306,8 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\"", + "mail-archive": false, "mhonarc": false, "prototype": false}'} headers: content-length: ['122'] content-type: [application/json; charset=utf-8] @@ -323,8 +319,8 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\"", + "mail-archive": false, "mhonarc": false, "prototype": false}'} headers: content-length: ['122'] content-type: [application/json; charset=utf-8] @@ -336,8 +332,8 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\"", + "mail-archive": false, "mhonarc": false, "prototype": false}'} headers: content-length: ['122'] content-type: [application/json; charset=utf-8] @@ -349,8 +345,8 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\"", + "mail-archive": false, "mhonarc": false, "prototype": false}'} headers: content-length: ['122'] content-type: [application/json; charset=utf-8] @@ -362,8 +358,8 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": - false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} + body: {string: !!python/unicode '{"http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\"", + "mail-archive": false, "mhonarc": false, "prototype": false}'} headers: content-length: ['122'] content-type: [application/json; charset=utf-8] @@ -375,10 +371,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -390,30 +386,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"484c906170a1689144b672031ce70124ef49dc36\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "private", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:16:00.554985", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "private", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"ee2b013f388534986873dd50897c63326f8fc57d\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1711'] + content-length: ['1704'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/mailman_user.yaml b/src/postorius/tests/fixtures/vcr_cassettes/mailman_user.yaml index 88a809e..2f630fe 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/mailman_user.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/mailman_user.yaml @@ -19,10 +19,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -51,7 +51,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/269634616791725371194532853727779327161'] + location: ['http://localhost:9001/3.0/users/9'] status: {code: 201, message: Created} - request: body: null @@ -60,10 +60,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -84,7 +84,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/269634616791725371194532853727779327161 + uri: http://localhost:9001/3.0/users/9 response: body: {string: !!python/unicode ''} headers: @@ -121,10 +121,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -153,7 +153,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/33609099880032660141775993337468518267'] + location: ['http://localhost:9001/3.0/users/10'] status: {code: 201, message: Created} - request: body: null @@ -162,10 +162,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -186,7 +186,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/33609099880032660141775993337468518267 + uri: http://localhost:9001/3.0/users/10 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/mailman_user_address_prefs.yaml b/src/postorius/tests/fixtures/vcr_cassettes/mailman_user_address_prefs.yaml index b3de60d..90fa7fc 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/mailman_user_address_prefs.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/mailman_user_address_prefs.yaml @@ -5,7 +5,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/269634616791725371194532853727779327161/addresses + uri: http://localhost:9001/3.0/users/9/addresses response: body: {string: !!python/unicode ''} headers: @@ -18,7 +18,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/269634616791725371194532853727779327161/addresses + uri: http://localhost:9001/3.0/users/9/addresses response: body: {string: !!python/unicode ''} headers: @@ -32,12 +32,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/user@example.com response: - body: {string: !!python/unicode '{"password": "$6$rounds=650059$QKEIdYcD07PX5N9f$6TXrfznuyV2MISsxYZ058yvHYdT6tz/wc4wnn4BVH6QfaMaaltMoty20HgrFslXv4a4Apuch7JCW715IZsVi1/", - "user_id": 269634616791725371194532853727779327161, "self_link": "http://localhost:9001/3.0/users/269634616791725371194532853727779327161", - "created_on": "2016-01-23T01:15:41.321753", "is_server_owner": false, "http_etag": - "\"d6134309a6664e195d25ec3183566b96736bbe05\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"b5e34d45d8e2c1eef14fb903473ee7ffbb0a4690\"", "is_server_owner": false, + "password": "$6$rounds=674233$0bHOkvzk5KxYMdeN$pbrw4BW7TZMVdqoqWWzH05fFccGThULmFt3Fl46Ig4YCzfc3OEeGZ9nbO3Nkm08SpgfXYxZ/kD66TA/MWa46o1", + "self_link": "http://localhost:9001/3.0/users/9", "user_id": 9}'} headers: - content-length: ['407'] + content-length: ['324'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -45,23 +45,22 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/269634616791725371194532853727779327161/addresses + uri: http://localhost:9001/3.0/users/9/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"daf6a9a132d18da5a8eef22ce373ec6ef620b31c\"", - "total_size": 3, "entries": [{"email": "user2@example.com", "user": "http://localhost:9001/3.0/users/269634616791725371194532853727779327161", - "self_link": "http://localhost:9001/3.0/addresses/user2@example.com", "original_email": - "user2@example.com", "http_etag": "\"c2d3873303fbe22e4810ee664db7325c29956aac\"", - "registered_on": "2016-01-23T01:15:41.853591"}, {"email": "user3@example.com", - "user": "http://localhost:9001/3.0/users/269634616791725371194532853727779327161", - "self_link": "http://localhost:9001/3.0/addresses/user3@example.com", "original_email": - "user3@example.com", "http_etag": "\"307356805e8c359864d3509937749110063ff7fd\"", - "registered_on": "2016-01-23T01:15:41.913218"}, {"email": "user@example.com", - "user": "http://localhost:9001/3.0/users/269634616791725371194532853727779327161", - "self_link": "http://localhost:9001/3.0/addresses/user@example.com", "original_email": - "user@example.com", "http_etag": "\"cd8f6b9dcdf00dd2a5bcbdd3e8b7bc8c31e92d29\"", - "registered_on": "2016-01-23T01:15:41.321170"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "user2@example.com", "http_etag": + "\"51cec79261dc46116ea0796bba25be7c92568fb1\"", "original_email": "user2@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user2@example.com", + "user": "http://localhost:9001/3.0/users/9"}, {"email": "user3@example.com", + "http_etag": "\"276f34b1c07df5f9dd75bc58827026c61d2fa182\"", "original_email": + "user3@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/user3@example.com", "user": "http://localhost:9001/3.0/users/9"}, + {"email": "user@example.com", "http_etag": "\"efff0727b08898587341964c8604109815b9d497\"", + "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/user@example.com", "user": + "http://localhost:9001/3.0/users/9"}], "http_etag": "\"d0a28f04cbc201be50ab4b7b27d491ecc548e08e\"", + "start": 0, "total_size": 3}'} headers: - content-length: ['1096'] + content-length: ['961'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -71,12 +70,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/user@example.com response: - body: {string: !!python/unicode '{"password": "$6$rounds=650059$QKEIdYcD07PX5N9f$6TXrfznuyV2MISsxYZ058yvHYdT6tz/wc4wnn4BVH6QfaMaaltMoty20HgrFslXv4a4Apuch7JCW715IZsVi1/", - "user_id": 269634616791725371194532853727779327161, "self_link": "http://localhost:9001/3.0/users/269634616791725371194532853727779327161", - "created_on": "2016-01-23T01:15:41.321753", "is_server_owner": false, "http_etag": - "\"d6134309a6664e195d25ec3183566b96736bbe05\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"b5e34d45d8e2c1eef14fb903473ee7ffbb0a4690\"", "is_server_owner": false, + "password": "$6$rounds=674233$0bHOkvzk5KxYMdeN$pbrw4BW7TZMVdqoqWWzH05fFccGThULmFt3Fl46Ig4YCzfc3OEeGZ9nbO3Nkm08SpgfXYxZ/kD66TA/MWa46o1", + "self_link": "http://localhost:9001/3.0/users/9", "user_id": 9}'} headers: - content-length: ['407'] + content-length: ['324'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -84,23 +83,22 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/269634616791725371194532853727779327161/addresses + uri: http://localhost:9001/3.0/users/9/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"daf6a9a132d18da5a8eef22ce373ec6ef620b31c\"", - "total_size": 3, "entries": [{"email": "user2@example.com", "user": "http://localhost:9001/3.0/users/269634616791725371194532853727779327161", - "self_link": "http://localhost:9001/3.0/addresses/user2@example.com", "original_email": - "user2@example.com", "http_etag": "\"c2d3873303fbe22e4810ee664db7325c29956aac\"", - "registered_on": "2016-01-23T01:15:41.853591"}, {"email": "user3@example.com", - "user": "http://localhost:9001/3.0/users/269634616791725371194532853727779327161", - "self_link": "http://localhost:9001/3.0/addresses/user3@example.com", "original_email": - "user3@example.com", "http_etag": "\"307356805e8c359864d3509937749110063ff7fd\"", - "registered_on": "2016-01-23T01:15:41.913218"}, {"email": "user@example.com", - "user": "http://localhost:9001/3.0/users/269634616791725371194532853727779327161", - "self_link": "http://localhost:9001/3.0/addresses/user@example.com", "original_email": - "user@example.com", "http_etag": "\"cd8f6b9dcdf00dd2a5bcbdd3e8b7bc8c31e92d29\"", - "registered_on": "2016-01-23T01:15:41.321170"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "user2@example.com", "http_etag": + "\"51cec79261dc46116ea0796bba25be7c92568fb1\"", "original_email": "user2@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/user2@example.com", + "user": "http://localhost:9001/3.0/users/9"}, {"email": "user3@example.com", + "http_etag": "\"276f34b1c07df5f9dd75bc58827026c61d2fa182\"", "original_email": + "user3@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/user3@example.com", "user": "http://localhost:9001/3.0/users/9"}, + {"email": "user@example.com", "http_etag": "\"efff0727b08898587341964c8604109815b9d497\"", + "original_email": "user@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/user@example.com", "user": + "http://localhost:9001/3.0/users/9"}], "http_etag": "\"d0a28f04cbc201be50ab4b7b27d491ecc548e08e\"", + "start": 0, "total_size": 3}'} headers: - content-length: ['1096'] + content-length: ['961'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -110,8 +108,8 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/user2@example.com/preferences response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/addresses/user2@example.com/preferences", - "http_etag": "\"a7666bafbd297a58aa20fc67fed94dc5f29e696c\""}'} + body: {string: !!python/unicode '{"http_etag": "\"a7666bafbd297a58aa20fc67fed94dc5f29e696c\"", + "self_link": "http://localhost:9001/3.0/addresses/user2@example.com/preferences"}'} headers: content-length: ['143'] content-type: [application/json; charset=utf-8] @@ -123,8 +121,8 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/user3@example.com/preferences response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/addresses/user3@example.com/preferences", - "http_etag": "\"a99bfb2af4f58fb94d3308d147de24937297fb32\""}'} + body: {string: !!python/unicode '{"http_etag": "\"a99bfb2af4f58fb94d3308d147de24937297fb32\"", + "self_link": "http://localhost:9001/3.0/addresses/user3@example.com/preferences"}'} headers: content-length: ['143'] content-type: [application/json; charset=utf-8] @@ -136,8 +134,8 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/user@example.com/preferences response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/addresses/user@example.com/preferences", - "http_etag": "\"c557a0cd7d400f67152a6f6e5e2c14858e632323\""}'} + body: {string: !!python/unicode '{"http_etag": "\"c557a0cd7d400f67152a6f6e5e2c14858e632323\"", + "self_link": "http://localhost:9001/3.0/addresses/user@example.com/preferences"}'} headers: content-length: ['142'] content-type: [application/json; charset=utf-8] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription-2.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription-2.yaml index 976600f..c0721c6 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription-2.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription-2.yaml @@ -6,10 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -22,8 +22,8 @@ method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: - body: {string: !!python/unicode '{"token_owner": "subscriber", "token": "96204144b2981468fb8bd109497d0d4e31754b54", - "http_etag": "\"76c8d4cc4b9823fc98e065a3484d8b7d40cb5d81\""}'} + body: {string: !!python/unicode '{"http_etag": "\"2f1dfffd552b1a6a0514ad416d4e426d8c927d44\"", + "token": "0000000000000000000000000000000000000001", "token_owner": "subscriber"}'} headers: content-length: ['143'] content-type: [application/json; charset=utf-8] @@ -35,12 +35,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"user_id": 249976255305336465573219322396272572389, - "self_link": "http://localhost:9001/3.0/users/249976255305336465573219322396272572389", - "created_on": "2016-01-23T01:15:28.294440", "display_name": "None", "is_server_owner": - false, "http_etag": "\"71a365db9805ea41fb3a1cb01a4a69c806b72069\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": + "None", "http_etag": "\"42ce4e7d3c120cfc9cff732913114a828f630666\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/17", "user_id": 17}'} headers: - content-length: ['295'] + content-length: ['214'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -49,7 +48,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/249976255305336465573219322396272572389/addresses + uri: http://localhost:9001/3.0/users/17/addresses response: body: {string: !!python/unicode ''} headers: @@ -74,10 +73,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -89,12 +88,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"user_id": 249976255305336465573219322396272572389, - "self_link": "http://localhost:9001/3.0/users/249976255305336465573219322396272572389", - "created_on": "2016-01-23T01:15:28.294440", "display_name": "None", "is_server_owner": - false, "http_etag": "\"71a365db9805ea41fb3a1cb01a4a69c806b72069\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": + "None", "http_etag": "\"42ce4e7d3c120cfc9cff732913114a828f630666\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/17", "user_id": 17}'} headers: - content-length: ['295'] + content-length: ['214'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -102,20 +100,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/249976255305336465573219322396272572389/addresses + uri: http://localhost:9001/3.0/users/17/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"f1b9368746c828a6b3d911b070759f44d52152e5\"", - "total_size": 2, "entries": [{"email": "anotheremail@example.com", "user": - "http://localhost:9001/3.0/users/249976255305336465573219322396272572389", - "self_link": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "original_email": "anotheremail@example.com", "http_etag": "\"7d636b913aa82999b396f7c6cbb1fad2a2bcce42\"", - "verified_on": "2016-01-23T01:15:28.574864", "registered_on": "2016-01-23T01:15:28.517540"}, - {"email": "test@example.com", "user": "http://localhost:9001/3.0/users/249976255305336465573219322396272572389", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "display_name": "None", "http_etag": "\"cf138b876fae4a21d2f092cfc19f5ba6adfedd0d\"", - "registered_on": "2016-01-23T01:15:28.275752"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", + "http_etag": "\"cd718c211a2d4b86ebea9ee219da5b25d25ccedc\"", "original_email": + "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/17", + "verified_on": "2005-08-01T07:49:23"}, {"display_name": "None", "email": "test@example.com", + "http_etag": "\"105478bfe5f9ad7b81764569f3cadd08da4adcbf\"", "original_email": + "test@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/17"}], "http_etag": "\"eb5a887744a016e71db35bf89cd277656ae721bd\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['854'] + content-length: ['759'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -126,7 +123,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -139,7 +136,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -175,30 +172,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"9591ced9bd470f8ec614a9679ead80459037d059\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:27.909254", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml index a9466bf..50fa732 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml @@ -6,10 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -25,7 +25,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/176070946160795832655527978896711395718'] + location: ['http://localhost:9001/3.0/members/43'] status: {code: 201, message: Created} - request: body: null @@ -34,10 +34,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 1, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"98cc998d4a30293ec17da639bce10617912a6e1e\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"98cc998d4a30293ec17da639bce10617912a6e1e\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 1, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -49,12 +49,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"user_id": 49659196529737298780782683765294265828, - "self_link": "http://localhost:9001/3.0/users/49659196529737298780782683765294265828", - "created_on": "2016-01-23T01:15:30.996310", "display_name": "None", "is_server_owner": - false, "http_etag": "\"f8b658f3db9792da561368c3ee7e96c451db9edc\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": + "None", "http_etag": "\"1f31f733981af257e2d63ee7779fc281aa16466d\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/18", "user_id": 18}'} headers: - content-length: ['293'] + content-length: ['214'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -62,16 +61,17 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/49659196529737298780782683765294265828/addresses + uri: http://localhost:9001/3.0/users/18/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"191d3b367f87eff81edbc5b02568ea85be39886b\"", - "total_size": 1, "entries": [{"email": "test@example.com", "user": "http://localhost:9001/3.0/users/49659196529737298780782683765294265828", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "display_name": "None", "http_etag": "\"eba8a7a1898cad17b37afeab631520de65e067ae\"", - "verified_on": "2016-01-23T01:15:31.020370", "registered_on": "2016-01-23T01:15:30.979612"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "None", "email": + "test@example.com", "http_etag": "\"8655e8d15880d71f4758ade14d4c1f704368c6ca\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/18", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"e11c1082a0ba13fc595916ab7eaf1026e3bc0cc3\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['500'] + content-length: ['450'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -82,7 +82,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -95,7 +95,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -107,13 +107,13 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "user": "http://localhost:9001/3.0/users/49659196529737298780782683765294265828", - "member_id": 176070946160795832655527978896711395718, "role": "member", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/176070946160795832655527978896711395718", - "address": "http://localhost:9001/3.0/addresses/test@example.com", "http_etag": - "\"554b3dc0c2cfd244ca74b6002638128b0ed1d26e\"", "moderation_action": "defer"}'} + body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"4e28e6b943b09057fb3b5d3c745bb69bed81a875\"", + "list_id": "foo.example.com", "member_id": 43, "moderation_action": "defer", + "role": "member", "self_link": "http://localhost:9001/3.0/members/43", "user": + "http://localhost:9001/3.0/users/18"}'} headers: - content-length: ['489'] + content-length: ['379'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -123,30 +123,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"369c1e614251b6ab9299088a1e1487c7935a1653\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:30.614664", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_domain_index.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_domain_index.yaml index 4743032..209be2f 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_domain_index.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_domain_index.yaml @@ -19,10 +19,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -47,10 +47,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/322572397442235783740281560971025512213'] + location: ['http://localhost:9001/3.0/members/44'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -79,7 +79,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/131024462628261109555103269537710927983'] + location: ['http://localhost:9001/3.0/members/45'] status: {code: 201, message: Created} - request: body: null @@ -88,11 +88,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "total_size": 1, "entries": [{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", + "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", + "start": 0, "total_size": 1}'} headers: content-length: ['338'] content-type: [application/json; charset=utf-8] @@ -104,10 +104,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -154,10 +154,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -182,10 +182,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -201,7 +201,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/164761258116113511516197573997960304108'] + location: ['http://localhost:9001/3.0/members/46'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -214,7 +214,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/123816691514443031882147828810189332265'] + location: ['http://localhost:9001/3.0/members/47'] status: {code: 201, message: Created} - request: body: null @@ -258,10 +258,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -286,10 +286,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -305,7 +305,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/257417566992622201946073537941972045773'] + location: ['http://localhost:9001/3.0/members/48'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -318,7 +318,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/187175552041447077046293003043385978478'] + location: ['http://localhost:9001/3.0/members/49'] status: {code: 201, message: Created} - request: body: null @@ -362,10 +362,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -390,10 +390,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -409,7 +409,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/90819133429416950145364169301210064002'] + location: ['http://localhost:9001/3.0/members/50'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -422,7 +422,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/48858124496817129429335256965720861375'] + location: ['http://localhost:9001/3.0/members/51'] status: {code: 201, message: Created} - request: body: null @@ -466,10 +466,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -494,10 +494,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -513,7 +513,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/202713025889513206687283619631474918909'] + location: ['http://localhost:9001/3.0/members/52'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -526,7 +526,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/295874250835241538979103988834853365089'] + location: ['http://localhost:9001/3.0/members/53'] status: {code: 201, message: Created} - request: body: null diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml index 18a5e30..715739f 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml @@ -1,5 +1,144 @@ interactions: - request: + body: base_url=http%3A%2F%2Fexample.com&description=A+new+Domain.&mail_host=example.com&owner=su%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + 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 + response: + body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", + "description": "A new Domain.", "http_etag": "\"f574263235a622b271bd1115317117aee0e171f0\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}], "http_etag": "\"38f84ff58faee37a60c2f95a37be70303d2cfb59\"", + "start": 0, "total_size": 1}'} + headers: + content-length: ['349'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + "A new Domain.", "http_etag": "\"f574263235a622b271bd1115317117aee0e171f0\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['244'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + "A new Domain.", "http_etag": "\"f574263235a622b271bd1115317117aee0e171f0\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['244'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"base_url": "http://example.com", "description": + "A new Domain.", "http_etag": "\"f574263235a622b271bd1115317117aee0e171f0\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}'} + headers: + content-length: ['244'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com/owners + response: + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"2b7d189e2d8f3403cf72781d5a1837d3f6722d31\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/21", "user_id": 21}], + "http_etag": "\"41ce539c1dc92039f93a90ab9f2f2d002a231d65\"", "start": 0, "total_size": + 1}'} + headers: + content-length: ['295'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/users/su@example.com + response: + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"2b7d189e2d8f3403cf72781d5a1837d3f6722d31\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/21", "user_id": 21}'} + headers: + content-length: ['190'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode 404 Not Found} + headers: + content-length: ['13'] + content-type: [application/json; charset=utf-8] + status: {code: 404, message: Not Found} +- request: body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] @@ -19,11 +158,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "total_size": 1, "entries": [{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", + "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", + "start": 0, "total_size": 1}'} headers: content-length: ['338'] content-type: [application/json; charset=utf-8] @@ -35,10 +174,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -50,10 +189,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -65,10 +204,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -93,10 +232,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/a_new_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "a_new_list", - "display_name": "A_new_list", "list_id": "a_new_list.example.com", "fqdn_listname": - "a_new_list@example.com", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\""}'} + body: {string: !!python/unicode '{"display_name": "A_new_list", "fqdn_listname": + "a_new_list@example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", + "list_id": "a_new_list.example.com", "list_name": "a_new_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", + "volume": 1}'} headers: content-length: ['329'] content-type: [application/json; charset=utf-8] @@ -112,7 +252,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/312214886238543516383933760623489325016'] + location: ['http://localhost:9001/3.0/members/54'] status: {code: 201, message: Created} - request: body: null @@ -121,30 +261,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/a_new_list@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "A_new_list", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "a_new_list-join@example.com", "fqdn_listname": "a_new_list@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "a_new_list@example.com", - "autorespond_postings": "none", "owner_address": "a_new_list-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"262a3fd4e38c9c89785ee4db84c96e0dced8eba2\"", - "list_name": "a_new_list", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "a_new_list-request@example.com", "digests_enabled": - true, "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "a_new_list-leave@example.com", - "subject_prefix": "[A_new_list] ", "bounces_address": "a_new_list-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:14:53.919059", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "a_new_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "A_new_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "a_new_list@example.com", + "http_etag": "\"f9778b3fbe07971d27dce9b470d0c7c40bb243de\"", "include_rfc2369_headers": + true, "join_address": "a_new_list-join@example.com", "last_post_at": null, + "leave_address": "a_new_list-leave@example.com", "list_name": "a_new_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "a_new_list-owner@example.com", "post_id": 1, "posting_address": + "a_new_list@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "a_new_list-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[A_new_list] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1780'] + content-length: ['1773'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -166,10 +306,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/a_new_list@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "a_new_list", - "display_name": "A_new_list", "list_id": "a_new_list.example.com", "fqdn_listname": - "a_new_list@example.com", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\""}'} + body: {string: !!python/unicode '{"display_name": "A_new_list", "fqdn_listname": + "a_new_list@example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", + "list_id": "a_new_list.example.com", "list_name": "a_new_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", + "volume": 1}'} headers: content-length: ['329'] content-type: [application/json; charset=utf-8] @@ -181,15 +322,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/a_new_list.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"4cb040b56b3770ee6ea3b6694a0cb56593541433\"", - "total_size": 1, "entries": [{"email": "owner@example.com", "user": "http://localhost:9001/3.0/users/256572591597747152960213855004434194126", - "member_id": 312214886238543516383933760623489325016, "role": "owner", "delivery_mode": - "regular", "list_id": "a_new_list.example.com", "self_link": "http://localhost:9001/3.0/members/312214886238543516383933760623489325016", - "address": "http://localhost:9001/3.0/addresses/owner@example.com", "http_etag": - "\"7ed139dd97d31c698bbed81d5ddc2d4038c7285a\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", + "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"c45222941570d8f9a05516c20b4e958eb2f83b6d\"", + "list_id": "a_new_list.example.com", "member_id": 54, "moderation_action": + "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/54", + "user": "http://localhost:9001/3.0/users/23"}], "http_etag": "\"b43799a61a79337945de762c9a9e58628311a809\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['604'] + content-length: ['493'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -199,12 +339,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"dee96dcb9d3f736cc6fa170baeea8f879d7db6f0\"", - "total_size": 1, "entries": [{"member_count": 0, "list_name": "a_new_list", - "display_name": "A_new_list", "list_id": "a_new_list.example.com", "fqdn_listname": - "a_new_list@example.com", "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "A_new_list", "fqdn_listname": + "a_new_list@example.com", "http_etag": "\"447e005af2b208bfea01f6425b786356f0a374de\"", + "list_id": "a_new_list.example.com", "list_name": "a_new_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/a_new_list.example.com", + "volume": 1}], "http_etag": "\"dee96dcb9d3f736cc6fa170baeea8f879d7db6f0\"", + "start": 0, "total_size": 1}'} headers: content-length: ['434'] content-type: [application/json; charset=utf-8] @@ -252,7 +392,7 @@ uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -268,143 +408,4 @@ headers: content-length: ['0'] status: {code: 204, message: No Content} -- request: - body: base_url=http%3A%2F%2Fexample.com&description=A+new+Domain.&mail_host=example.com&owner=su%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - 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 - response: - body: {string: !!python/unicode '{"http_etag": "\"38f84ff58faee37a60c2f95a37be70303d2cfb59\"", - "total_size": 1, "entries": [{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"f574263235a622b271bd1115317117aee0e171f0\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": "A new Domain."}], "start": 0}'} - headers: - content-length: ['349'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"f574263235a622b271bd1115317117aee0e171f0\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": "A new Domain."}'} - headers: - content-length: ['244'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"f574263235a622b271bd1115317117aee0e171f0\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": "A new Domain."}'} - headers: - content-length: ['244'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"f574263235a622b271bd1115317117aee0e171f0\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": "A new Domain."}'} - headers: - content-length: ['244'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/domains/example.com/owners - response: - body: {string: !!python/unicode '{"http_etag": "\"e6eac00ef30075a08db7493061c6cea12824e71f\"", - "total_size": 1, "entries": [{"http_etag": "\"acd19158f0a34c0e49e3c1b136483e1b866c4c9f\"", - "user_id": 5117085839622367451321194806276776678, "self_link": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "created_on": "2016-01-23T01:15:43.851307", "is_server_owner": false}], "start": - 0}'} - headers: - content-length: ['372'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/su@example.com - response: - body: {string: !!python/unicode '{"http_etag": "\"acd19158f0a34c0e49e3c1b136483e1b866c4c9f\"", - "user_id": 5117085839622367451321194806276776678, "self_link": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "created_on": "2016-01-23T01:15:43.851307", "is_server_owner": false}'} - headers: - content-length: ['267'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode 404 Not Found} - headers: - content-length: ['13'] - content-type: [application/json; charset=utf-8] - status: {code: 404, message: Not Found} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml index a2ca336..7272275 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml @@ -19,10 +19,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -60,15 +60,16 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"32ddcf601b73aeabdba5c18666c75d062c76eac8\"", - "total_size": 2, "entries": [{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}, - {"member_count": 0, "list_name": "bar", "display_name": "Bar", "list_id": - "bar.example.com", "fqdn_listname": "bar@example.com", "self_link": "http://localhost:9001/3.0/lists/bar.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"ca42a69a3bab5619e147cc6cbbfca16115976764\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}, {"display_name": "Bar", "fqdn_listname": "bar@example.com", + "http_etag": "\"ca42a69a3bab5619e147cc6cbbfca16115976764\"", "list_id": "bar.example.com", + "list_name": "bar", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/bar.example.com", "volume": 1}], "http_etag": + "\"32ddcf601b73aeabdba5c18666c75d062c76eac8\"", "start": 0, "total_size": + 2}'} headers: content-length: ['695'] content-type: [application/json; charset=utf-8] @@ -80,30 +81,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"48a05011d69c32b54a86f9ed9943ffe06623b8d1\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:14:49.903616", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -113,30 +113,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/bar@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Bar", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "bar-join@example.com", "fqdn_listname": "bar@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "bar@example.com", - "autorespond_postings": "none", "owner_address": "bar-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"45cdfaf7f3877eb0290c26dae211c6694c300415\"", - "list_name": "bar", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "bar-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "bar-leave@example.com", - "subject_prefix": "[Bar] ", "bounces_address": "bar-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:14:50.146617", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "bar-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Bar", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "bar@example.com", + "http_etag": "\"fb724834c1855b5b0fd096ce1ffdccfeebaf7ac9\"", "include_rfc2369_headers": + true, "join_address": "bar-join@example.com", "last_post_at": null, "leave_address": + "bar-leave@example.com", "list_name": "bar", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "bar-owner@example.com", + "post_id": 1, "posting_address": "bar@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "bar-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Bar] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -146,11 +145,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode '{"http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", - "total_size": 1, "entries": [{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"base_url": "http://example.com", + "description": null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", + "mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", + "url_host": "example.com"}], "http_etag": "\"c385b155f8da284bf78dbe075e20f58a30c893ab\"", + "start": 0, "total_size": 1}'} headers: content-length: ['338'] content-type: [application/json; charset=utf-8] @@ -162,10 +161,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -177,15 +176,16 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"32ddcf601b73aeabdba5c18666c75d062c76eac8\"", - "total_size": 2, "entries": [{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}, - {"member_count": 0, "list_name": "bar", "display_name": "Bar", "list_id": - "bar.example.com", "fqdn_listname": "bar@example.com", "self_link": "http://localhost:9001/3.0/lists/bar.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"ca42a69a3bab5619e147cc6cbbfca16115976764\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}, {"display_name": "Bar", "fqdn_listname": "bar@example.com", + "http_etag": "\"ca42a69a3bab5619e147cc6cbbfca16115976764\"", "list_id": "bar.example.com", + "list_name": "bar", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/bar.example.com", "volume": 1}], "http_etag": + "\"32ddcf601b73aeabdba5c18666c75d062c76eac8\"", "start": 0, "total_size": + 2}'} headers: content-length: ['695'] content-type: [application/json; charset=utf-8] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_moderator.yaml index 9bbbf60..fa7071a 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_moderator.yaml @@ -19,10 +19,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -47,10 +47,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/217592933722410974177625516527250620969'] + location: ['http://localhost:9001/3.0/members/1'] status: {code: 201, message: Created} - request: body: null @@ -75,15 +75,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"32ec2a44ab0ff9e9a96153d482e6a57bd3123937\"", - "total_size": 1, "entries": [{"email": "newmod@example.com", "user": "http://localhost:9001/3.0/users/227829900995417709014712787679879249886", - "member_id": 217592933722410974177625516527250620969, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/217592933722410974177625516527250620969", - "address": "http://localhost:9001/3.0/addresses/newmod@example.com", "http_etag": - "\"b2c38992d23051613fcb1de8879bf95baa725ba9\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", + "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"c8c71cc3e29d53d13e916dcb627e952627f1ca18\"", + "list_id": "foo.example.com", "member_id": 1, "moderation_action": "accept", + "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1", "user": + "http://localhost:9001/3.0/users/1"}], "http_etag": "\"34e4cec6c6315ead2e60d99bf4c13485e3a09be9\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['603'] + content-length: ['489'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -93,15 +92,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"32ec2a44ab0ff9e9a96153d482e6a57bd3123937\"", - "total_size": 1, "entries": [{"email": "newmod@example.com", "user": "http://localhost:9001/3.0/users/227829900995417709014712787679879249886", - "member_id": 217592933722410974177625516527250620969, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/217592933722410974177625516527250620969", - "address": "http://localhost:9001/3.0/addresses/newmod@example.com", "http_etag": - "\"b2c38992d23051613fcb1de8879bf95baa725ba9\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", + "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"c8c71cc3e29d53d13e916dcb627e952627f1ca18\"", + "list_id": "foo.example.com", "member_id": 1, "moderation_action": "accept", + "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1", "user": + "http://localhost:9001/3.0/users/1"}], "http_etag": "\"34e4cec6c6315ead2e60d99bf4c13485e3a09be9\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['603'] + content-length: ['489'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -111,10 +109,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] 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 2a8bab3..1cb9cb7 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 @@ -6,15 +6,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"32ec2a44ab0ff9e9a96153d482e6a57bd3123937\"", - "total_size": 1, "entries": [{"email": "newmod@example.com", "user": "http://localhost:9001/3.0/users/227829900995417709014712787679879249886", - "member_id": 217592933722410974177625516527250620969, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/217592933722410974177625516527250620969", - "address": "http://localhost:9001/3.0/addresses/newmod@example.com", "http_etag": - "\"b2c38992d23051613fcb1de8879bf95baa725ba9\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", + "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"c8c71cc3e29d53d13e916dcb627e952627f1ca18\"", + "list_id": "foo.example.com", "member_id": 1, "moderation_action": "accept", + "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1", "user": + "http://localhost:9001/3.0/users/1"}], "http_etag": "\"34e4cec6c6315ead2e60d99bf4c13485e3a09be9\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['603'] + content-length: ['489'] 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_members_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner.yaml index f48cbdf..fc9787c 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner.yaml @@ -19,10 +19,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -47,10 +47,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/188622085490191637482591042011236060243'] + location: ['http://localhost:9001/3.0/members/2'] status: {code: 201, message: Created} - request: body: null @@ -75,10 +75,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -125,10 +125,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -153,10 +153,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -172,7 +172,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/324919395264225412157341070815878190166'] + location: ['http://localhost:9001/3.0/members/4'] status: {code: 201, message: Created} - request: body: null @@ -181,10 +181,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -231,10 +231,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -259,10 +259,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -278,7 +278,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/209207566239469241771749504170815324497'] + location: ['http://localhost:9001/3.0/members/7'] status: {code: 201, message: Created} - request: body: null @@ -287,10 +287,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_add_remove.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_add_remove.yaml index 4b565a2..22f3e81 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_add_remove.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_add_remove.yaml @@ -6,10 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -25,7 +25,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/208426025239050114498831343411409955812'] + location: ['http://localhost:9001/3.0/members/3'] status: {code: 201, message: Created} - request: body: null @@ -34,20 +34,19 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"0f9803cf96c995a1ec5a6d3062c7d04be1d8d36d\"", - "total_size": 2, "entries": [{"email": "newowner@example.com", "user": "http://localhost:9001/3.0/users/55578307340124072972466601295489951712", - "member_id": 208426025239050114498831343411409955812, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/208426025239050114498831343411409955812", - "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "http_etag": - "\"fb2f508bf50d6d6ff306ac672c1617173f15e034\"", "moderation_action": "accept"}, - {"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "member_id": 188622085490191637482591042011236060243, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/188622085490191637482591042011236060243", - "address": "http://localhost:9001/3.0/addresses/su@example.com", "http_etag": - "\"64e2047b6bdec31f9c549f62ada785756a89b7bf\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", + "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": + "\"c360c4bc48bbbcee07c1671e1017747feba62e4c\"", "list_id": "foo.example.com", + "member_id": 3, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/3", "user": "http://localhost:9001/3.0/users/3"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"6d988707f754565f2549feb10fb8d43ba08b7fc0\"", + "list_id": "foo.example.com", "member_id": 2, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/2", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"a22da6e895b3ece1bba80b58412640036aa3b856\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['1088'] + content-length: ['863'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -57,20 +56,19 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"0f9803cf96c995a1ec5a6d3062c7d04be1d8d36d\"", - "total_size": 2, "entries": [{"email": "newowner@example.com", "user": "http://localhost:9001/3.0/users/55578307340124072972466601295489951712", - "member_id": 208426025239050114498831343411409955812, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/208426025239050114498831343411409955812", - "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "http_etag": - "\"fb2f508bf50d6d6ff306ac672c1617173f15e034\"", "moderation_action": "accept"}, - {"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "member_id": 188622085490191637482591042011236060243, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/188622085490191637482591042011236060243", - "address": "http://localhost:9001/3.0/addresses/su@example.com", "http_etag": - "\"64e2047b6bdec31f9c549f62ada785756a89b7bf\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", + "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": + "\"c360c4bc48bbbcee07c1671e1017747feba62e4c\"", "list_id": "foo.example.com", + "member_id": 3, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/3", "user": "http://localhost:9001/3.0/users/3"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"6d988707f754565f2549feb10fb8d43ba08b7fc0\"", + "list_id": "foo.example.com", "member_id": 2, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/2", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"a22da6e895b3ece1bba80b58412640036aa3b856\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['1088'] + content-length: ['863'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -80,10 +78,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -95,20 +93,19 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"0f9803cf96c995a1ec5a6d3062c7d04be1d8d36d\"", - "total_size": 2, "entries": [{"email": "newowner@example.com", "user": "http://localhost:9001/3.0/users/55578307340124072972466601295489951712", - "member_id": 208426025239050114498831343411409955812, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/208426025239050114498831343411409955812", - "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "http_etag": - "\"fb2f508bf50d6d6ff306ac672c1617173f15e034\"", "moderation_action": "accept"}, - {"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "member_id": 188622085490191637482591042011236060243, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/188622085490191637482591042011236060243", - "address": "http://localhost:9001/3.0/addresses/su@example.com", "http_etag": - "\"64e2047b6bdec31f9c549f62ada785756a89b7bf\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", + "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": + "\"c360c4bc48bbbcee07c1671e1017747feba62e4c\"", "list_id": "foo.example.com", + "member_id": 3, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/3", "user": "http://localhost:9001/3.0/users/3"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"6d988707f754565f2549feb10fb8d43ba08b7fc0\"", + "list_id": "foo.example.com", "member_id": 2, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/2", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"a22da6e895b3ece1bba80b58412640036aa3b856\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['1088'] + content-length: ['863'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -129,15 +126,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"bf0d965134886a84216a67d76901ffa5a5013706\"", - "total_size": 1, "entries": [{"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "member_id": 188622085490191637482591042011236060243, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/188622085490191637482591042011236060243", - "address": "http://localhost:9001/3.0/addresses/su@example.com", "http_etag": - "\"64e2047b6bdec31f9c549f62ada785756a89b7bf\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"6d988707f754565f2549feb10fb8d43ba08b7fc0\"", + "list_id": "foo.example.com", "member_id": 2, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/2", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"d2cbb6fb6355e9524edc8e386f081c430375c54c\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['589'] + content-length: ['477'] 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_members_owner_by_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_by_owner.yaml index 0b614bd..fa19a12 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_by_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_by_owner.yaml @@ -6,15 +6,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"574e779e5d1c6db42cdadc1c29fa04c3f00cf4ad\"", - "total_size": 1, "entries": [{"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "member_id": 209207566239469241771749504170815324497, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/209207566239469241771749504170815324497", - "address": "http://localhost:9001/3.0/addresses/su@example.com", "http_etag": - "\"6d378e55674e9ffa2bacb6b7d1b3eb81abd4bf8c\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"", + "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"cad820684c756eb04bc8968d4f91288f13498e66\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['589'] + content-length: ['477'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -24,10 +23,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -39,11 +38,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/su@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"acd19158f0a34c0e49e3c1b136483e1b866c4c9f\"", - "user_id": 5117085839622367451321194806276776678, "self_link": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "created_on": "2016-01-23T01:15:43.851307", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"b36f8ca1d91d583901c768dc116815282d469c66\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}'} headers: - content-length: ['267'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -51,15 +50,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/5117085839622367451321194806276776678/addresses + uri: http://localhost:9001/3.0/users/2/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"17ebcb79a2acfc03f221451c3d3aecb1357340f4\"", - "total_size": 1, "entries": [{"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "self_link": "http://localhost:9001/3.0/addresses/su@example.com", "original_email": - "su@example.com", "http_etag": "\"d259bbb668273b33d4164ec243323d77bff132e9\"", - "registered_on": "2016-01-23T01:15:43.851068"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/2"}], "http_etag": "\"7cc723891821fbf8b0974c2ec407cca11fbb6726\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['424'] + content-length: ['381'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -69,15 +68,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"574e779e5d1c6db42cdadc1c29fa04c3f00cf4ad\"", - "total_size": 1, "entries": [{"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "member_id": 209207566239469241771749504170815324497, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/209207566239469241771749504170815324497", - "address": "http://localhost:9001/3.0/addresses/su@example.com", "http_etag": - "\"6d378e55674e9ffa2bacb6b7d1b3eb81abd4bf8c\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"", + "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"cad820684c756eb04bc8968d4f91288f13498e66\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['589'] + content-length: ['477'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -88,7 +86,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -100,10 +98,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -119,7 +117,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/244922391252601567386261954557419196010'] + location: ['http://localhost:9001/3.0/members/8'] status: {code: 201, message: Created} - request: body: null @@ -128,20 +126,19 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"43875fa2ee5e01e3034e979994f3baa324a3f2fc\"", - "total_size": 2, "entries": [{"email": "newowner@example.com", "user": "http://localhost:9001/3.0/users/55578307340124072972466601295489951712", - "member_id": 244922391252601567386261954557419196010, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/244922391252601567386261954557419196010", - "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "http_etag": - "\"37136275943576042f4188619e245bd20c246f66\"", "moderation_action": "accept"}, - {"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "member_id": 209207566239469241771749504170815324497, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/209207566239469241771749504170815324497", - "address": "http://localhost:9001/3.0/addresses/su@example.com", "http_etag": - "\"6d378e55674e9ffa2bacb6b7d1b3eb81abd4bf8c\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", + "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": + "\"cb2189f8ba0ef7b4c13784d0d4bd22d7fc1056bf\"", "list_id": "foo.example.com", + "member_id": 8, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/3"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"", + "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"e6c44c2170ac8bf35b3c83f0bf8fbd3f35549e16\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['1088'] + content-length: ['863'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -151,20 +148,19 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"43875fa2ee5e01e3034e979994f3baa324a3f2fc\"", - "total_size": 2, "entries": [{"email": "newowner@example.com", "user": "http://localhost:9001/3.0/users/55578307340124072972466601295489951712", - "member_id": 244922391252601567386261954557419196010, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/244922391252601567386261954557419196010", - "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "http_etag": - "\"37136275943576042f4188619e245bd20c246f66\"", "moderation_action": "accept"}, - {"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "member_id": 209207566239469241771749504170815324497, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/209207566239469241771749504170815324497", - "address": "http://localhost:9001/3.0/addresses/su@example.com", "http_etag": - "\"6d378e55674e9ffa2bacb6b7d1b3eb81abd4bf8c\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", + "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": + "\"cb2189f8ba0ef7b4c13784d0d4bd22d7fc1056bf\"", "list_id": "foo.example.com", + "member_id": 8, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/3"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"", + "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"e6c44c2170ac8bf35b3c83f0bf8fbd3f35549e16\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['1088'] + content-length: ['863'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -174,10 +170,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -189,11 +185,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/su@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"acd19158f0a34c0e49e3c1b136483e1b866c4c9f\"", - "user_id": 5117085839622367451321194806276776678, "self_link": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "created_on": "2016-01-23T01:15:43.851307", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"b36f8ca1d91d583901c768dc116815282d469c66\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/2", "user_id": 2}'} headers: - content-length: ['267'] + content-length: ['188'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -201,15 +197,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/5117085839622367451321194806276776678/addresses + uri: http://localhost:9001/3.0/users/2/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"17ebcb79a2acfc03f221451c3d3aecb1357340f4\"", - "total_size": 1, "entries": [{"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "self_link": "http://localhost:9001/3.0/addresses/su@example.com", "original_email": - "su@example.com", "http_etag": "\"d259bbb668273b33d4164ec243323d77bff132e9\"", - "registered_on": "2016-01-23T01:15:43.851068"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": + "\"a8988d233ad4b9e8641ad5d75553912565efec83\"", "original_email": "su@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/su@example.com", + "user": "http://localhost:9001/3.0/users/2"}], "http_etag": "\"7cc723891821fbf8b0974c2ec407cca11fbb6726\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['424'] + content-length: ['381'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -219,20 +215,19 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"43875fa2ee5e01e3034e979994f3baa324a3f2fc\"", - "total_size": 2, "entries": [{"email": "newowner@example.com", "user": "http://localhost:9001/3.0/users/55578307340124072972466601295489951712", - "member_id": 244922391252601567386261954557419196010, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/244922391252601567386261954557419196010", - "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "http_etag": - "\"37136275943576042f4188619e245bd20c246f66\"", "moderation_action": "accept"}, - {"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "member_id": 209207566239469241771749504170815324497, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/209207566239469241771749504170815324497", - "address": "http://localhost:9001/3.0/addresses/su@example.com", "http_etag": - "\"6d378e55674e9ffa2bacb6b7d1b3eb81abd4bf8c\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", + "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": + "\"cb2189f8ba0ef7b4c13784d0d4bd22d7fc1056bf\"", "list_id": "foo.example.com", + "member_id": 8, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/3"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"", + "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"e6c44c2170ac8bf35b3c83f0bf8fbd3f35549e16\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['1088'] + content-length: ['863'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -243,7 +238,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -255,10 +250,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -270,20 +265,19 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"43875fa2ee5e01e3034e979994f3baa324a3f2fc\"", - "total_size": 2, "entries": [{"email": "newowner@example.com", "user": "http://localhost:9001/3.0/users/55578307340124072972466601295489951712", - "member_id": 244922391252601567386261954557419196010, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/244922391252601567386261954557419196010", - "address": "http://localhost:9001/3.0/addresses/newowner@example.com", "http_etag": - "\"37136275943576042f4188619e245bd20c246f66\"", "moderation_action": "accept"}, - {"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "member_id": 209207566239469241771749504170815324497, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/209207566239469241771749504170815324497", - "address": "http://localhost:9001/3.0/addresses/su@example.com", "http_etag": - "\"6d378e55674e9ffa2bacb6b7d1b3eb81abd4bf8c\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", + "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": + "\"cb2189f8ba0ef7b4c13784d0d4bd22d7fc1056bf\"", "list_id": "foo.example.com", + "member_id": 8, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/8", "user": "http://localhost:9001/3.0/users/3"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"", + "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"e6c44c2170ac8bf35b3c83f0bf8fbd3f35549e16\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['1088'] + content-length: ['863'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -304,15 +298,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"574e779e5d1c6db42cdadc1c29fa04c3f00cf4ad\"", - "total_size": 1, "entries": [{"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "member_id": 209207566239469241771749504170815324497, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/209207566239469241771749504170815324497", - "address": "http://localhost:9001/3.0/addresses/su@example.com", "http_etag": - "\"6d378e55674e9ffa2bacb6b7d1b3eb81abd4bf8c\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"41d57890ce496889a5e5228b4fe371df4c366828\"", + "list_id": "foo.example.com", "member_id": 7, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/7", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"cad820684c756eb04bc8968d4f91288f13498e66\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['589'] + content-length: ['477'] 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_members_owner_self_last.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_self_last.yaml index daa0098..6b269ef 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_self_last.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_self_last.yaml @@ -6,10 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -25,7 +25,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/153156657658094898671844683251085811566'] + location: ['http://localhost:9001/3.0/members/5'] status: {code: 201, message: Created} - request: body: null @@ -34,20 +34,19 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"78ea482f0160df35b703033374e12e94fd9d3a09\"", - "total_size": 2, "entries": [{"email": "otherowner@example.com", "user": "http://localhost:9001/3.0/users/18628991204221928548353372214823090209", - "member_id": 153156657658094898671844683251085811566, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/153156657658094898671844683251085811566", - "address": "http://localhost:9001/3.0/addresses/otherowner@example.com", "http_etag": - "\"b008ebfb137c4331389386a9d25a2b2aa4c321f8\"", "moderation_action": "accept"}, - {"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "member_id": 324919395264225412157341070815878190166, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/324919395264225412157341070815878190166", - "address": "http://localhost:9001/3.0/addresses/su@example.com", "http_etag": - "\"d3fe974c6c9790cb228fd523b1853e70d171052e\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/otherowner@example.com", + "delivery_mode": "regular", "email": "otherowner@example.com", "http_etag": + "\"39455ab3883c5cb41d206acfc6f5f9d34d8977ad\"", "list_id": "foo.example.com", + "member_id": 5, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/4"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"10c27e9e6dc556f9516987be57ab48241c56912e\"", + "list_id": "foo.example.com", "member_id": 4, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/4", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"71540af6234005a7ae65241748770c8e6a80357c\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['1092'] + content-length: ['867'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -57,20 +56,19 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"78ea482f0160df35b703033374e12e94fd9d3a09\"", - "total_size": 2, "entries": [{"email": "otherowner@example.com", "user": "http://localhost:9001/3.0/users/18628991204221928548353372214823090209", - "member_id": 153156657658094898671844683251085811566, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/153156657658094898671844683251085811566", - "address": "http://localhost:9001/3.0/addresses/otherowner@example.com", "http_etag": - "\"b008ebfb137c4331389386a9d25a2b2aa4c321f8\"", "moderation_action": "accept"}, - {"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "member_id": 324919395264225412157341070815878190166, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/324919395264225412157341070815878190166", - "address": "http://localhost:9001/3.0/addresses/su@example.com", "http_etag": - "\"d3fe974c6c9790cb228fd523b1853e70d171052e\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/otherowner@example.com", + "delivery_mode": "regular", "email": "otherowner@example.com", "http_etag": + "\"39455ab3883c5cb41d206acfc6f5f9d34d8977ad\"", "list_id": "foo.example.com", + "member_id": 5, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/4"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"10c27e9e6dc556f9516987be57ab48241c56912e\"", + "list_id": "foo.example.com", "member_id": 4, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/4", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"71540af6234005a7ae65241748770c8e6a80357c\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['1092'] + content-length: ['867'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -80,10 +78,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -95,20 +93,19 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"78ea482f0160df35b703033374e12e94fd9d3a09\"", - "total_size": 2, "entries": [{"email": "otherowner@example.com", "user": "http://localhost:9001/3.0/users/18628991204221928548353372214823090209", - "member_id": 153156657658094898671844683251085811566, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/153156657658094898671844683251085811566", - "address": "http://localhost:9001/3.0/addresses/otherowner@example.com", "http_etag": - "\"b008ebfb137c4331389386a9d25a2b2aa4c321f8\"", "moderation_action": "accept"}, - {"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "member_id": 324919395264225412157341070815878190166, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/324919395264225412157341070815878190166", - "address": "http://localhost:9001/3.0/addresses/su@example.com", "http_etag": - "\"d3fe974c6c9790cb228fd523b1853e70d171052e\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/otherowner@example.com", + "delivery_mode": "regular", "email": "otherowner@example.com", "http_etag": + "\"39455ab3883c5cb41d206acfc6f5f9d34d8977ad\"", "list_id": "foo.example.com", + "member_id": 5, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/4"}, + {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": + "regular", "email": "su@example.com", "http_etag": "\"10c27e9e6dc556f9516987be57ab48241c56912e\"", + "list_id": "foo.example.com", "member_id": 4, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/4", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"71540af6234005a7ae65241748770c8e6a80357c\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['1092'] + content-length: ['867'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -129,15 +126,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"e023a313151f18ada73cd0833420eb236920ce6e\"", - "total_size": 1, "entries": [{"email": "otherowner@example.com", "user": "http://localhost:9001/3.0/users/18628991204221928548353372214823090209", - "member_id": 153156657658094898671844683251085811566, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/153156657658094898671844683251085811566", - "address": "http://localhost:9001/3.0/addresses/otherowner@example.com", "http_etag": - "\"b008ebfb137c4331389386a9d25a2b2aa4c321f8\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/otherowner@example.com", + "delivery_mode": "regular", "email": "otherowner@example.com", "http_etag": + "\"39455ab3883c5cb41d206acfc6f5f9d34d8977ad\"", "list_id": "foo.example.com", + "member_id": 5, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/5", "user": "http://localhost:9001/3.0/users/4"}], + "http_etag": "\"6129b0373898970dfff1cf574ce14c0ee30b84ca\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['606'] + content-length: ['493'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -151,7 +148,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/244725134132832545035753189004994556171'] + location: ['http://localhost:9001/3.0/members/6'] status: {code: 201, message: Created} - request: body: null @@ -171,15 +168,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"bf4f75374cfbd40762ae383d21bdf5b5365d2b0e\"", - "total_size": 1, "entries": [{"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "member_id": 244725134132832545035753189004994556171, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/244725134132832545035753189004994556171", - "address": "http://localhost:9001/3.0/addresses/su@example.com", "http_etag": - "\"376f929a06094466f3fb8b7e2aee0bedb7a5dbac\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"3b037df8d9ab871f6a55ce119b3f3f7e2b1ea69d\"", + "list_id": "foo.example.com", "member_id": 6, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/6", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"3b23baf8158b66e778e6cfbf22afb7a26aafcab3\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['589'] + content-length: ['477'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -189,15 +185,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"bf4f75374cfbd40762ae383d21bdf5b5365d2b0e\"", - "total_size": 1, "entries": [{"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "member_id": 244725134132832545035753189004994556171, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/244725134132832545035753189004994556171", - "address": "http://localhost:9001/3.0/addresses/su@example.com", "http_etag": - "\"376f929a06094466f3fb8b7e2aee0bedb7a5dbac\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"3b037df8d9ab871f6a55ce119b3f3f7e2b1ea69d\"", + "list_id": "foo.example.com", "member_id": 6, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/6", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"3b23baf8158b66e778e6cfbf22afb7a26aafcab3\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['589'] + content-length: ['477'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -207,10 +202,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -222,15 +217,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"bf4f75374cfbd40762ae383d21bdf5b5365d2b0e\"", - "total_size": 1, "entries": [{"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "member_id": 244725134132832545035753189004994556171, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/244725134132832545035753189004994556171", - "address": "http://localhost:9001/3.0/addresses/su@example.com", "http_etag": - "\"376f929a06094466f3fb8b7e2aee0bedb7a5dbac\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"3b037df8d9ab871f6a55ce119b3f3f7e2b1ea69d\"", + "list_id": "foo.example.com", "member_id": 6, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/6", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"3b23baf8158b66e778e6cfbf22afb7a26aafcab3\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['589'] + content-length: ['477'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -240,15 +234,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"bf4f75374cfbd40762ae383d21bdf5b5365d2b0e\"", - "total_size": 1, "entries": [{"email": "su@example.com", "user": "http://localhost:9001/3.0/users/5117085839622367451321194806276776678", - "member_id": 244725134132832545035753189004994556171, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/244725134132832545035753189004994556171", - "address": "http://localhost:9001/3.0/addresses/su@example.com", "http_etag": - "\"376f929a06094466f3fb8b7e2aee0bedb7a5dbac\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", + "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"3b037df8d9ab871f6a55ce119b3f3f7e2b1ea69d\"", + "list_id": "foo.example.com", "member_id": 6, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/6", "user": + "http://localhost:9001/3.0/users/2"}], "http_etag": "\"3b23baf8158b66e778e6cfbf22afb7a26aafcab3\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['589'] + content-length: ['477'] 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_subscription.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml index 3483af1..a89af46 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml @@ -19,10 +19,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -47,10 +47,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "open_list", - "display_name": "Open_list", "list_id": "open_list.example.com", "fqdn_listname": - "open_list@example.com", "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\""}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -62,30 +63,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Open_list", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "open_list-join@example.com", "fqdn_listname": "open_list@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "open_list@example.com", - "autorespond_postings": "none", "owner_address": "open_list-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"f56d0e003f7b8ffcbd8c15b17472ded1108c5bf6\"", - "list_name": "open_list", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "open_list-request@example.com", "digests_enabled": - true, "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "open_list-leave@example.com", - "subject_prefix": "[Open_list] ", "bounces_address": "open_list-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:00.836908", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"0df09b8caf490c5b0108208cf1a653105fcc6893\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1770'] + content-length: ['1763'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -120,10 +121,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "moderate_subs", - "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com", "fqdn_listname": - "moderate_subs@example.com", "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\""}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] @@ -135,30 +137,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Moderate_subs", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "moderate_subs-join@example.com", "fqdn_listname": "moderate_subs@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "moderate_subs@example.com", - "autorespond_postings": "none", "owner_address": "moderate_subs-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"d88ce55a59514efe934e4cdc9591dc5af68b83e2\"", - "list_name": "moderate_subs", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "moderate_subs-request@example.com", "digests_enabled": - true, "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "moderate_subs-leave@example.com", - "subject_prefix": "[Moderate_subs] ", "bounces_address": "moderate_subs-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:01.180009", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", + "http_etag": "\"0ef83c8b84b16db2b497557f2d5cbba080ff1f77\"", "include_rfc2369_headers": + true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, + "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1810'] + content-length: ['1803'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -184,7 +186,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/96791921126719655979375158091200338260'] + location: ['http://localhost:9001/3.0/users/24'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org @@ -192,7 +194,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/96791921126719655979375158091200338260/addresses + uri: http://localhost:9001/3.0/users/24/addresses response: body: {string: !!python/unicode ''} headers: @@ -218,7 +220,7 @@ uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -230,11 +232,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: - body: {string: !!python/unicode '{"http_etag": "\"13b425cab32463baf092109484800ee4c459ce7c\"", - "total_size": 1, "entries": [{"when": "2016-01-23T01:15:02", "email": "fritz@example.org", - "type": "subscription", "token_owner": "moderator", "token": "ac60df21ec5786d6719e9ee44fe699956edf5178", - "display_name": "", "list_id": "moderate_subs.example.com", "http_etag": "\"1f9d4748e1d2c5b0cc4f38b101a9810acc08de02\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "fritz@example.org", + "http_etag": "\"6d5e1c84b0e79499b8a33d561983e3778e2b418a\"", "list_id": "moderate_subs.example.com", + "token": "0000000000000000000000000000000000000002", "token_owner": "moderator", + "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"f2a2e0e65e2a94d4ccd96ac44098c4c88608a68a\"", + "start": 0, "total_size": 1}'} headers: content-length: ['392'] content-type: [application/json; charset=utf-8] @@ -245,7 +247,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/ac60df21ec5786d6719e9ee44fe699956edf5178 + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/0000000000000000000000000000000000000002 response: body: {string: !!python/unicode ''} headers: @@ -278,7 +280,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/96791921126719655979375158091200338260 + uri: http://localhost:9001/3.0/users/24 response: body: {string: !!python/unicode ''} headers: @@ -315,10 +317,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -343,10 +345,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "open_list", - "display_name": "Open_list", "list_id": "open_list.example.com", "fqdn_listname": - "open_list@example.com", "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\""}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -358,30 +361,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Open_list", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "open_list-join@example.com", "fqdn_listname": "open_list@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "open_list@example.com", - "autorespond_postings": "none", "owner_address": "open_list-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"0f2aaf7b58e9b9122459427a2803cac64c0679e7\"", - "list_name": "open_list", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "open_list-request@example.com", "digests_enabled": - true, "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "open_list-leave@example.com", - "subject_prefix": "[Open_list] ", "bounces_address": "open_list-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:03.614585", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"0df09b8caf490c5b0108208cf1a653105fcc6893\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1770'] + content-length: ['1763'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -416,10 +419,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "moderate_subs", - "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com", "fqdn_listname": - "moderate_subs@example.com", "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\""}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] @@ -431,30 +435,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Moderate_subs", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "moderate_subs-join@example.com", "fqdn_listname": "moderate_subs@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "moderate_subs@example.com", - "autorespond_postings": "none", "owner_address": "moderate_subs-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"78af87552ead2456e8e788bbcc0790b2dca770e3\"", - "list_name": "moderate_subs", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "moderate_subs-request@example.com", "digests_enabled": - true, "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "moderate_subs-leave@example.com", - "subject_prefix": "[Moderate_subs] ", "bounces_address": "moderate_subs-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:03.945858", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", + "http_etag": "\"0ef83c8b84b16db2b497557f2d5cbba080ff1f77\"", "include_rfc2369_headers": + true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, + "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1810'] + content-length: ['1803'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -480,7 +484,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/241613429579098249340279334636589859291'] + location: ['http://localhost:9001/3.0/users/25'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org @@ -488,7 +492,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/241613429579098249340279334636589859291/addresses + uri: http://localhost:9001/3.0/users/25/addresses response: body: {string: !!python/unicode ''} headers: @@ -514,7 +518,7 @@ uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -527,7 +531,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -559,7 +563,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/241613429579098249340279334636589859291 + uri: http://localhost:9001/3.0/users/25 response: body: {string: !!python/unicode ''} headers: @@ -596,10 +600,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -624,10 +628,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "open_list", - "display_name": "Open_list", "list_id": "open_list.example.com", "fqdn_listname": - "open_list@example.com", "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\""}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -639,30 +644,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Open_list", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "open_list-join@example.com", "fqdn_listname": "open_list@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "open_list@example.com", - "autorespond_postings": "none", "owner_address": "open_list-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"951b3027d50ca626565a06a34821444222888eef\"", - "list_name": "open_list", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "open_list-request@example.com", "digests_enabled": - true, "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "open_list-leave@example.com", - "subject_prefix": "[Open_list] ", "bounces_address": "open_list-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:06.486279", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"0df09b8caf490c5b0108208cf1a653105fcc6893\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1770'] + content-length: ['1763'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -697,10 +702,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "moderate_subs", - "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com", "fqdn_listname": - "moderate_subs@example.com", "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\""}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] @@ -712,30 +718,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Moderate_subs", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "moderate_subs-join@example.com", "fqdn_listname": "moderate_subs@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "moderate_subs@example.com", - "autorespond_postings": "none", "owner_address": "moderate_subs-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"910ef8a9e44f710ed6943a887a66ce811de584cb\"", - "list_name": "moderate_subs", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "moderate_subs-request@example.com", "digests_enabled": - true, "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "moderate_subs-leave@example.com", - "subject_prefix": "[Moderate_subs] ", "bounces_address": "moderate_subs-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:06.829572", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", + "http_etag": "\"0ef83c8b84b16db2b497557f2d5cbba080ff1f77\"", "include_rfc2369_headers": + true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, + "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1810'] + content-length: ['1803'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -761,7 +767,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/339630114468406331612844785559321586734'] + location: ['http://localhost:9001/3.0/users/26'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org @@ -769,7 +775,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/339630114468406331612844785559321586734/addresses + uri: http://localhost:9001/3.0/users/26/addresses response: body: {string: !!python/unicode ''} headers: @@ -795,7 +801,7 @@ uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -807,11 +813,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: - body: {string: !!python/unicode '{"http_etag": "\"487aa4f71d2b6c7eb61649a548b15747629c20f7\"", - "total_size": 1, "entries": [{"when": "2016-01-23T01:15:08", "email": "test@example.com", - "type": "subscription", "token_owner": "moderator", "token": "899cd84e06385452730f2c963d3b5937e49b15d6", - "display_name": "", "list_id": "moderate_subs.example.com", "http_etag": "\"2ab5a5da960a84ac7390a7a7d4361bc5641439f8\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", + "http_etag": "\"05789eac34b1a55d8e9c373407d5bb9de8f07d7c\"", "list_id": "moderate_subs.example.com", + "token": "0000000000000000000000000000000000000003", "token_owner": "moderator", + "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"97ec7ec659a863253fb5b45bbb3e7a2ec9549f96\"", + "start": 0, "total_size": 1}'} headers: content-length: ['391'] content-type: [application/json; charset=utf-8] @@ -822,7 +828,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/899cd84e06385452730f2c963d3b5937e49b15d6 + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/0000000000000000000000000000000000000003 response: body: {string: !!python/unicode ''} headers: @@ -855,7 +861,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/339630114468406331612844785559321586734 + uri: http://localhost:9001/3.0/users/26 response: body: {string: !!python/unicode ''} headers: @@ -892,10 +898,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -920,10 +926,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "open_list", - "display_name": "Open_list", "list_id": "open_list.example.com", "fqdn_listname": - "open_list@example.com", "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\""}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -935,30 +942,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Open_list", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "open_list-join@example.com", "fqdn_listname": "open_list@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "open_list@example.com", - "autorespond_postings": "none", "owner_address": "open_list-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"9c43d1b632d154f0db547b75e5c568607c422396\"", - "list_name": "open_list", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "open_list-request@example.com", "digests_enabled": - true, "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "open_list-leave@example.com", - "subject_prefix": "[Open_list] ", "bounces_address": "open_list-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:09.533259", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"0df09b8caf490c5b0108208cf1a653105fcc6893\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1770'] + content-length: ['1763'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -993,10 +1000,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "moderate_subs", - "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com", "fqdn_listname": - "moderate_subs@example.com", "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\""}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] @@ -1008,30 +1016,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Moderate_subs", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "moderate_subs-join@example.com", "fqdn_listname": "moderate_subs@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "moderate_subs@example.com", - "autorespond_postings": "none", "owner_address": "moderate_subs-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"e530444c78e181778d384c5c1459e544353eb755\"", - "list_name": "moderate_subs", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "moderate_subs-request@example.com", "digests_enabled": - true, "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "moderate_subs-leave@example.com", - "subject_prefix": "[Moderate_subs] ", "bounces_address": "moderate_subs-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:09.878635", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", + "http_etag": "\"0ef83c8b84b16db2b497557f2d5cbba080ff1f77\"", "include_rfc2369_headers": + true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, + "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1810'] + content-length: ['1803'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1057,7 +1065,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/202170133294496996778634614357049624013'] + location: ['http://localhost:9001/3.0/users/27'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org @@ -1065,7 +1073,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/202170133294496996778634614357049624013/addresses + uri: http://localhost:9001/3.0/users/27/addresses response: body: {string: !!python/unicode ''} headers: @@ -1091,7 +1099,7 @@ uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -1104,7 +1112,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -1136,7 +1144,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/202170133294496996778634614357049624013 + uri: http://localhost:9001/3.0/users/27 response: body: {string: !!python/unicode ''} headers: @@ -1173,10 +1181,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -1201,10 +1209,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "open_list", - "display_name": "Open_list", "list_id": "open_list.example.com", "fqdn_listname": - "open_list@example.com", "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\""}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -1216,30 +1225,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Open_list", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "open_list-join@example.com", "fqdn_listname": "open_list@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "open_list@example.com", - "autorespond_postings": "none", "owner_address": "open_list-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"694a800658d0037c16ce23d56a3659789548b54b\"", - "list_name": "open_list", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "open_list-request@example.com", "digests_enabled": - true, "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "open_list-leave@example.com", - "subject_prefix": "[Open_list] ", "bounces_address": "open_list-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:12.437081", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"0df09b8caf490c5b0108208cf1a653105fcc6893\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "confirm", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1770'] + content-length: ['1763'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1274,10 +1283,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "moderate_subs", - "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com", "fqdn_listname": - "moderate_subs@example.com", "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\""}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] @@ -1289,30 +1299,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Moderate_subs", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "moderate_subs-join@example.com", "fqdn_listname": "moderate_subs@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "moderate_subs@example.com", - "autorespond_postings": "none", "owner_address": "moderate_subs-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"6769d078aadb86e8e56231ce464b24a025319daf\"", - "list_name": "moderate_subs", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "moderate_subs-request@example.com", "digests_enabled": - true, "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "moderate_subs-leave@example.com", - "subject_prefix": "[Moderate_subs] ", "bounces_address": "moderate_subs-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:12.771193", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", + "http_etag": "\"0ef83c8b84b16db2b497557f2d5cbba080ff1f77\"", "include_rfc2369_headers": + true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, + "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "confirm", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1810'] + content-length: ['1803'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1338,7 +1348,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/290722913735219944815132205053379070116'] + location: ['http://localhost:9001/3.0/users/28'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org @@ -1346,7 +1356,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/290722913735219944815132205053379070116/addresses + uri: http://localhost:9001/3.0/users/28/addresses response: body: {string: !!python/unicode ''} headers: @@ -1372,7 +1382,7 @@ uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -1385,7 +1395,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -1417,7 +1427,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/290722913735219944815132205053379070116 + uri: http://localhost:9001/3.0/users/28 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_primary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_primary.yaml index fb91919..442758e 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_primary.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_primary.yaml @@ -6,10 +6,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "moderate_subs", - "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com", "fqdn_listname": - "moderate_subs@example.com", "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\""}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] @@ -21,12 +22,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"password": "$6$rounds=653085$k86b6IT42K3p3k1H$.r5Z.gidcMZ.R5Opex0jUZLFBxygyPYxNVWm46mE4asnY2jz6NiC1Vh29GTdVt0EioqyJTaTNi9E4DcD8yAc21", - "user_id": 339630114468406331612844785559321586734, "self_link": "http://localhost:9001/3.0/users/339630114468406331612844785559321586734", - "created_on": "2016-01-23T01:15:07.214546", "is_server_owner": false, "http_etag": - "\"4c3d7db37fb198c322349430c2aa21138a3895e7\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"22566de33b3ff720338547bdf26b97916321f504\"", "is_server_owner": false, + "password": "$6$rounds=596903$iOSzGqFbp9KpwRKk$KisF/V81KnDq7.CiruPSRVDSEm6Y90MzEBkpyz9v9527g1r1VldgS/mS/p/zBeErw3VtgzsoW7J84TjX/nRCs1", + "self_link": "http://localhost:9001/3.0/users/26", "user_id": 26}'} headers: - content-length: ['407'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -34,19 +35,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/339630114468406331612844785559321586734/addresses + uri: http://localhost:9001/3.0/users/26/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"14ab5ec67c0db804d060356f12ec61c054c4f6ae\"", - "total_size": 2, "entries": [{"email": "fritz@example.org", "user": "http://localhost:9001/3.0/users/339630114468406331612844785559321586734", - "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "original_email": - "fritz@example.org", "http_etag": "\"39b6c60fa0419a0ae03d4d95841ccdafe7c6d3e3\"", - "verified_on": "2016-01-23T01:15:07.742825", "registered_on": "2016-01-23T01:15:07.688498"}, - {"email": "test@example.com", "user": "http://localhost:9001/3.0/users/339630114468406331612844785559321586734", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "http_etag": "\"4a626fd87e6ef219c0e43f69def04773e54e8436\"", - "registered_on": "2016-01-23T01:15:07.214194"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"12916f2dccd0180520d2cb7ab0dfa752715e1fd9\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/26", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"c213666b199f08f149751b67207fa087395abf9b\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/26"}], "http_etag": "\"abca8d2abbe1d637b4abfeb7a89042e7668d5b21\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['809'] + content-length: ['714'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -57,7 +58,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -70,7 +71,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -83,8 +84,8 @@ method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: - body: {string: !!python/unicode '{"token_owner": "moderator", "token": "899cd84e06385452730f2c963d3b5937e49b15d6", - "http_etag": "\"3e19260904a52f27a754fe3d1a8a6dc6307f1ef6\""}'} + body: {string: !!python/unicode '{"http_etag": "\"c63c029e701c8257e2a249d1c41d50660434b11f\"", + "token": "0000000000000000000000000000000000000003", "token_owner": "moderator"}'} headers: content-length: ['142'] content-type: [application/json; charset=utf-8] @@ -97,7 +98,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/roster/member response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -109,11 +110,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: - body: {string: !!python/unicode '{"http_etag": "\"487aa4f71d2b6c7eb61649a548b15747629c20f7\"", - "total_size": 1, "entries": [{"when": "2016-01-23T01:15:08", "email": "test@example.com", - "type": "subscription", "token_owner": "moderator", "token": "899cd84e06385452730f2c963d3b5937e49b15d6", - "display_name": "", "list_id": "moderate_subs.example.com", "http_etag": "\"2ab5a5da960a84ac7390a7a7d4361bc5641439f8\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", + "http_etag": "\"05789eac34b1a55d8e9c373407d5bb9de8f07d7c\"", "list_id": "moderate_subs.example.com", + "token": "0000000000000000000000000000000000000003", "token_owner": "moderator", + "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"97ec7ec659a863253fb5b45bbb3e7a2ec9549f96\"", + "start": 0, "total_size": 1}'} headers: content-length: ['391'] content-type: [application/json; charset=utf-8] @@ -125,10 +126,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "moderate_subs", - "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com", "fqdn_listname": - "moderate_subs@example.com", "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\""}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] @@ -140,12 +142,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"password": "$6$rounds=653085$k86b6IT42K3p3k1H$.r5Z.gidcMZ.R5Opex0jUZLFBxygyPYxNVWm46mE4asnY2jz6NiC1Vh29GTdVt0EioqyJTaTNi9E4DcD8yAc21", - "user_id": 339630114468406331612844785559321586734, "self_link": "http://localhost:9001/3.0/users/339630114468406331612844785559321586734", - "created_on": "2016-01-23T01:15:07.214546", "is_server_owner": false, "http_etag": - "\"4c3d7db37fb198c322349430c2aa21138a3895e7\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"22566de33b3ff720338547bdf26b97916321f504\"", "is_server_owner": false, + "password": "$6$rounds=596903$iOSzGqFbp9KpwRKk$KisF/V81KnDq7.CiruPSRVDSEm6Y90MzEBkpyz9v9527g1r1VldgS/mS/p/zBeErw3VtgzsoW7J84TjX/nRCs1", + "self_link": "http://localhost:9001/3.0/users/26", "user_id": 26}'} headers: - content-length: ['407'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -153,20 +155,20 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/339630114468406331612844785559321586734/addresses + uri: http://localhost:9001/3.0/users/26/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"0d11173a3a51b3540e33978113bb4d25a07dfb03\"", - "total_size": 2, "entries": [{"email": "fritz@example.org", "user": "http://localhost:9001/3.0/users/339630114468406331612844785559321586734", - "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "original_email": - "fritz@example.org", "http_etag": "\"39b6c60fa0419a0ae03d4d95841ccdafe7c6d3e3\"", - "verified_on": "2016-01-23T01:15:07.742825", "registered_on": "2016-01-23T01:15:07.688498"}, - {"email": "test@example.com", "user": "http://localhost:9001/3.0/users/339630114468406331612844785559321586734", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "http_etag": "\"28dc9a256c6de0150cfbe01454cd6131391d3330\"", - "verified_on": "2016-01-23T01:15:08.020881", "registered_on": "2016-01-23T01:15:07.214194"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"12916f2dccd0180520d2cb7ab0dfa752715e1fd9\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/26", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"d1c098e9c7eb2184c709b529f28bf1702af5ea7a\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/26", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"49188703b86d8580f0b9dd7e675c1f83673990de\"", "start": 0, "total_size": + 2}'} headers: - content-length: ['854'] + content-length: ['752'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -177,7 +179,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -190,7 +192,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -226,30 +228,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Moderate_subs", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "moderate_subs-join@example.com", "fqdn_listname": "moderate_subs@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "moderate_subs@example.com", - "autorespond_postings": "none", "owner_address": "moderate_subs-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "moderate", "mail_host": - "example.com", "http_etag": "\"f7c7ca5e5275dc6f7d1b6a030868206cf8c9131c\"", - "list_name": "moderate_subs", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "moderate_subs-request@example.com", "digests_enabled": - true, "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "moderate_subs-leave@example.com", - "subject_prefix": "[Moderate_subs] ", "bounces_address": "moderate_subs-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:06.829572", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", + "http_etag": "\"d3e0584c03eeb46b4dbfe4412a8d63477a9c3d3c\"", "include_rfc2369_headers": + true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, + "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "moderate", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1811'] + content-length: ['1804'] 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_subscription_mod_secondary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_secondary.yaml index e1c7e40..3dde166 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_secondary.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_secondary.yaml @@ -6,10 +6,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "moderate_subs", - "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com", "fqdn_listname": - "moderate_subs@example.com", "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\""}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] @@ -21,12 +22,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"password": "$6$rounds=712546$EZ/79H4MV2IqByfO$H/9.PbFaMkeTsGKUakxt0WxfesbLB1W9S6Gb9kFEN36HxDXch/zC9Eas/lgjdyc.NY6yXX4pM34iqsZAXBc7T1", - "user_id": 96791921126719655979375158091200338260, "self_link": "http://localhost:9001/3.0/users/96791921126719655979375158091200338260", - "created_on": "2016-01-23T01:15:01.560297", "is_server_owner": false, "http_etag": - "\"5cb57fba5cf4b149a607c0d9d44d32e767363bdc\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"3ae48bdb953ebf52bbc780547d90d42b44b19bbc\"", "is_server_owner": false, + "password": "$6$rounds=697635$QoFO9k9slOAC4I6M$9T8esH1PLCveB.0PFLj3rkT.5qYpuleVa.4sk6jpPek35tHzK.qYe.tji1hlnRikzbcr9wxaHDHnKZnhE640K1", + "self_link": "http://localhost:9001/3.0/users/24", "user_id": 24}'} headers: - content-length: ['405'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -34,19 +35,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/96791921126719655979375158091200338260/addresses + uri: http://localhost:9001/3.0/users/24/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"289ec96b4bec21a42912e8e390ad7ee692f9a47d\"", - "total_size": 2, "entries": [{"email": "fritz@example.org", "user": "http://localhost:9001/3.0/users/96791921126719655979375158091200338260", - "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "original_email": - "fritz@example.org", "http_etag": "\"708463168067bfc707f27da321289b5c18643c05\"", - "verified_on": "2016-01-23T01:15:02.110745", "registered_on": "2016-01-23T01:15:02.053224"}, - {"email": "test@example.com", "user": "http://localhost:9001/3.0/users/96791921126719655979375158091200338260", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "http_etag": "\"53d9e265448f2ea250590bfadaefdf2fe3785bf9\"", - "registered_on": "2016-01-23T01:15:01.559953"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"29f6f2b1d08f86421e1c1af7a04090b9c2deef12\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/24", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"2f8838a184be164d4bf12bc7d25c69051a291bd6\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/24"}], "http_etag": "\"0e78be13cfcc2987552e5e0dc1223306173372b1\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['807'] + content-length: ['714'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -57,7 +58,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -70,7 +71,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -83,8 +84,8 @@ method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: - body: {string: !!python/unicode '{"token_owner": "moderator", "token": "ac60df21ec5786d6719e9ee44fe699956edf5178", - "http_etag": "\"6e4a181a1bf2d49ad104a6ea7d925d1f12be6f3e\""}'} + body: {string: !!python/unicode '{"http_etag": "\"fbcd5c8df6304a514d4bfa0b753b54857674d8dc\"", + "token": "0000000000000000000000000000000000000002", "token_owner": "moderator"}'} headers: content-length: ['142'] content-type: [application/json; charset=utf-8] @@ -97,7 +98,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/roster/member response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -109,11 +110,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: - body: {string: !!python/unicode '{"http_etag": "\"13b425cab32463baf092109484800ee4c459ce7c\"", - "total_size": 1, "entries": [{"when": "2016-01-23T01:15:02", "email": "fritz@example.org", - "type": "subscription", "token_owner": "moderator", "token": "ac60df21ec5786d6719e9ee44fe699956edf5178", - "display_name": "", "list_id": "moderate_subs.example.com", "http_etag": "\"1f9d4748e1d2c5b0cc4f38b101a9810acc08de02\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "fritz@example.org", + "http_etag": "\"6d5e1c84b0e79499b8a33d561983e3778e2b418a\"", "list_id": "moderate_subs.example.com", + "token": "0000000000000000000000000000000000000002", "token_owner": "moderator", + "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"f2a2e0e65e2a94d4ccd96ac44098c4c88608a68a\"", + "start": 0, "total_size": 1}'} headers: content-length: ['392'] content-type: [application/json; charset=utf-8] @@ -125,10 +126,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "moderate_subs", - "display_name": "Moderate_subs", "list_id": "moderate_subs.example.com", "fqdn_listname": - "moderate_subs@example.com", "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\""}'} + body: {string: !!python/unicode '{"display_name": "Moderate_subs", "fqdn_listname": + "moderate_subs@example.com", "http_etag": "\"4cf5a031a451ad84a54e4c708cacda8e676e617f\"", + "list_id": "moderate_subs.example.com", "list_name": "moderate_subs", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/moderate_subs.example.com", + "volume": 1}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] @@ -140,12 +142,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"password": "$6$rounds=712546$EZ/79H4MV2IqByfO$H/9.PbFaMkeTsGKUakxt0WxfesbLB1W9S6Gb9kFEN36HxDXch/zC9Eas/lgjdyc.NY6yXX4pM34iqsZAXBc7T1", - "user_id": 96791921126719655979375158091200338260, "self_link": "http://localhost:9001/3.0/users/96791921126719655979375158091200338260", - "created_on": "2016-01-23T01:15:01.560297", "is_server_owner": false, "http_etag": - "\"5cb57fba5cf4b149a607c0d9d44d32e767363bdc\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"3ae48bdb953ebf52bbc780547d90d42b44b19bbc\"", "is_server_owner": false, + "password": "$6$rounds=697635$QoFO9k9slOAC4I6M$9T8esH1PLCveB.0PFLj3rkT.5qYpuleVa.4sk6jpPek35tHzK.qYe.tji1hlnRikzbcr9wxaHDHnKZnhE640K1", + "self_link": "http://localhost:9001/3.0/users/24", "user_id": 24}'} headers: - content-length: ['405'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -153,19 +155,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/96791921126719655979375158091200338260/addresses + uri: http://localhost:9001/3.0/users/24/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"289ec96b4bec21a42912e8e390ad7ee692f9a47d\"", - "total_size": 2, "entries": [{"email": "fritz@example.org", "user": "http://localhost:9001/3.0/users/96791921126719655979375158091200338260", - "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "original_email": - "fritz@example.org", "http_etag": "\"708463168067bfc707f27da321289b5c18643c05\"", - "verified_on": "2016-01-23T01:15:02.110745", "registered_on": "2016-01-23T01:15:02.053224"}, - {"email": "test@example.com", "user": "http://localhost:9001/3.0/users/96791921126719655979375158091200338260", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "http_etag": "\"53d9e265448f2ea250590bfadaefdf2fe3785bf9\"", - "registered_on": "2016-01-23T01:15:01.559953"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"29f6f2b1d08f86421e1c1af7a04090b9c2deef12\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/24", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"2f8838a184be164d4bf12bc7d25c69051a291bd6\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/24"}], "http_etag": "\"0e78be13cfcc2987552e5e0dc1223306173372b1\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['807'] + content-length: ['714'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -176,7 +178,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -189,7 +191,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -225,30 +227,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Moderate_subs", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "moderate_subs-join@example.com", "fqdn_listname": "moderate_subs@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "moderate_subs@example.com", - "autorespond_postings": "none", "owner_address": "moderate_subs-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "moderate", "mail_host": - "example.com", "http_etag": "\"d994bda305542833f7e7877063906418f19279e6\"", - "list_name": "moderate_subs", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "moderate_subs-request@example.com", "digests_enabled": - true, "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "moderate_subs-leave@example.com", - "subject_prefix": "[Moderate_subs] ", "bounces_address": "moderate_subs-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:01.180009", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "moderate_subs-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Moderate_subs", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", + "http_etag": "\"d3e0584c03eeb46b4dbfe4412a8d63477a9c3d3c\"", "include_rfc2369_headers": + true, "join_address": "moderate_subs-join@example.com", "last_post_at": null, + "leave_address": "moderate_subs-leave@example.com", "list_name": "moderate_subs", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "moderate_subs-owner@example.com", "post_id": 1, "posting_address": + "moderate_subs@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "moderate_subs-request@example.com", "scheme": "http", "send_welcome_message": + true, "subject_prefix": "[Moderate_subs] ", "subscription_policy": "moderate", + "volume": 1, "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1811'] + content-length: ['1804'] 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_subscription_open_primary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_primary.yaml index 837e99e..fe03ea7 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_primary.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_primary.yaml @@ -6,10 +6,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "open_list", - "display_name": "Open_list", "list_id": "open_list.example.com", "fqdn_listname": - "open_list@example.com", "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\""}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -21,12 +22,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"password": "$6$rounds=660426$ns4nZJgdBO7Gvyle$WEepWIYFn0Ssfx1uRrM.E99OKiayhNlQcXIp0hOWYFgLgBfaRKiP7jyHHeOyYIVf0xQARTXI/z4ePi4tkjbxv0", - "user_id": 202170133294496996778634614357049624013, "self_link": "http://localhost:9001/3.0/users/202170133294496996778634614357049624013", - "created_on": "2016-01-23T01:15:10.240111", "is_server_owner": false, "http_etag": - "\"5e7220d0c7ddb3e4714055440d80d39768c99645\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"f3dfdee79eaa3cb9a9aeb81000201ff65227b576\"", "is_server_owner": false, + "password": "$6$rounds=688959$wrmV04dL7/i9uR1L$ODeOSjptLLFscrJ.pJhlHRfjSBYkP32RIOqaU.85xFBpLKJeXJ.WUsQmQrt0sBJrmrCm/HlYuqk1K.tp3Qskq0", + "self_link": "http://localhost:9001/3.0/users/27", "user_id": 27}'} headers: - content-length: ['407'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -34,19 +35,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/202170133294496996778634614357049624013/addresses + uri: http://localhost:9001/3.0/users/27/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"3487be7e4be2f6d02614befa4ee7bf5ed20f92aa\"", - "total_size": 2, "entries": [{"email": "fritz@example.org", "user": "http://localhost:9001/3.0/users/202170133294496996778634614357049624013", - "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "original_email": - "fritz@example.org", "http_etag": "\"411991db6b19d3a114e2095e1241b83d29abfed5\"", - "verified_on": "2016-01-23T01:15:10.798353", "registered_on": "2016-01-23T01:15:10.744366"}, - {"email": "test@example.com", "user": "http://localhost:9001/3.0/users/202170133294496996778634614357049624013", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "http_etag": "\"29deb7c2a46bcb4ae66513dd160550cb943c8dbf\"", - "registered_on": "2016-01-23T01:15:10.239760"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"4e8b2b91b2e47aaa920f213a88797183a47146f4\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/27", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"ad8ac76a93e51a3d36c47c3565f996c1629b6caa\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/27"}], "http_etag": "\"4f1fb2e5eeb78542992963353c45de6451f8d365\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['809'] + content-length: ['714'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -57,7 +58,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -70,7 +71,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -86,7 +87,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/331029687773641540583132883540249942744'] + location: ['http://localhost:9001/3.0/members/56'] status: {code: 201, message: Created} - request: body: null @@ -95,15 +96,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: - body: {string: !!python/unicode '{"http_etag": "\"109e92af2c1862b3a46ca81984a06747d73571ff\"", - "total_size": 1, "entries": [{"email": "test@example.com", "user": "http://localhost:9001/3.0/users/202170133294496996778634614357049624013", - "member_id": 331029687773641540583132883540249942744, "role": "member", "delivery_mode": - "regular", "list_id": "open_list.example.com", "self_link": "http://localhost:9001/3.0/members/331029687773641540583132883540249942744", - "address": "http://localhost:9001/3.0/addresses/test@example.com", "http_etag": - "\"43ee8d259b438f7fb631ae8b5dab80a8c0dd32bd\"", "moderation_action": "defer"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"d4bb148d277019ee718a1a8aa7c89db7fa64d778\"", + "list_id": "open_list.example.com", "member_id": 56, "moderation_action": + "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/56", + "user": "http://localhost:9001/3.0/users/27"}], "http_etag": "\"d68c99d8f053ad52d075819b5e24de695790e8e7\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['601'] + content-length: ['490'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -114,7 +114,7 @@ uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -126,10 +126,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - body: {string: !!python/unicode '{"member_count": 1, "list_name": "open_list", - "display_name": "Open_list", "list_id": "open_list.example.com", "fqdn_listname": - "open_list@example.com", "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"f19d0b7ddb1b51b8c81a873365571fd6aeb6162d\""}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"f19d0b7ddb1b51b8c81a873365571fd6aeb6162d\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 1, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -141,12 +142,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"password": "$6$rounds=660426$ns4nZJgdBO7Gvyle$WEepWIYFn0Ssfx1uRrM.E99OKiayhNlQcXIp0hOWYFgLgBfaRKiP7jyHHeOyYIVf0xQARTXI/z4ePi4tkjbxv0", - "user_id": 202170133294496996778634614357049624013, "self_link": "http://localhost:9001/3.0/users/202170133294496996778634614357049624013", - "created_on": "2016-01-23T01:15:10.240111", "is_server_owner": false, "http_etag": - "\"5e7220d0c7ddb3e4714055440d80d39768c99645\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"f3dfdee79eaa3cb9a9aeb81000201ff65227b576\"", "is_server_owner": false, + "password": "$6$rounds=688959$wrmV04dL7/i9uR1L$ODeOSjptLLFscrJ.pJhlHRfjSBYkP32RIOqaU.85xFBpLKJeXJ.WUsQmQrt0sBJrmrCm/HlYuqk1K.tp3Qskq0", + "self_link": "http://localhost:9001/3.0/users/27", "user_id": 27}'} headers: - content-length: ['407'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -154,20 +155,20 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/202170133294496996778634614357049624013/addresses + uri: http://localhost:9001/3.0/users/27/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"9248766ffc00fe4049daa5f5b4a8457ab853c823\"", - "total_size": 2, "entries": [{"email": "fritz@example.org", "user": "http://localhost:9001/3.0/users/202170133294496996778634614357049624013", - "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "original_email": - "fritz@example.org", "http_etag": "\"411991db6b19d3a114e2095e1241b83d29abfed5\"", - "verified_on": "2016-01-23T01:15:10.798353", "registered_on": "2016-01-23T01:15:10.744366"}, - {"email": "test@example.com", "user": "http://localhost:9001/3.0/users/202170133294496996778634614357049624013", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "http_etag": "\"ca4aa61d1cb4bd43718eac7e7091c0092ebe1198\"", - "verified_on": "2016-01-23T01:15:11.089269", "registered_on": "2016-01-23T01:15:10.239760"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"4e8b2b91b2e47aaa920f213a88797183a47146f4\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/27", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"27e233e0e3de02d6476a8c7be5eba2e86f80f08f\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/27", "verified_on": "2005-08-01T07:49:23"}], + "http_etag": "\"896b2ee4d5ac9eb44acd0a54c254784a886bdaa3\"", "start": 0, "total_size": + 2}'} headers: - content-length: ['854'] + content-length: ['752'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -178,7 +179,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -191,7 +192,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -203,13 +204,13 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/member/test@example.com response: - body: {string: !!python/unicode '{"email": "test@example.com", "user": "http://localhost:9001/3.0/users/202170133294496996778634614357049624013", - "member_id": 331029687773641540583132883540249942744, "role": "member", "delivery_mode": - "regular", "list_id": "open_list.example.com", "self_link": "http://localhost:9001/3.0/members/331029687773641540583132883540249942744", - "address": "http://localhost:9001/3.0/addresses/test@example.com", "http_etag": - "\"43ee8d259b438f7fb631ae8b5dab80a8c0dd32bd\"", "moderation_action": "defer"}'} + body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/test@example.com", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"d4bb148d277019ee718a1a8aa7c89db7fa64d778\"", + "list_id": "open_list.example.com", "member_id": 56, "moderation_action": + "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/56", + "user": "http://localhost:9001/3.0/users/27"}'} headers: - content-length: ['496'] + content-length: ['385'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -219,30 +220,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Open_list", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "open_list-join@example.com", "fqdn_listname": "open_list@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "open_list@example.com", - "autorespond_postings": "none", "owner_address": "open_list-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "open", "mail_host": "example.com", - "http_etag": "\"84194c622c7f36ac46e6e2d226a7081faf8ce6e2\"", "list_name": - "open_list", "default_nonmember_action": "hold", "first_strip_reply_to": false, - "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "open_list-request@example.com", "digests_enabled": - true, "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "open_list-leave@example.com", - "subject_prefix": "[Open_list] ", "bounces_address": "open_list-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:09.533259", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"48e9d66d84c8bf2c04406ceb5938631035498bdb\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "open", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1767'] + content-length: ['1760'] 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_subscription_open_secondary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_secondary.yaml index 3a386fc..1c2fd0d 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_secondary.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_secondary.yaml @@ -6,10 +6,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "open_list", - "display_name": "Open_list", "list_id": "open_list.example.com", "fqdn_listname": - "open_list@example.com", "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\""}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -21,12 +22,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"password": "$6$rounds=692290$cA.n.uEIt4stpOxs$dHH.ae8jEyTPNqTYY95s3pbJMgiRTiBznVTsUTBKNjIAYYIvDpFPKIqopPD8HqMpjsJuGgQohBmHXkMOGF9tu0", - "user_id": 241613429579098249340279334636589859291, "self_link": "http://localhost:9001/3.0/users/241613429579098249340279334636589859291", - "created_on": "2016-01-23T01:15:04.322677", "is_server_owner": false, "http_etag": - "\"ed6de16a7beb27fdc302deb7ad3f57b905cf7fc6\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"e6892b55a323ee870dbf86fd0a3866f9b6bacc9d\"", "is_server_owner": false, + "password": "$6$rounds=685188$JTbWJwGaF94ik83v$793gVmE7FRVvf7wx7M5flsRoDhrxilG9.kUaBy088TxthMZ064Lfmtd3GCSZgsnnjbbkYwcjgiCq1C0G4uUno/", + "self_link": "http://localhost:9001/3.0/users/25", "user_id": 25}'} headers: - content-length: ['407'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -34,19 +35,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/241613429579098249340279334636589859291/addresses + uri: http://localhost:9001/3.0/users/25/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"b646e1c937f0bfabdef022114a8b523a2978c565\"", - "total_size": 2, "entries": [{"email": "fritz@example.org", "user": "http://localhost:9001/3.0/users/241613429579098249340279334636589859291", - "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "original_email": - "fritz@example.org", "http_etag": "\"941a39fe0362744f93f77a778f33e2a753a6ea0c\"", - "verified_on": "2016-01-23T01:15:04.872817", "registered_on": "2016-01-23T01:15:04.819457"}, - {"email": "test@example.com", "user": "http://localhost:9001/3.0/users/241613429579098249340279334636589859291", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "http_etag": "\"141a17431ebe13914b0d26bc249018f279384c4a\"", - "registered_on": "2016-01-23T01:15:04.322312"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"7abbd2c4b5c47ea79e3c05ef3eb67e27886eb4c4\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/25", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"1d34b6d629614c4de087d74f011c0b7cf3af7bad\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/25"}], "http_etag": "\"34ea4fc3b312ce1138029f888b055df0c9f777df\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['809'] + content-length: ['714'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -57,7 +58,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -70,7 +71,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -86,7 +87,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/216173104267917222268317198945296080619'] + location: ['http://localhost:9001/3.0/members/55'] status: {code: 201, message: Created} - request: body: null @@ -95,15 +96,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: - body: {string: !!python/unicode '{"http_etag": "\"bd2e909dc391b7c6e339868f7096bd32c2a9c476\"", - "total_size": 1, "entries": [{"email": "fritz@example.org", "user": "http://localhost:9001/3.0/users/241613429579098249340279334636589859291", - "member_id": 216173104267917222268317198945296080619, "role": "member", "delivery_mode": - "regular", "list_id": "open_list.example.com", "self_link": "http://localhost:9001/3.0/members/216173104267917222268317198945296080619", - "address": "http://localhost:9001/3.0/addresses/fritz@example.org", "http_etag": - "\"19761bbb2a9a7a416b28cdcf6750bf7802446dd0\"", "moderation_action": "defer"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"7c635a74787c8e1c2b14d2a5980c328f5ba2a824\"", + "list_id": "open_list.example.com", "member_id": 55, "moderation_action": + "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/55", + "user": "http://localhost:9001/3.0/users/25"}], "http_etag": "\"a59f819977f3fa0d5249342ec03833f46b6758de\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['603'] + content-length: ['492'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -114,7 +114,7 @@ uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -126,10 +126,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - body: {string: !!python/unicode '{"member_count": 1, "list_name": "open_list", - "display_name": "Open_list", "list_id": "open_list.example.com", "fqdn_listname": - "open_list@example.com", "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"f19d0b7ddb1b51b8c81a873365571fd6aeb6162d\""}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"f19d0b7ddb1b51b8c81a873365571fd6aeb6162d\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 1, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -141,12 +142,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"password": "$6$rounds=692290$cA.n.uEIt4stpOxs$dHH.ae8jEyTPNqTYY95s3pbJMgiRTiBznVTsUTBKNjIAYYIvDpFPKIqopPD8HqMpjsJuGgQohBmHXkMOGF9tu0", - "user_id": 241613429579098249340279334636589859291, "self_link": "http://localhost:9001/3.0/users/241613429579098249340279334636589859291", - "created_on": "2016-01-23T01:15:04.322677", "is_server_owner": false, "http_etag": - "\"ed6de16a7beb27fdc302deb7ad3f57b905cf7fc6\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"e6892b55a323ee870dbf86fd0a3866f9b6bacc9d\"", "is_server_owner": false, + "password": "$6$rounds=685188$JTbWJwGaF94ik83v$793gVmE7FRVvf7wx7M5flsRoDhrxilG9.kUaBy088TxthMZ064Lfmtd3GCSZgsnnjbbkYwcjgiCq1C0G4uUno/", + "self_link": "http://localhost:9001/3.0/users/25", "user_id": 25}'} headers: - content-length: ['407'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -154,19 +155,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/241613429579098249340279334636589859291/addresses + uri: http://localhost:9001/3.0/users/25/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"b646e1c937f0bfabdef022114a8b523a2978c565\"", - "total_size": 2, "entries": [{"email": "fritz@example.org", "user": "http://localhost:9001/3.0/users/241613429579098249340279334636589859291", - "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "original_email": - "fritz@example.org", "http_etag": "\"941a39fe0362744f93f77a778f33e2a753a6ea0c\"", - "verified_on": "2016-01-23T01:15:04.872817", "registered_on": "2016-01-23T01:15:04.819457"}, - {"email": "test@example.com", "user": "http://localhost:9001/3.0/users/241613429579098249340279334636589859291", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "http_etag": "\"141a17431ebe13914b0d26bc249018f279384c4a\"", - "registered_on": "2016-01-23T01:15:04.322312"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"7abbd2c4b5c47ea79e3c05ef3eb67e27886eb4c4\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/25", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"1d34b6d629614c4de087d74f011c0b7cf3af7bad\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/25"}], "http_etag": "\"34ea4fc3b312ce1138029f888b055df0c9f777df\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['809'] + content-length: ['714'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -177,7 +178,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -190,7 +191,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -214,13 +215,13 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com/member/fritz@example.org response: - body: {string: !!python/unicode '{"email": "fritz@example.org", "user": "http://localhost:9001/3.0/users/241613429579098249340279334636589859291", - "member_id": 216173104267917222268317198945296080619, "role": "member", "delivery_mode": - "regular", "list_id": "open_list.example.com", "self_link": "http://localhost:9001/3.0/members/216173104267917222268317198945296080619", - "address": "http://localhost:9001/3.0/addresses/fritz@example.org", "http_etag": - "\"19761bbb2a9a7a416b28cdcf6750bf7802446dd0\"", "moderation_action": "defer"}'} + body: {string: !!python/unicode '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", + "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"7c635a74787c8e1c2b14d2a5980c328f5ba2a824\"", + "list_id": "open_list.example.com", "member_id": 55, "moderation_action": + "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/55", + "user": "http://localhost:9001/3.0/users/25"}'} headers: - content-length: ['498'] + content-length: ['387'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -230,30 +231,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Open_list", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "open_list-join@example.com", "fqdn_listname": "open_list@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "open_list@example.com", - "autorespond_postings": "none", "owner_address": "open_list-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "open", "mail_host": "example.com", - "http_etag": "\"fd044c24d5643bdf26e7dd9ace940ae7d472b88c\"", "list_name": - "open_list", "default_nonmember_action": "hold", "first_strip_reply_to": false, - "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "open_list-request@example.com", "digests_enabled": - true, "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "open_list-leave@example.com", - "subject_prefix": "[Open_list] ", "bounces_address": "open_list-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:03.614585", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"48e9d66d84c8bf2c04406ceb5938631035498bdb\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "open", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1767'] + content-length: ['1760'] 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_subscription_unknown.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_unknown.yaml index d41a21d..842c95f 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_unknown.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_unknown.yaml @@ -6,10 +6,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "open_list", - "display_name": "Open_list", "list_id": "open_list.example.com", "fqdn_listname": - "open_list@example.com", "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\""}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -21,12 +22,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"password": "$6$rounds=690907$hel48.ELzZH6r5Fx$JTVu/0WsEaorGl2p.qBTQb3ONvOUNRfn5VAqAcYu.Z8Ain0YLtavbocKTvE3tmnZr1Oc5xQnjdkPWipFAp.lE0", - "user_id": 290722913735219944815132205053379070116, "self_link": "http://localhost:9001/3.0/users/290722913735219944815132205053379070116", - "created_on": "2016-01-23T01:15:13.135014", "is_server_owner": false, "http_etag": - "\"59a91c7f74bc6ec48185e75e5176258d2cf40909\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"6c3e988d3b613996bd5d04dc5cb484151029ebae\"", "is_server_owner": false, + "password": "$6$rounds=594415$qGDQq0SMxH.NHn.3$cWAFun9EVCaeyqz10Stn7r0QX3/yVARs7Vay6lfn3RpwJmb8QSORo8JZ/zjwKw66hlyZgshR8ZMZYUZQDVEzJ1", + "self_link": "http://localhost:9001/3.0/users/28", "user_id": 28}'} headers: - content-length: ['407'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -34,19 +35,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/290722913735219944815132205053379070116/addresses + uri: http://localhost:9001/3.0/users/28/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"9463587b63bb871400edd7a28c3143a33a4224c8\"", - "total_size": 2, "entries": [{"email": "fritz@example.org", "user": "http://localhost:9001/3.0/users/290722913735219944815132205053379070116", - "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "original_email": - "fritz@example.org", "http_etag": "\"cd8bdb217c8869fe6c3b5e03ee3f5d24dd0ae48c\"", - "verified_on": "2016-01-23T01:15:13.715767", "registered_on": "2016-01-23T01:15:13.648750"}, - {"email": "test@example.com", "user": "http://localhost:9001/3.0/users/290722913735219944815132205053379070116", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "http_etag": "\"0f17839fdf1f2f57cbdc1dbfb46fb20f47ed5c39\"", - "registered_on": "2016-01-23T01:15:13.134683"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"755c2fbbb60cd3ada46240edcc8d303c039210aa\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/28", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"67e3922e373606bd5d46cb05948e58253d57c8af\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/28"}], "http_etag": "\"2be169bb9e4bc75da6efc8e664500c03377ff934\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['809'] + content-length: ['714'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -57,7 +58,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -70,7 +71,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -83,7 +84,7 @@ uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -96,7 +97,7 @@ uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -108,10 +109,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "open_list", - "display_name": "Open_list", "list_id": "open_list.example.com", "fqdn_listname": - "open_list@example.com", "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", - "volume": 1, "mail_host": "example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\""}'} + body: {string: !!python/unicode '{"display_name": "Open_list", "fqdn_listname": + "open_list@example.com", "http_etag": "\"6726e101e1dd1de6043eee72f741d4c2479f4735\"", + "list_id": "open_list.example.com", "list_name": "open_list", "mail_host": + "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/open_list.example.com", + "volume": 1}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -123,12 +125,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"password": "$6$rounds=690907$hel48.ELzZH6r5Fx$JTVu/0WsEaorGl2p.qBTQb3ONvOUNRfn5VAqAcYu.Z8Ain0YLtavbocKTvE3tmnZr1Oc5xQnjdkPWipFAp.lE0", - "user_id": 290722913735219944815132205053379070116, "self_link": "http://localhost:9001/3.0/users/290722913735219944815132205053379070116", - "created_on": "2016-01-23T01:15:13.135014", "is_server_owner": false, "http_etag": - "\"59a91c7f74bc6ec48185e75e5176258d2cf40909\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"6c3e988d3b613996bd5d04dc5cb484151029ebae\"", "is_server_owner": false, + "password": "$6$rounds=594415$qGDQq0SMxH.NHn.3$cWAFun9EVCaeyqz10Stn7r0QX3/yVARs7Vay6lfn3RpwJmb8QSORo8JZ/zjwKw66hlyZgshR8ZMZYUZQDVEzJ1", + "self_link": "http://localhost:9001/3.0/users/28", "user_id": 28}'} headers: - content-length: ['407'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -136,19 +138,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/290722913735219944815132205053379070116/addresses + uri: http://localhost:9001/3.0/users/28/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"9463587b63bb871400edd7a28c3143a33a4224c8\"", - "total_size": 2, "entries": [{"email": "fritz@example.org", "user": "http://localhost:9001/3.0/users/290722913735219944815132205053379070116", - "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", "original_email": - "fritz@example.org", "http_etag": "\"cd8bdb217c8869fe6c3b5e03ee3f5d24dd0ae48c\"", - "verified_on": "2016-01-23T01:15:13.715767", "registered_on": "2016-01-23T01:15:13.648750"}, - {"email": "test@example.com", "user": "http://localhost:9001/3.0/users/290722913735219944815132205053379070116", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "http_etag": "\"0f17839fdf1f2f57cbdc1dbfb46fb20f47ed5c39\"", - "registered_on": "2016-01-23T01:15:13.134683"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": + "\"755c2fbbb60cd3ada46240edcc8d303c039210aa\"", "original_email": "fritz@example.org", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/fritz@example.org", + "user": "http://localhost:9001/3.0/users/28", "verified_on": "2005-08-01T07:49:23"}, + {"email": "test@example.com", "http_etag": "\"67e3922e373606bd5d46cb05948e58253d57c8af\"", + "original_email": "test@example.com", "registered_on": "2005-08-01T07:49:23", + "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "user": + "http://localhost:9001/3.0/users/28"}], "http_etag": "\"2be169bb9e4bc75da6efc8e664500c03377ff934\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['809'] + content-length: ['714'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -159,7 +161,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -172,7 +174,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -208,30 +210,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Open_list", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "open_list-join@example.com", "fqdn_listname": "open_list@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "open_list@example.com", - "autorespond_postings": "none", "owner_address": "open_list-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "open", "mail_host": "example.com", - "http_etag": "\"40db50e88988055460c2fbbdb72609a1cfa90e52\"", "list_name": - "open_list", "default_nonmember_action": "hold", "first_strip_reply_to": false, - "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "open_list-request@example.com", "digests_enabled": - true, "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "open_list-leave@example.com", - "subject_prefix": "[Open_list] ", "bounces_address": "open_list-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:12.437081", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "open_list-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Open_list", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", + "http_etag": "\"48e9d66d84c8bf2c04406ceb5938631035498bdb\"", "include_rfc2369_headers": + true, "join_address": "open_list-join@example.com", "last_post_at": null, + "leave_address": "open_list-leave@example.com", "list_name": "open_list", + "mail_host": "example.com", "next_digest_number": 1, "no_reply_address": "noreply@example.com", + "owner_address": "open_list-owner@example.com", "post_id": 1, "posting_address": + "open_list@example.com", "posting_pipeline": "default-posting-pipeline", "reply_goes_to_list": + "no_munging", "reply_to_address": "", "request_address": "open_list-request@example.com", + "scheme": "http", "send_welcome_message": true, "subject_prefix": "[Open_list] + ", "subscription_policy": "open", "volume": 1, "web_host": "example.com", + "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1767'] + content-length: ['1760'] 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_summary.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml index d865b20..114c3b1 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml @@ -19,10 +19,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -47,12 +47,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -75,19 +75,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"http_etag": "\"d2dceee8185955f93fc6d4a13d90f2c9eeb33b05\"", - "total_size": 3, "entries": [{"http_etag": "\"cf6cfe18da01d2f3c28ac0022defd0b2864ff5eb\"", - "user_id": 256572591597747152960213855004434194126, "self_link": "http://localhost:9001/3.0/users/256572591597747152960213855004434194126", - "created_on": "2016-01-23T01:14:54.241842", "is_server_owner": false}, {"http_etag": - "\"99ea9085feefe1e65822a350f9f8cb569f5bb9c1\"", "user_id": 267349403024214827376211786438876723553, - "self_link": "http://localhost:9001/3.0/users/267349403024214827376211786438876723553", - "created_on": "2016-01-23T01:14:55.700024", "is_server_owner": false}, {"http_etag": - "\"acca4b436c2c0c7f23b4ab40c844d55074c9b8e6\"", "user_id": 154977237945172734425636786183823384410, - "self_link": "http://localhost:9001/3.0/users/154977237945172734425636786183823384410", - "created_on": "2016-01-23T01:15:15.447830", "is_server_owner": false}], "start": - 0}'} + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"eb591d9720aa0ac944b49315b6af1c950410b54c\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}, {"created_on": + "2005-08-01T07:49:23", "http_etag": "\"b36f8ca1d91d583901c768dc116815282d469c66\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/2", + "user_id": 2}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"bb1c2e6094a96b17e2d5dbf487291f7667f69f75\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/3", + "user_id": 3}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"c1dcbf16536eb2e2151441f4bce2989ab1dab30b\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/4", + "user_id": 4}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"637c12d15eb0203c9ffac9ea2d5ac8605d18e38d\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/5", + "user_id": 5}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"b774d488fd2356b7bedf0e6fa4a26dc70dc2b02b\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/6", + "user_id": 6}, {"created_on": "2005-08-01T07:49:23", "display_name": "None", + "http_etag": "\"b00eaeb04cfe981da2ee012d8482e830be41ed85\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/7", "user_id": 7}, {"created_on": + "2005-08-01T07:49:23", "display_name": "None", "http_etag": "\"d81849243b31142274eec6832eafa6b6cef34829\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/8", + "user_id": 8}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"4c816726023bb1daf76d48e82b250689df6a4694\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/11", + "user_id": 11}], "http_etag": "\"7c42d4ead2d9b24e0babc9c28871e86ef31da132\"", + "start": 0, "total_size": 9}'} headers: - content-length: ['922'] + content-length: ['1863'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -95,7 +106,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/154977237945172734425636786183823384410 + uri: http://localhost:9001/3.0/users/1 response: body: {string: !!python/unicode ''} headers: @@ -106,7 +117,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/256572591597747152960213855004434194126 + uri: http://localhost:9001/3.0/users/11 response: body: {string: !!python/unicode ''} headers: @@ -117,7 +128,73 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/267349403024214827376211786438876723553 + uri: http://localhost:9001/3.0/users/2 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/3 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/4 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/5 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/6 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/7 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/users/8 response: body: {string: !!python/unicode ''} headers: @@ -154,10 +231,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -182,12 +259,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -211,7 +288,7 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -247,10 +324,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -275,12 +352,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -303,13 +380,13 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"http_etag": "\"a112768cee5070b4995b06e550d4bd4a11b5f9c3\"", - "total_size": 1, "entries": [{"http_etag": "\"e042df70ec02593135ae85f0d6d19760ebfede90\"", - "user_id": 235229553521251808881452796003246347517, "self_link": "http://localhost:9001/3.0/users/235229553521251808881452796003246347517", - "created_on": "2016-01-23T01:15:17.793096", "is_server_owner": false}], "start": - 0}'} + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"87648caa0e3380982e197beebf79e468670de477\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}], + "http_etag": "\"2fd93ea2e4273cb397a13bd6c8f228c00ad0f90e\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['376'] + content-length: ['295'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -317,7 +394,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/235229553521251808881452796003246347517 + uri: http://localhost:9001/3.0/users/12 response: body: {string: !!python/unicode ''} headers: @@ -354,10 +431,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -382,12 +459,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -410,13 +487,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"http_etag": "\"8aac72f6f457c4f56d273013c5a215954b57a592\"", - "total_size": 1, "entries": [{"password": "$6$rounds=591150$pm3VlBwi1PMVkuHi$9DapGUF1ahHZX8cry3MAR50tD7I6orKAlTnZXVS4OmJzItnxi7Qe9OaOVDmx8UP2wHwoz7XQxB0ECdCVp3jFP.", - "user_id": 227071033173330356076343977945960464597, "self_link": "http://localhost:9001/3.0/users/227071033173330356076343977945960464597", - "created_on": "2016-01-23T01:15:18.939067", "is_server_owner": false, "http_etag": - "\"1cc0fcefb70b0d629b28e96795ed0e107dec0e85\""}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"be2467c4b31b324e8e5a584eb10fc81bf0c6d192\"", "is_server_owner": + false, "password": "$6$rounds=598827$EXcupHkcZTTOPAU.$P8cDUj6tOm6sunOicumEHdenjPes8YJ/mNCGV3rT11N7QGR5/J9gzBMOpZSmTlBdPNQFI5n4FXqZT.KjLaefo0", + "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}], "http_etag": + "\"7b38a1baa5ad47eff6098fbba5e9f783de80c9fd\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['512'] + content-length: ['431'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -424,7 +502,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/227071033173330356076343977945960464597 + uri: http://localhost:9001/3.0/users/13 response: body: {string: !!python/unicode ''} headers: @@ -461,10 +539,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -489,12 +567,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -517,13 +595,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"http_etag": "\"8f116e1bd2dd29c62343d508cca7b072adbc120d\"", - "total_size": 1, "entries": [{"password": "$6$rounds=667068$qaa/lSPEOouLvST7$IdtA2XV3gNXBQ1EjJFxkadG3sNHefsnTbuP13oCeVwtECKrd0hwD8G8e.qIGQgGru/VbwAxgQR8In5qPAJ8ak1", - "user_id": 106149173311714208856455475045690630968, "self_link": "http://localhost:9001/3.0/users/106149173311714208856455475045690630968", - "created_on": "2016-01-23T01:15:20.728436", "is_server_owner": false, "http_etag": - "\"d939d4284a0cdd19c21802a016784a6a900f1289\""}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"42e1ab2ac3a8fa8c2987d62ef106b370fe73c8c8\"", "is_server_owner": + false, "password": "$6$rounds=678791$iVwsyWinAlQPSxea$lpYjDpxD0tGa4luA1j6GjkOgTPShszjJQHJh/1TaaASb4Kz.COZ5ogw5wEEnB2RQ3ZePnJaQPNnHYLqSyp5fL0", + "self_link": "http://localhost:9001/3.0/users/14", "user_id": 14}], "http_etag": + "\"ea1d1efc3c8b7c4722da5fb59c7d62c5b686bb33\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['512'] + content-length: ['431'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -531,7 +610,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/106149173311714208856455475045690630968 + uri: http://localhost:9001/3.0/users/14 response: body: {string: !!python/unicode ''} headers: @@ -568,10 +647,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -596,10 +675,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -624,7 +703,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -637,7 +716,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -661,30 +740,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"3646a94e30031cc474166a87c95e88d58e84a46b\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:22.271820", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -694,12 +772,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -723,7 +801,7 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -759,10 +837,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -787,10 +865,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -802,30 +880,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"dfaffb2fd1727656b556fa77236d3a60b3aba122\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:23.332517", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -835,12 +912,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -864,7 +941,7 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -900,10 +977,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -928,12 +1005,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -956,13 +1033,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"http_etag": "\"a575c0b4073a8671745823d0740bb8783f882d9d\"", - "total_size": 1, "entries": [{"password": "$6$rounds=633998$/UwEIsbZDd7vduBS$3X5X6v8RhUkrkTyJa2tZFzUrd6fEqM6kwO/Pwd8GFLdkPfx.40qRPyXbqHl9awocjW5itPujtoLVc2DTKnsX41", - "user_id": 277639646177770772088721462718867375005, "self_link": "http://localhost:9001/3.0/users/277639646177770772088721462718867375005", - "created_on": "2016-01-23T01:15:24.632621", "is_server_owner": false, "http_etag": - "\"06a7987d87974dd34a4a1fd854325c30170d7035\""}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"2e2e9eb37dc73e2e8fcdcf1615ab835832b5b150\"", "is_server_owner": + false, "password": "$6$rounds=596317$NMK1IsY/i6YIhE9k$MMIwaq3i/p98a8oxOrYG7BTD6Vrk6m6xlS7aZw2UbDlGww4Xqiy2OUOdJ6Bvox0AiEIQ3s603cZY5T2R5usIc0", + "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}], "http_etag": + "\"adff86ee72c9547e79bff20630b739f621a08870\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['512'] + content-length: ['431'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -970,7 +1048,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/277639646177770772088721462718867375005 + uri: http://localhost:9001/3.0/users/15 response: body: {string: !!python/unicode ''} headers: @@ -1007,10 +1085,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -1035,12 +1113,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -1063,13 +1141,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"http_etag": "\"f2a292d5cab5706491f37c2929578c3148462cb5\"", - "total_size": 1, "entries": [{"password": "$6$rounds=662983$u8aEBojJI1ZPIP4x$EHO9Ycz6yGVg4CCj2K0pdnzOUbBGBb4j5/Qoxew3QOrxnglNFUVvnh1lOrQDuViwDRp5QreOfluLAz0KqmCJT1", - "user_id": 164317161666474507724910689624126470016, "self_link": "http://localhost:9001/3.0/users/164317161666474507724910689624126470016", - "created_on": "2016-01-23T01:15:26.418609", "is_server_owner": false, "http_etag": - "\"915b7ffeaf38140726b54509ddd581c5da45bb0e\""}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"bd27041d06ef3929b2069279b31de508f50a93c8\"", "is_server_owner": + false, "password": "$6$rounds=607013$rclRs733cyebi6rZ$JeNTWtmrZKR/BT6ecnM59L5x1Ym5Zz4KAqNq6H2F65X3RQziE7B0A0h5HLQTEbErJT9mOKWQVrhvgS1YW/6b/0", + "self_link": "http://localhost:9001/3.0/users/16", "user_id": 16}], "http_etag": + "\"dbf7c3ae5080a447cf2a33522fbabde1f2e5a80d\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['512'] + content-length: ['431'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1077,7 +1156,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/164317161666474507724910689624126470016 + uri: http://localhost:9001/3.0/users/16 response: body: {string: !!python/unicode ''} headers: @@ -1114,10 +1193,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -1142,12 +1221,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -1170,14 +1249,13 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"http_etag": "\"abae20c94ba2667f83c03e1e64ae8f65d2f3ab7f\"", - "total_size": 1, "entries": [{"user_id": 249976255305336465573219322396272572389, - "self_link": "http://localhost:9001/3.0/users/249976255305336465573219322396272572389", - "created_on": "2016-01-23T01:15:28.294440", "display_name": "None", "is_server_owner": - false, "http_etag": "\"71a365db9805ea41fb3a1cb01a4a69c806b72069\""}], "start": - 0}'} + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "display_name": "None", "http_etag": "\"42ce4e7d3c120cfc9cff732913114a828f630666\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/17", + "user_id": 17}], "http_etag": "\"3015c61dc6bd96c272e0582701a958a04f2e226d\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['400'] + content-length: ['319'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1185,7 +1263,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/249976255305336465573219322396272572389 + uri: http://localhost:9001/3.0/users/17 response: body: {string: !!python/unicode ''} headers: @@ -1222,10 +1300,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -1250,12 +1328,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -1279,7 +1357,7 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -1315,10 +1393,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -1343,12 +1421,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"89bf5f8f6c4414c38432c355907ddf9f419ef53b\"", - "total_size": 1, "entries": [{"member_count": 1, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"98cc998d4a30293ec17da639bce10617912a6e1e\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"98cc998d4a30293ec17da639bce10617912a6e1e\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 1, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"89bf5f8f6c4414c38432c355907ddf9f419ef53b\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -1371,14 +1449,13 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"http_etag": "\"ba0ebfc05cf1f8006280f5eb340931e0b73e232a\"", - "total_size": 1, "entries": [{"user_id": 49659196529737298780782683765294265828, - "self_link": "http://localhost:9001/3.0/users/49659196529737298780782683765294265828", - "created_on": "2016-01-23T01:15:30.996310", "display_name": "None", "is_server_owner": - false, "http_etag": "\"f8b658f3db9792da561368c3ee7e96c451db9edc\""}], "start": - 0}'} + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "display_name": "None", "http_etag": "\"1f31f733981af257e2d63ee7779fc281aa16466d\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/18", + "user_id": 18}], "http_etag": "\"5e9502c6ddc9e3b308d3a5418ce16274dafce394\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['398'] + content-length: ['319'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1386,7 +1463,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/49659196529737298780782683765294265828 + uri: http://localhost:9001/3.0/users/18 response: body: {string: !!python/unicode ''} headers: diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_anonymous.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_anonymous.yaml index 14bce80..cd75cc7 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_anonymous.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_anonymous.yaml @@ -6,10 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -21,30 +21,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"d2eb9fdfaa88dff0bb4a6f066337aa4b0e2f91a4\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:29.573496", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] 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_summary_metrics_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_moderator.yaml index 5766a77..820b975 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_moderator.yaml @@ -6,10 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -25,7 +25,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/326753637169964871293249887076308640949'] + location: ['http://localhost:9001/3.0/members/38'] status: {code: 201, message: Created} - request: body: null @@ -34,10 +34,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -49,11 +49,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"e042df70ec02593135ae85f0d6d19760ebfede90\"", - "user_id": 235229553521251808881452796003246347517, "self_link": "http://localhost:9001/3.0/users/235229553521251808881452796003246347517", - "created_on": "2016-01-23T01:15:17.793096", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"87648caa0e3380982e197beebf79e468670de477\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/12", "user_id": 12}'} headers: - content-length: ['271'] + content-length: ['190'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -61,15 +61,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/235229553521251808881452796003246347517/addresses + uri: http://localhost:9001/3.0/users/12/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"63036ec88142f310e4004415847cd1c4f02359f8\"", - "total_size": 1, "entries": [{"email": "test@example.com", "user": "http://localhost:9001/3.0/users/235229553521251808881452796003246347517", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "http_etag": "\"c00dd550985fff561064ec4b6b7230a527aa6eca\"", - "registered_on": "2016-01-23T01:15:17.772665"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": + "\"7153fc9edd12dfb866876de2d6ff5b66fbd13574\"", "original_email": "test@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/12"}], "http_etag": "\"0ff3029b0a8c9a785941074230bf68d81d705bb5\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['432'] + content-length: ['388'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -80,7 +80,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -92,15 +92,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"e003eb61fac0cfc1a25cd352b3ed5323f9355dc6\"", - "total_size": 1, "entries": [{"email": "test@example.com", "user": "http://localhost:9001/3.0/users/235229553521251808881452796003246347517", - "member_id": 326753637169964871293249887076308640949, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/326753637169964871293249887076308640949", - "address": "http://localhost:9001/3.0/addresses/test@example.com", "http_etag": - "\"f161ff1f58bd652f4e184c2a61f382db148fc7ea\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"abb3b3b2811c614c787531f636a57adbe4e0631a\"", + "list_id": "foo.example.com", "member_id": 38, "moderation_action": "accept", + "role": "moderator", "self_link": "http://localhost:9001/3.0/members/38", + "user": "http://localhost:9001/3.0/users/12"}], "http_etag": "\"ece217f9cb0247944bf8e4e94dba49af1065b0de\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['599'] + content-length: ['488'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -122,30 +121,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"b797cf42290fe4fab900fa50654e2d74d67e3f8d\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:17.438721", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] 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_summary_metrics_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_owner.yaml index c858393..d05e3c2 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_owner.yaml @@ -6,10 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -25,7 +25,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/182356393697607771516616589496707541646'] + location: ['http://localhost:9001/3.0/members/37'] status: {code: 201, message: Created} - request: body: null @@ -34,10 +34,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -49,11 +49,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"http_etag": "\"acca4b436c2c0c7f23b4ab40c844d55074c9b8e6\"", - "user_id": 154977237945172734425636786183823384410, "self_link": "http://localhost:9001/3.0/users/154977237945172734425636786183823384410", - "created_on": "2016-01-23T01:15:15.447830", "is_server_owner": false}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"4c816726023bb1daf76d48e82b250689df6a4694\"", "is_server_owner": false, + "self_link": "http://localhost:9001/3.0/users/11", "user_id": 11}'} headers: - content-length: ['271'] + content-length: ['190'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -61,15 +61,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/154977237945172734425636786183823384410/addresses + uri: http://localhost:9001/3.0/users/11/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"e895e4d6386e7275c7c7097425a401797de6fe3a\"", - "total_size": 1, "entries": [{"email": "test@example.com", "user": "http://localhost:9001/3.0/users/154977237945172734425636786183823384410", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "http_etag": "\"c896b77433fff914ff8248caa4d599d1eaa5dd9e\"", - "registered_on": "2016-01-23T01:15:15.422358"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": + "\"c0069cae5d04efb49c7546aef78ce21c4d054047\"", "original_email": "test@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/11"}], "http_etag": "\"a09d85d2159d794efad09ab900757d9dd82e06ce\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['432'] + content-length: ['388'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -79,15 +79,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"7327288b55fa0270f750e150ad5ec0c2bd79ac84\"", - "total_size": 1, "entries": [{"email": "test@example.com", "user": "http://localhost:9001/3.0/users/154977237945172734425636786183823384410", - "member_id": 182356393697607771516616589496707541646, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/182356393697607771516616589496707541646", - "address": "http://localhost:9001/3.0/addresses/test@example.com", "http_etag": - "\"41066deabb3db78a13fd8501789e5be0c337c8af\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"bdef790b882fa6b411e012fce279ba005d6fd3a2\"", + "list_id": "foo.example.com", "member_id": 37, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/37", "user": + "http://localhost:9001/3.0/users/11"}], "http_etag": "\"c3990e0df4349b5a66adefae78992d8e774acf05\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['595'] + content-length: ['484'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -98,7 +97,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -122,30 +121,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"9eeb45bcefc08adf5635dbe2aceda2a98b30fd89\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:15.091880", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] 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_summary_metrics_superuser.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_superuser.yaml index 1e8c5d1..a20cba7 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_superuser.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_superuser.yaml @@ -6,10 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -21,10 +21,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -49,7 +49,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -62,7 +62,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -86,30 +86,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"6b5527bef5a26e28bc2caa7092ad0cd38c6e4ae1\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:16.434351", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] 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_summary_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_moderator.yaml index d9171d8..7736857 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_moderator.yaml @@ -10,7 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/277639646177770772088721462718867375005'] + location: ['http://localhost:9001/3.0/users/15'] status: {code: 201, message: Created} - request: body: null @@ -19,10 +19,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -38,7 +38,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/301613334055470765680090501616260994778'] + location: ['http://localhost:9001/3.0/members/41'] status: {code: 201, message: Created} - request: body: null @@ -47,10 +47,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -62,12 +62,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"password": "$6$rounds=633998$/UwEIsbZDd7vduBS$3X5X6v8RhUkrkTyJa2tZFzUrd6fEqM6kwO/Pwd8GFLdkPfx.40qRPyXbqHl9awocjW5itPujtoLVc2DTKnsX41", - "user_id": 277639646177770772088721462718867375005, "self_link": "http://localhost:9001/3.0/users/277639646177770772088721462718867375005", - "created_on": "2016-01-23T01:15:24.632621", "is_server_owner": false, "http_etag": - "\"06a7987d87974dd34a4a1fd854325c30170d7035\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"2e2e9eb37dc73e2e8fcdcf1615ab835832b5b150\"", "is_server_owner": false, + "password": "$6$rounds=596317$NMK1IsY/i6YIhE9k$MMIwaq3i/p98a8oxOrYG7BTD6Vrk6m6xlS7aZw2UbDlGww4Xqiy2OUOdJ6Bvox0AiEIQ3s603cZY5T2R5usIc0", + "self_link": "http://localhost:9001/3.0/users/15", "user_id": 15}'} headers: - content-length: ['407'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -75,15 +75,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/277639646177770772088721462718867375005/addresses + uri: http://localhost:9001/3.0/users/15/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"6e788ba54cef090bcc3577b6e88f4fc44d08f1ec\"", - "total_size": 1, "entries": [{"email": "test@example.com", "user": "http://localhost:9001/3.0/users/277639646177770772088721462718867375005", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "http_etag": "\"e984f37b1c2a8cc4dda41e4b256c0a0bd6a9f1c7\"", - "registered_on": "2016-01-23T01:15:24.632075"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": + "\"7e89118330bb8d4cfca6242e4023e3685cfe802f\"", "original_email": "test@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/15"}], "http_etag": "\"9edb7cb66202956ff9d44e7411cf5a4e851fd8cf\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['432'] + content-length: ['388'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -94,7 +94,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -106,15 +106,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"f1d3ab052e0919cfca4111188736aec3d1364392\"", - "total_size": 1, "entries": [{"email": "test@example.com", "user": "http://localhost:9001/3.0/users/277639646177770772088721462718867375005", - "member_id": 301613334055470765680090501616260994778, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/301613334055470765680090501616260994778", - "address": "http://localhost:9001/3.0/addresses/test@example.com", "http_etag": - "\"747ad207d96039cc596993232388a0c9b8b91478\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"0efd41b8f00768b2c5b3cb8681eb83f47e9d6e90\"", + "list_id": "foo.example.com", "member_id": 41, "moderation_action": "accept", + "role": "moderator", "self_link": "http://localhost:9001/3.0/members/41", + "user": "http://localhost:9001/3.0/users/15"}], "http_etag": "\"1727e1f9f01506f735eff7184400c3ecb0bc4e14\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['599'] + content-length: ['488'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -136,30 +135,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"c7db610317852456380046de15adfcf25d27014d\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:24.313563", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] 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_summary_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_owner.yaml index 680df88..23d2af1 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_owner.yaml @@ -10,7 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/164317161666474507724910689624126470016'] + location: ['http://localhost:9001/3.0/users/16'] status: {code: 201, message: Created} - request: body: null @@ -19,10 +19,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -38,7 +38,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/39033482061987340414885949206989609343'] + location: ['http://localhost:9001/3.0/members/42'] status: {code: 201, message: Created} - request: body: null @@ -47,10 +47,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -62,12 +62,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"password": "$6$rounds=662983$u8aEBojJI1ZPIP4x$EHO9Ycz6yGVg4CCj2K0pdnzOUbBGBb4j5/Qoxew3QOrxnglNFUVvnh1lOrQDuViwDRp5QreOfluLAz0KqmCJT1", - "user_id": 164317161666474507724910689624126470016, "self_link": "http://localhost:9001/3.0/users/164317161666474507724910689624126470016", - "created_on": "2016-01-23T01:15:26.418609", "is_server_owner": false, "http_etag": - "\"915b7ffeaf38140726b54509ddd581c5da45bb0e\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"bd27041d06ef3929b2069279b31de508f50a93c8\"", "is_server_owner": false, + "password": "$6$rounds=607013$rclRs733cyebi6rZ$JeNTWtmrZKR/BT6ecnM59L5x1Ym5Zz4KAqNq6H2F65X3RQziE7B0A0h5HLQTEbErJT9mOKWQVrhvgS1YW/6b/0", + "self_link": "http://localhost:9001/3.0/users/16", "user_id": 16}'} headers: - content-length: ['407'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -75,15 +75,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/164317161666474507724910689624126470016/addresses + uri: http://localhost:9001/3.0/users/16/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"f537b107af048014abb76aa0465b0546df4cbed7\"", - "total_size": 1, "entries": [{"email": "test@example.com", "user": "http://localhost:9001/3.0/users/164317161666474507724910689624126470016", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "http_etag": "\"0fb92860863462508b28607e685e7ff3b472f3af\"", - "registered_on": "2016-01-23T01:15:26.418331"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": + "\"4f8c6ce236ae784932ac2c3760ac04a842169db0\"", "original_email": "test@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/16"}], "http_etag": "\"74b785f1190b6e6f6e087c6a30df58f51a519aa0\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['432'] + content-length: ['388'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -93,15 +93,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"2092459640c845b4f53a30ab0473990c32aa24e8\"", - "total_size": 1, "entries": [{"email": "test@example.com", "user": "http://localhost:9001/3.0/users/164317161666474507724910689624126470016", - "member_id": 39033482061987340414885949206989609343, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/39033482061987340414885949206989609343", - "address": "http://localhost:9001/3.0/addresses/test@example.com", "http_etag": - "\"88ff9c1bbe40ea5faddd241e30d5b889eed44a9b\"", "moderation_action": "accept"}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", + "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"3f4c31eab3f7ad3160e97318030b08da8f9abae2\"", + "list_id": "foo.example.com", "member_id": 42, "moderation_action": "accept", + "role": "owner", "self_link": "http://localhost:9001/3.0/members/42", "user": + "http://localhost:9001/3.0/users/16"}], "http_etag": "\"c940e782471431c61de13bbfa76f2400dd5f2256\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['593'] + content-length: ['484'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -112,7 +111,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -136,30 +135,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"1c1eedabe315942ce2b95576d6ee1451ec390760\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:26.092820", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] 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_summary_secondary_moderator.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_moderator.yaml index 844456f..92cb01c 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_moderator.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_moderator.yaml @@ -10,7 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/227071033173330356076343977945960464597'] + location: ['http://localhost:9001/3.0/users/13'] status: {code: 201, message: Created} - request: body: email=anotheremail%40example.com @@ -18,7 +18,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/227071033173330356076343977945960464597/addresses + uri: http://localhost:9001/3.0/users/13/addresses response: body: {string: !!python/unicode ''} headers: @@ -43,10 +43,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -62,7 +62,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/10855622268540069689520155883454460072'] + location: ['http://localhost:9001/3.0/members/39'] status: {code: 201, message: Created} - request: body: null @@ -71,10 +71,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -86,12 +86,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"password": "$6$rounds=591150$pm3VlBwi1PMVkuHi$9DapGUF1ahHZX8cry3MAR50tD7I6orKAlTnZXVS4OmJzItnxi7Qe9OaOVDmx8UP2wHwoz7XQxB0ECdCVp3jFP.", - "user_id": 227071033173330356076343977945960464597, "self_link": "http://localhost:9001/3.0/users/227071033173330356076343977945960464597", - "created_on": "2016-01-23T01:15:18.939067", "is_server_owner": false, "http_etag": - "\"1cc0fcefb70b0d629b28e96795ed0e107dec0e85\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"be2467c4b31b324e8e5a584eb10fc81bf0c6d192\"", "is_server_owner": false, + "password": "$6$rounds=598827$EXcupHkcZTTOPAU.$P8cDUj6tOm6sunOicumEHdenjPes8YJ/mNCGV3rT11N7QGR5/J9gzBMOpZSmTlBdPNQFI5n4FXqZT.KjLaefo0", + "self_link": "http://localhost:9001/3.0/users/13", "user_id": 13}'} headers: - content-length: ['407'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -99,20 +99,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/227071033173330356076343977945960464597/addresses + uri: http://localhost:9001/3.0/users/13/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"ba837f7cef25fd7ce5ce96c908337dd26be9cd44\"", - "total_size": 2, "entries": [{"email": "anotheremail@example.com", "user": - "http://localhost:9001/3.0/users/227071033173330356076343977945960464597", - "self_link": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "original_email": "anotheremail@example.com", "http_etag": "\"943bf3801a343ef7e295d5326faa661719b44f8a\"", - "verified_on": "2016-01-23T01:15:19.449834", "registered_on": "2016-01-23T01:15:19.405467"}, - {"email": "test@example.com", "user": "http://localhost:9001/3.0/users/227071033173330356076343977945960464597", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "http_etag": "\"8a4905f67eb1aa2e3d6eea943960304bbcc1be78\"", - "registered_on": "2016-01-23T01:15:18.938527"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", + "http_etag": "\"5bd519f0ac758144242372fc87459fe437bfe7c5\"", "original_email": + "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/13", + "verified_on": "2005-08-01T07:49:23"}, {"email": "test@example.com", "http_etag": + "\"183bd2070dec2c1087e072dede15f46d64ad4c23\"", "original_email": "test@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/13"}], "http_etag": "\"f32ca2969a134d85272e17c934e8cbb15664aada\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['830'] + content-length: ['735'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -123,7 +122,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -135,16 +134,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"http_etag": "\"c60154d884995664072b4e30cfc74182591973d2\"", - "total_size": 1, "entries": [{"email": "anotheremail@example.com", "user": - "http://localhost:9001/3.0/users/227071033173330356076343977945960464597", - "member_id": 10855622268540069689520155883454460072, "role": "moderator", - "delivery_mode": "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/10855622268540069689520155883454460072", - "address": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "http_etag": "\"38796ae18cdac201290fa877b86b00d8ee938b4a\"", "moderation_action": - "accept"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/anotheremail@example.com", + "delivery_mode": "regular", "email": "anotheremail@example.com", "http_etag": + "\"9a169fa9954e3c58b2e1feab1102a9c836f20453\"", "list_id": "foo.example.com", + "member_id": 39, "moderation_action": "accept", "role": "moderator", "self_link": + "http://localhost:9001/3.0/members/39", "user": "http://localhost:9001/3.0/users/13"}], + "http_etag": "\"4cd0a6761ddc223b686adfb4b6ae960d0c27708d\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['613'] + content-length: ['504'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -178,30 +176,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"137e62e818f30e5edfecbfc9c0ce1e9b12f0642d\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:18.636483", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] 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_summary_secondary_owner.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_owner.yaml index 76f3de3..bcd2973 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_owner.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_owner.yaml @@ -10,7 +10,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/106149173311714208856455475045690630968'] + location: ['http://localhost:9001/3.0/users/14'] status: {code: 201, message: Created} - request: body: email=anotheremail%40example.com @@ -18,7 +18,7 @@ accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] method: !!python/unicode POST - uri: http://localhost:9001/3.0/users/106149173311714208856455475045690630968/addresses + uri: http://localhost:9001/3.0/users/14/addresses response: body: {string: !!python/unicode ''} headers: @@ -43,10 +43,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -62,7 +62,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/183648215442057221627118914147618309383'] + location: ['http://localhost:9001/3.0/members/40'] status: {code: 201, message: Created} - request: body: null @@ -71,10 +71,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com response: - body: {string: !!python/unicode '{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}'} + body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com", + "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com", + "list_name": "foo", "mail_host": "example.com", "member_count": 0, "self_link": + "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -86,12 +86,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"password": "$6$rounds=667068$qaa/lSPEOouLvST7$IdtA2XV3gNXBQ1EjJFxkadG3sNHefsnTbuP13oCeVwtECKrd0hwD8G8e.qIGQgGru/VbwAxgQR8In5qPAJ8ak1", - "user_id": 106149173311714208856455475045690630968, "self_link": "http://localhost:9001/3.0/users/106149173311714208856455475045690630968", - "created_on": "2016-01-23T01:15:20.728436", "is_server_owner": false, "http_etag": - "\"d939d4284a0cdd19c21802a016784a6a900f1289\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"42e1ab2ac3a8fa8c2987d62ef106b370fe73c8c8\"", "is_server_owner": false, + "password": "$6$rounds=678791$iVwsyWinAlQPSxea$lpYjDpxD0tGa4luA1j6GjkOgTPShszjJQHJh/1TaaASb4Kz.COZ5ogw5wEEnB2RQ3ZePnJaQPNnHYLqSyp5fL0", + "self_link": "http://localhost:9001/3.0/users/14", "user_id": 14}'} headers: - content-length: ['407'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -99,20 +99,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/106149173311714208856455475045690630968/addresses + uri: http://localhost:9001/3.0/users/14/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"1307e5e4a080e123579296434528ea349f4dbc67\"", - "total_size": 2, "entries": [{"email": "anotheremail@example.com", "user": - "http://localhost:9001/3.0/users/106149173311714208856455475045690630968", - "self_link": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "original_email": "anotheremail@example.com", "http_etag": "\"d7df8ad7ab57166b337e0ced34bc58ad41b9c806\"", - "verified_on": "2016-01-23T01:15:21.272343", "registered_on": "2016-01-23T01:15:21.223066"}, - {"email": "test@example.com", "user": "http://localhost:9001/3.0/users/106149173311714208856455475045690630968", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "http_etag": "\"61fa4c1578a431e7bb78f9783c4af1547f752052\"", - "registered_on": "2016-01-23T01:15:20.727836"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", + "http_etag": "\"41d7953a9b379abc1b9532f5d6ab48220fdd6de5\"", "original_email": + "anotheremail@example.com", "registered_on": "2005-08-01T07:49:23", "self_link": + "http://localhost:9001/3.0/addresses/anotheremail@example.com", "user": "http://localhost:9001/3.0/users/14", + "verified_on": "2005-08-01T07:49:23"}, {"email": "test@example.com", "http_etag": + "\"6c39fd341eea07279f00e7cd3cd0ecd501bc0cec\"", "original_email": "test@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/14"}], "http_etag": "\"30a8283a53a10108b734fa6084576101d007f4f6\"", + "start": 0, "total_size": 2}'} headers: - content-length: ['830'] + content-length: ['735'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -122,16 +121,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"http_etag": "\"d31fb69c8b42fbd60f177cabafd4b500b40884be\"", - "total_size": 1, "entries": [{"email": "anotheremail@example.com", "user": - "http://localhost:9001/3.0/users/106149173311714208856455475045690630968", - "member_id": 183648215442057221627118914147618309383, "role": "owner", "delivery_mode": - "regular", "list_id": "foo.example.com", "self_link": "http://localhost:9001/3.0/members/183648215442057221627118914147618309383", - "address": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "http_etag": "\"f9241a1d63dd8e3703679a36fda7a1fac13c481a\"", "moderation_action": - "accept"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/anotheremail@example.com", + "delivery_mode": "regular", "email": "anotheremail@example.com", "http_etag": + "\"3103abcb4622573d6c69c75b26f92f21eaf83232\"", "list_id": "foo.example.com", + "member_id": 40, "moderation_action": "accept", "role": "owner", "self_link": + "http://localhost:9001/3.0/members/40", "user": "http://localhost:9001/3.0/users/14"}], + "http_etag": "\"a0f02f0079c40ab4435e852b16b41c7e10604496\"", "start": 0, "total_size": + 1}'} headers: - content-length: ['611'] + content-length: ['500'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -142,7 +140,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -178,30 +176,29 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo@example.com/config response: - body: {string: !!python/unicode '{"admin_immed_notify": true, "last_post_at": - null, "welcome_message_uri": "mailman:///welcome.txt", "filter_content": false, - "display_name": "Foo", "acceptable_aliases": [], "web_host": "example.com", - "convert_html_to_plaintext": false, "autorespond_requests": "none", "digest_volume_frequency": - "monthly", "description": "", "collapse_alternatives": true, "autoresponse_owner_text": - "", "join_address": "foo-join@example.com", "fqdn_listname": "foo@example.com", - "no_reply_address": "noreply@example.com", "posting_address": "foo@example.com", - "autorespond_postings": "none", "owner_address": "foo-owner@example.com", - "allow_list_posts": true, "autoresponse_postings_text": "", "posting_pipeline": - "default-posting-pipeline", "subscription_policy": "confirm", "mail_host": - "example.com", "http_etag": "\"298bae52d83a4e7168a43b1f5778d03e06642a6a\"", - "list_name": "foo", "default_nonmember_action": "hold", "first_strip_reply_to": - false, "digest_send_periodic": true, "admin_notify_mchanges": false, "autoresponse_grace_period": - "90d", "request_address": "foo-request@example.com", "digests_enabled": true, - "advertised": true, "volume": 1, "autorespond_owner": "none", "next_digest_number": - 1, "reply_to_address": "", "send_welcome_message": true, "post_id": 1, "scheme": - "http", "archive_policy": "public", "autoresponse_request_text": "", "reply_goes_to_list": - "no_munging", "anonymous_list": false, "leave_address": "foo-leave@example.com", - "subject_prefix": "[Foo] ", "bounces_address": "foo-bounces@example.com", - "default_member_action": "defer", "created_at": "2016-01-23T01:15:20.417351", - "digest_size_threshold": 30.0, "administrivia": true, "digest_last_sent_at": - null, "include_rfc2369_headers": true}'} + body: {string: !!python/unicode '{"acceptable_aliases": [], "admin_immed_notify": + true, "admin_notify_mchanges": false, "administrivia": true, "advertised": + true, "allow_list_posts": true, "anonymous_list": false, "archive_policy": + "public", "autorespond_owner": "none", "autorespond_postings": "none", "autorespond_requests": + "none", "autoresponse_grace_period": "90d", "autoresponse_owner_text": "", + "autoresponse_postings_text": "", "autoresponse_request_text": "", "bounces_address": + "foo-bounces@example.com", "collapse_alternatives": true, "convert_html_to_plaintext": + false, "created_at": "2005-08-01T07:49:23", "default_member_action": "defer", + "default_nonmember_action": "hold", "description": "", "digest_last_sent_at": + null, "digest_send_periodic": true, "digest_size_threshold": 30.0, "digest_volume_frequency": + "monthly", "digests_enabled": true, "display_name": "Foo", "filter_content": + false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", + "http_etag": "\"4d90227445fe59860c01275cf1b0633c27f87673\"", "include_rfc2369_headers": + true, "join_address": "foo-join@example.com", "last_post_at": null, "leave_address": + "foo-leave@example.com", "list_name": "foo", "mail_host": "example.com", "next_digest_number": + 1, "no_reply_address": "noreply@example.com", "owner_address": "foo-owner@example.com", + "post_id": 1, "posting_address": "foo@example.com", "posting_pipeline": "default-posting-pipeline", + "reply_goes_to_list": "no_munging", "reply_to_address": "", "request_address": + "foo-request@example.com", "scheme": "http", "send_welcome_message": true, + "subject_prefix": "[Foo] ", "subscription_policy": "confirm", "volume": 1, + "web_host": "example.com", "welcome_message_uri": "mailman:///welcome.txt"}'} headers: - content-length: ['1710'] + content-length: ['1703'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml index 2932726..51ed3b7 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml @@ -19,10 +19,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -51,7 +51,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/273064373037540593226240697006570925556'] + location: ['http://localhost:9001/3.0/users/22'] status: {code: 201, message: Created} - request: body: null @@ -60,12 +60,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"password": "$6$rounds=657651$2C1ZQj7ef0hWm.wQ$kWoBvkUd6/h1AB7C4ExTbDUqZKKTGWR.u5NTZ5/CuCaS7Pkhcph0ezwOwXSYj.ZC5y3TDUTn/O0R.DUy3PD1k/", - "user_id": 273064373037540593226240697006570925556, "self_link": "http://localhost:9001/3.0/users/273064373037540593226240697006570925556", - "created_on": "2016-01-23T01:14:51.476085", "is_server_owner": false, "http_etag": - "\"f07e025a0bd906d0e86d15fa302c4a57efc83973\""}'} + body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": + "\"93f34599b99d53e31e62564b644c4c62c4e99e5f\"", "is_server_owner": false, + "password": "$6$rounds=705439$WrFUdR3yqFlLfrBW$n0FpEecGIJ2TmNfBsSyr1fYDiOO9a8aaKnI49a78Yikae01Ch7dZqDe4JdS0BwsKfSivSUzNO9.VXRK4kX4YA1", + "self_link": "http://localhost:9001/3.0/users/22", "user_id": 22}'} headers: - content-length: ['407'] + content-length: ['326'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -73,15 +73,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/273064373037540593226240697006570925556/addresses + uri: http://localhost:9001/3.0/users/22/addresses response: - body: {string: !!python/unicode '{"http_etag": "\"b1663445c65db2f332f0a1eaa7eb15340ea1f75e\"", - "total_size": 1, "entries": [{"email": "test@example.com", "user": "http://localhost:9001/3.0/users/273064373037540593226240697006570925556", - "self_link": "http://localhost:9001/3.0/addresses/test@example.com", "original_email": - "test@example.com", "http_etag": "\"94ef23b3450fbb52a22d7297ade529ee1c5c8d74\"", - "registered_on": "2016-01-23T01:14:51.475631"}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": + "\"d3d6f6bd219cab118fc7f964e53cc459d80b171f\"", "original_email": "test@example.com", + "registered_on": "2005-08-01T07:49:23", "self_link": "http://localhost:9001/3.0/addresses/test@example.com", + "user": "http://localhost:9001/3.0/users/22"}], "http_etag": "\"e05da3245a967d14f893e97380b3e3880319cb45\"", + "start": 0, "total_size": 1}'} headers: - content-length: ['432'] + content-length: ['388'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -91,12 +91,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -119,37 +119,20 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"http_etag": "\"a9372cee4b2bc4849ea9d03a3151090cf102954f\"", - "total_size": 9, "entries": [{"http_etag": "\"258c72bc3e571cf4adcf30ec76c44966fffe519a\"", - "user_id": 111061026562997396199598994611156325102, "self_link": "http://localhost:9001/3.0/users/111061026562997396199598994611156325102", - "created_on": "2016-01-23T01:08:43.335888", "is_server_owner": false}, {"http_etag": - "\"e35df92b860a28cdabf1728accbcdb8eaf8af363\"", "user_id": 169168431446964903948492359219344461178, - "self_link": "http://localhost:9001/3.0/users/169168431446964903948492359219344461178", - "created_on": "2016-01-23T01:08:44.442266", "is_server_owner": false}, {"http_etag": - "\"92f36cf5e9ebdcbd093a9b85c8ce0ea3dc06d176\"", "user_id": 40057790907545114942840781250241924300, - "self_link": "http://localhost:9001/3.0/users/40057790907545114942840781250241924300", - "created_on": "2016-01-23T01:08:45.629074", "is_server_owner": false}, {"http_etag": - "\"d136de00e601744ca691e2da75a14a3c7c2de05d\"", "user_id": 322944633538647269794050442282126222765, - "self_link": "http://localhost:9001/3.0/users/322944633538647269794050442282126222765", - "created_on": "2016-01-23T01:08:47.051526", "is_server_owner": false}, {"http_etag": - "\"26225fa71fa8511ac5c89de96f04c46fa79c59e0\"", "user_id": 146431844970303104352830739674036461405, - "self_link": "http://localhost:9001/3.0/users/146431844970303104352830739674036461405", - "created_on": "2016-01-23T01:08:50.444748", "is_server_owner": false}, {"http_etag": - "\"982ce62d00b347da8edf3c262ff04d718cdaddd9\"", "user_id": 240284639311521038462825177405843176306, - "self_link": "http://localhost:9001/3.0/users/240284639311521038462825177405843176306", - "created_on": "2016-01-23T01:08:50.540928", "is_server_owner": false}, {"user_id": - 116764389630457561498636887095357470529, "self_link": "http://localhost:9001/3.0/users/116764389630457561498636887095357470529", - "created_on": "2016-01-23T01:08:56.500709", "display_name": "None", "is_server_owner": - false, "http_etag": "\"c9b2e8e3655fd82d57fe5fc406c5571e6f3ffc09\""}, {"user_id": - 134288675315380756818195510721043802893, "self_link": "http://localhost:9001/3.0/users/134288675315380756818195510721043802893", - "created_on": "2016-01-23T01:08:56.738758", "display_name": "None", "is_server_owner": - false, "http_etag": "\"e7c1913aba539a72c32d835b3333a71eaab85fb8\""}, {"password": - "$6$rounds=657651$2C1ZQj7ef0hWm.wQ$kWoBvkUd6/h1AB7C4ExTbDUqZKKTGWR.u5NTZ5/CuCaS7Pkhcph0ezwOwXSYj.ZC5y3TDUTn/O0R.DUy3PD1k/", - "user_id": 273064373037540593226240697006570925556, "self_link": "http://localhost:9001/3.0/users/273064373037540593226240697006570925556", - "created_on": "2016-01-23T01:14:51.476085", "is_server_owner": false, "http_etag": - "\"f07e025a0bd906d0e86d15fa302c4a57efc83973\""}], "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", + "http_etag": "\"f01a45c6984d9e4639cb6d338286307c11624e4f\"", "is_server_owner": + false, "self_link": "http://localhost:9001/3.0/users/19", "user_id": 19}, + {"created_on": "2005-08-01T07:49:23", "http_etag": "\"9fa1761ddc1bccdf97e502e936612292fa46492e\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/20", + "user_id": 20}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"2b7d189e2d8f3403cf72781d5a1837d3f6722d31\"", + "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/21", + "user_id": 21}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"93f34599b99d53e31e62564b644c4c62c4e99e5f\"", + "is_server_owner": false, "password": "$6$rounds=705439$WrFUdR3yqFlLfrBW$n0FpEecGIJ2TmNfBsSyr1fYDiOO9a8aaKnI49a78Yikae01Ch7dZqDe4JdS0BwsKfSivSUzNO9.VXRK4kX4YA1", + "self_link": "http://localhost:9001/3.0/users/22", "user_id": 22}], "http_etag": + "\"494e4506457b388202128dde6bb949f5bcf8d48c\"", "start": 0, "total_size": + 4}'} headers: - content-length: ['2742'] + content-length: ['1007'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -157,7 +140,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/111061026562997396199598994611156325102 + uri: http://localhost:9001/3.0/users/19 response: body: {string: !!python/unicode ''} headers: @@ -168,7 +151,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/116764389630457561498636887095357470529 + uri: http://localhost:9001/3.0/users/20 response: body: {string: !!python/unicode ''} headers: @@ -179,7 +162,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/134288675315380756818195510721043802893 + uri: http://localhost:9001/3.0/users/21 response: body: {string: !!python/unicode ''} headers: @@ -190,62 +173,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/146431844970303104352830739674036461405 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/169168431446964903948492359219344461178 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/240284639311521038462825177405843176306 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/273064373037540593226240697006570925556 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/322944633538647269794050442282126222765 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/40057790907545114942840781250241924300 + uri: http://localhost:9001/3.0/users/22 response: body: {string: !!python/unicode ''} headers: @@ -282,10 +210,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/domains/example.com", - "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "url_host": "example.com", "base_url": "http://example.com", - "description": null}'} + 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] @@ -310,12 +238,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - body: {string: !!python/unicode '{"http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", - "total_size": 1, "entries": [{"member_count": 0, "list_name": "foo", "display_name": - "Foo", "list_id": "foo.example.com", "fqdn_listname": "foo@example.com", "self_link": - "http://localhost:9001/3.0/lists/foo.example.com", "volume": 1, "mail_host": - "example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\""}], - "start": 0}'} + body: {string: !!python/unicode '{"entries": [{"display_name": "Foo", "fqdn_listname": + "foo@example.com", "http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", + "list_id": "foo.example.com", "list_name": "foo", "mail_host": "example.com", + "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/foo.example.com", + "volume": 1}], "http_etag": "\"0eb6d0b88c89b5c491b7966eab97a79e221096ad\"", + "start": 0, "total_size": 1}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -339,7 +267,7 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "total_size": 0, "start": 0}'} + "start": 0, "total_size": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] diff --git a/src/postorius/tests/mailman_api_tests/test_list_settings.py b/src/postorius/tests/mailman_api_tests/test_list_settings.py index 772948f..6cd1695 100644 --- a/src/postorius/tests/mailman_api_tests/test_list_settings.py +++ b/src/postorius/tests/mailman_api_tests/test_list_settings.py @@ -137,12 +137,13 @@ @MM_VCR.use_cassette('list_settings_archivers.yaml') def test_archivers(self): self.assertEqual(dict(self.foo_list.archivers), - {'mhonarc': False, 'prototype': False, 'mail-archive': False}) + {'mhonarc': True, 'prototype': True, 'mail-archive': True}) self.client.login(username='testsu', password='testpass') url = reverse('list_settings', args=('foo.example.com', 'archiving')) response = self.client.get(url) self.assertEqual(response.status_code, 200) - self.assertEqual(response.context["form"].initial['archivers'], []) + self.assertEqual(response.context["form"].initial['archivers'], + ['mail-archive', 'mhonarc', 'prototype']) response = self.client.post(url, {'archive_policy': 'public', 'archivers': ['prototype']}) self.assertRedirects(response, url)