diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_bans.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_bans.yaml index 79ae65b..e64e38a 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 '{"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"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -47,11 +47,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -64,7 +63,7 @@ uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -76,11 +75,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -127,10 +125,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -190,10 +188,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -253,10 +251,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -281,11 +279,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -298,7 +295,7 @@ uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -310,11 +307,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -361,10 +357,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -424,10 +420,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -487,10 +483,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -550,10 +546,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -578,11 +574,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -629,10 +624,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -657,11 +652,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -686,7 +680,7 @@ uri: http://localhost:9001/3.0/lists/test_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -699,7 +693,7 @@ uri: http://localhost:9001/3.0/lists/test_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -711,11 +705,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} 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 490e718..4226b61 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,11 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -35,11 +34,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -51,11 +49,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: - 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}'} + 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}'} headers: content-length: ['327'] content-type: [application/json; charset=utf-8] @@ -67,11 +64,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: - 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}'} + 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}'} headers: content-length: ['327'] content-type: [application/json; charset=utf-8] @@ -83,11 +79,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -99,9 +94,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", "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"}'} + 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\""}'} 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 e35b4d9..04d407c 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,11 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -35,9 +34,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", "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"}'} + 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\""}'} headers: content-length: ['222'] content-type: [application/json; charset=utf-8] @@ -49,11 +48,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -78,11 +76,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -94,11 +91,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: - 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}'} + 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}'} headers: content-length: ['327'] content-type: [application/json; charset=utf-8] @@ -110,11 +106,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: - 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}'} + 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}'} 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 81c50b9..bc01a15 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,11 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -35,9 +34,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", "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"}'} + 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\""}'} headers: content-length: ['222'] content-type: [application/json; charset=utf-8] @@ -49,11 +48,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -65,11 +63,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: - 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}'} + 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}'} headers: content-length: ['327'] content-type: [application/json; charset=utf-8] @@ -92,11 +89,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -109,7 +105,7 @@ uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 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 a663f84..eb20193 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,11 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -34,11 +33,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -51,7 +49,7 @@ uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -63,11 +61,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -80,7 +77,7 @@ uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 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 dc90b28..a3be384 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,11 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -139,11 +138,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com response: - body: {string: !!python/unicode '{"display_name": "Test_list", "fqdn_listname": - "test_list@example.com", "http_etag": "\"3f02dac6cf71a3be179af5064b09ce668186e785\"", - "list_id": "test_list.example.com", "list_name": "test_list", "mail_host": - "example.com", "member_count": 0, "self_link": "http://localhost:9001/3.0/lists/test_list.example.com", - "volume": 1}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -155,27 +153,26 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: - 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}'} + 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}'} headers: content-length: ['2137'] content-type: [application/json; charset=utf-8] @@ -187,27 +184,26 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/test_list.example.com/bans response: - 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}'} + 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}'} 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 d68a881..ac6fdf8 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_members.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_members.yaml @@ -7,11 +7,11 @@ method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode 'Duplicate email host: example.com'} + body: {string: !!python/unicode ''} headers: - content-length: ['33'] - content-type: [application/json; charset=utf-8] - status: {code: 400, message: Bad Request} + content-length: ['0'] + location: ['http://localhost:9001/3.0/domains/example.com'] + status: {code: 201, message: Created} - request: body: null headers: @@ -19,25 +19,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} - headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -67,6 +52,17 @@ content-length: ['0'] status: {code: 204, message: No Content} - request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: body: mail_host=example.com headers: accept-encoding: ['gzip, deflate'] @@ -74,11 +70,11 @@ method: !!python/unicode POST uri: http://localhost:9001/3.0/domains response: - body: {string: !!python/unicode 'Duplicate email host: example.com'} + body: {string: !!python/unicode ''} headers: - content-length: ['33'] - content-type: [application/json; charset=utf-8] - status: {code: 400, message: Bad Request} + content-length: ['0'] + location: ['http://localhost:9001/3.0/domains/example.com'] + status: {code: 201, message: Created} - request: body: null headers: @@ -86,25 +82,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} - headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -133,4 +114,15 @@ headers: content-length: ['0'] status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml b/src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml index fb4cea7..adb7188 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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] @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1977'] + location: ['http://localhost:9001/3.0/members/286251951282443815856066149849766342077'] 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/1978'] + location: ['http://localhost:9001/3.0/members/290291651328520240611632842902112196688'] 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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] @@ -170,7 +170,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1979'] + location: ['http://localhost:9001/3.0/members/138360125371808536789730292505008477791'] 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/1980'] + location: ['http://localhost:9001/3.0/members/212007934930262850369418714569449291660'] 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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] @@ -274,7 +274,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1981'] + location: ['http://localhost:9001/3.0/members/16188549390915332942556807930498728235'] 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/1982'] + location: ['http://localhost:9001/3.0/members/105396767391427854244602718608187066500'] 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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] @@ -378,7 +378,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1983'] + location: ['http://localhost:9001/3.0/members/298362971165320631316849803686479069626'] 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/1984'] + location: ['http://localhost:9001/3.0/members/120392520381115878345812784410997152741'] 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 '{"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}'} + 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] @@ -427,14 +427,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"ad525091b086f56673bff9802d8c37d879b1941c\"", - "list_id": "foo.example.com", "member_id": 1983, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1983", "user": - "http://localhost:9001/3.0/users/1289"}], "http_etag": "\"b63fa5761ed4930d3c9d95b4ad8dad7fb350ea27\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['492'] + content-length: ['597'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -444,15 +445,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"15e0a7c4270fe3e3a5a926c6be6298c0015a8f11\"", "list_id": "foo.example.com", - "member_id": 1984, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/1984", "user": "http://localhost:9001/3.0/users/1290"}], - "http_etag": "\"9ef9bace3aeb28c45bf86e6e9963dd4680d0211d\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['504'] + content-length: ['609'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -497,10 +498,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -525,10 +526,10 @@ 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}'} + 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] @@ -544,7 +545,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1985'] + location: ['http://localhost:9001/3.0/members/78753872982914149100117528927027255925'] status: {code: 201, message: Created} - request: body: list_id=foo.example.com&role=moderator&subscriber=moderator%40example.com @@ -557,7 +558,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1986'] + location: ['http://localhost:9001/3.0/members/54155563085598261694515620345937128126'] 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 66d2cc9..db049d0 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 '{"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}'} + 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] @@ -21,11 +21,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"1bc854b35b090c5f74b51f8d83f071df284919d4\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/1290", "user_id": 1290}'} + 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}'} headers: - content-length: ['194'] + content-length: ['271'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -33,16 +33,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1290/addresses + uri: http://localhost:9001/3.0/users/126455316482294391934516094526453555812/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "moderator@example.com", - "http_etag": "\"dd97059e72adac8e8bcb22da02c663fec01dee51\"", "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/1290"}], - "http_etag": "\"1f91c9b7e38ab71ab9b27770e9a8e2fe04a52e81\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['405'] + content-length: ['447'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -52,14 +51,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"9d28f49e169da4032fec1c2987fca8946478845b\"", - "list_id": "foo.example.com", "member_id": 1977, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1977", "user": - "http://localhost:9001/3.0/users/1289"}], "http_etag": "\"a48360f68608f28e096e92f4b4585b8367027ef4\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['492'] + content-length: ['597'] 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 '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"637299566c287eed1f926d2906b43624cbd4001d\"", "list_id": "foo.example.com", - "member_id": 1978, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/1978", "user": "http://localhost:9001/3.0/users/1290"}], - "http_etag": "\"6b2f0bff7f14b6c961e68b8bce2836153191f4e9\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['504'] + content-length: ['609'] 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 '{"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}'} + 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] @@ -102,11 +102,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"0695cfe16d46b9083370652e1bd5e081b06f90a6\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/1289", "user_id": 1289}'} + 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}'} headers: - content-length: ['194'] + content-length: ['271'] 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/1289/addresses + uri: http://localhost:9001/3.0/users/119658018821760135569595540350577395485/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "owner@example.com", "http_etag": - "\"59c3090fdd985ca9dfbaca5160b3c3b864b6fe1f\"", "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/1289"}], "http_etag": "\"68f10da4e6399f5769a809043cffd6a185fc69c8\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['393'] + content-length: ['435'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -132,14 +132,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"b332f2a7120abaad83048e727a651d4c70cffd64\"", - "list_id": "foo.example.com", "member_id": 1979, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1979", "user": - "http://localhost:9001/3.0/users/1289"}], "http_etag": "\"c5486b9e5faf2601db6c6414d5cde582813284ea\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['492'] + content-length: ['597'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -149,15 +150,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"8081267514cd85cc6e426cf3a9ecebdf34b3378d\"", "list_id": "foo.example.com", - "member_id": 1980, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/1980", "user": "http://localhost:9001/3.0/users/1290"}], - "http_etag": "\"c469e96b9c8da0966fc5a86ec737335bd25be9bb\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['504'] + content-length: ['609'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -167,10 +168,10 @@ 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}'} + 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] @@ -183,7 +184,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\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -196,7 +197,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\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -208,10 +209,10 @@ 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}'} + 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] @@ -224,7 +225,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\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -237,7 +238,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\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 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 5adbe5e..91b43cc 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 '{"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}'} + 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] @@ -25,7 +25,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/19'] + location: ['http://localhost:9001/3.0/members/284719724064515935086069516862239734444'] 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/20'] + location: ['http://localhost:9001/3.0/members/206453578658078741292660142486334627939'] 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 '{"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}'} + 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\""}'} 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 '{"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}'} + 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}'} headers: - content-length: ['491'] + content-length: ['603'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -80,19 +80,20 @@ 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 '{"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}'} + 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}'} headers: - content-length: ['879'] + content-length: ['1103'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -100,15 +101,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/19 + uri: http://localhost:9001/3.0/members/284719724064515935086069516862239734444 response: - 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"}'} + 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"}'} headers: - content-length: ['386'] + content-length: ['498'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -116,15 +117,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/20 + uri: http://localhost:9001/3.0/members/206453578658078741292660142486334627939 response: - 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"}'} + 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"}'} headers: - content-length: ['386'] + content-length: ['498'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -134,10 +135,10 @@ 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": "\"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}'} + 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\""}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -149,15 +150,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 '{"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}'} + 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}'} headers: - content-length: ['491'] + content-length: ['603'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -167,15 +168,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 '{"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}'} + 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}'} headers: - content-length: ['491'] + content-length: ['603'] 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 eaf05aa..e50ad71 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 '{"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}'} + 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] @@ -25,7 +25,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/21'] + location: ['http://localhost:9001/3.0/members/48677728311034364519373383633644973454'] 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/22'] + location: ['http://localhost:9001/3.0/members/323402856112996734098135415696586808633'] 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 '{"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}'} + 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\""}'} 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 '{"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}'} + 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}'} headers: - content-length: ['491'] + content-length: ['601'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -80,19 +80,20 @@ 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 '{"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}'} + 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}'} headers: - content-length: ['879'] + content-length: ['1101'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -100,15 +101,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/21 + uri: http://localhost:9001/3.0/members/48677728311034364519373383633644973454 response: - 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"}'} + 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"}'} headers: - content-length: ['386'] + content-length: ['496'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -116,15 +117,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/members/22 + uri: http://localhost:9001/3.0/members/323402856112996734098135415696586808633 response: - 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"}'} + 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"}'} headers: - content-length: ['386'] + content-length: ['498'] 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 3ce001e..dcfa689 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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] @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/19'] + location: ['http://localhost:9001/3.0/members/15885455101312519106209291737399644296'] 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/20'] + location: ['http://localhost:9001/3.0/members/154066506558448237702544707559682995874'] 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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] @@ -170,7 +170,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/21'] + location: ['http://localhost:9001/3.0/members/213567682742693978718780112884272528758'] 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/22'] + location: ['http://localhost:9001/3.0/members/301685758763917615226283279776912561342'] 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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] @@ -274,7 +274,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/23'] + location: ['http://localhost:9001/3.0/members/169411174852184749297079136571664768335'] 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/24'] + location: ['http://localhost:9001/3.0/members/137539128830916456062905998105304813600'] 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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] @@ -378,7 +378,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/25'] + location: ['http://localhost:9001/3.0/members/4482302068254311708887267899378061914'] 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/26'] + location: ['http://localhost:9001/3.0/members/187261612582917262873113438913163384463'] 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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] @@ -482,7 +482,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/27'] + location: ['http://localhost:9001/3.0/members/42462534541842348785894218829186552256'] 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/28'] + location: ['http://localhost:9001/3.0/members/44704867619044542128120856573884663659'] 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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] @@ -586,7 +586,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/29'] + location: ['http://localhost:9001/3.0/members/326378345715098819045970592211161856928'] 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/30'] + location: ['http://localhost:9001/3.0/members/284221844051450930465038805324118500349'] 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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] @@ -690,7 +690,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/31'] + location: ['http://localhost:9001/3.0/members/20186402028936361880921721607075006500'] 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/32'] + location: ['http://localhost:9001/3.0/members/323632278305666695147972794763018243094'] 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 71a7ed1..75d7f06 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 '{"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}'} + 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] @@ -21,11 +21,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: - 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}'} + 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}'} headers: - content-length: ['188'] + content-length: ['271'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -33,16 +33,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/6/addresses + uri: http://localhost:9001/3.0/users/126455316482294391934516094526453555812/addresses response: - 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}'} + 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}'} headers: - content-length: ['402'] + content-length: ['447'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -52,14 +51,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"7475d59e1a201b0c92551aadc19aaaa1952913d9\"", - "list_id": "foo.example.com", "member_id": 23, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/23", "user": - "http://localhost:9001/3.0/users/5"}], "http_etag": "\"1403da4d95eec57c44321f78ede63f6a84f000e6\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['485'] + content-length: ['597'] 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 '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"d64e6bd778895be843b027369ea2e136c531405c\"", "list_id": "foo.example.com", - "member_id": 24, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/24", "user": "http://localhost:9001/3.0/users/6"}], - "http_etag": "\"d692c8279608f1fa3cfd599f8e4edd2b0273b9b4\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] 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 '{"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}'} + 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] @@ -102,11 +102,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: - 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}'} + 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}'} headers: - content-length: ['188'] + content-length: ['271'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -114,16 +114,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/6/addresses + uri: http://localhost:9001/3.0/users/126455316482294391934516094526453555812/addresses response: - 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}'} + 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}'} headers: - content-length: ['402'] + content-length: ['447'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -133,14 +132,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"7475d59e1a201b0c92551aadc19aaaa1952913d9\"", - "list_id": "foo.example.com", "member_id": 23, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/23", "user": - "http://localhost:9001/3.0/users/5"}], "http_etag": "\"1403da4d95eec57c44321f78ede63f6a84f000e6\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['485'] + content-length: ['597'] 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 '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"d64e6bd778895be843b027369ea2e136c531405c\"", "list_id": "foo.example.com", - "member_id": 24, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/24", "user": "http://localhost:9001/3.0/users/6"}], - "http_etag": "\"d692c8279608f1fa3cfd599f8e4edd2b0273b9b4\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] 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 '{"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}'} + 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] @@ -183,11 +183,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: - 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}'} + 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}'} headers: - content-length: ['188'] + content-length: ['271'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -195,16 +195,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/6/addresses + uri: http://localhost:9001/3.0/users/126455316482294391934516094526453555812/addresses response: - 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}'} + 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}'} headers: - content-length: ['402'] + content-length: ['447'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -214,14 +213,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"7475d59e1a201b0c92551aadc19aaaa1952913d9\"", - "list_id": "foo.example.com", "member_id": 23, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/23", "user": - "http://localhost:9001/3.0/users/5"}], "http_etag": "\"1403da4d95eec57c44321f78ede63f6a84f000e6\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['485'] + content-length: ['597'] 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 '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"d64e6bd778895be843b027369ea2e136c531405c\"", "list_id": "foo.example.com", - "member_id": 24, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/24", "user": "http://localhost:9001/3.0/users/6"}], - "http_etag": "\"d692c8279608f1fa3cfd599f8e4edd2b0273b9b4\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] 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 '{"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}'} + 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] @@ -264,11 +264,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: - 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}'} + 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}'} headers: - content-length: ['188'] + content-length: ['271'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -276,16 +276,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/6/addresses + uri: http://localhost:9001/3.0/users/126455316482294391934516094526453555812/addresses response: - 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}'} + 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}'} headers: - content-length: ['402'] + content-length: ['447'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -295,14 +294,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"7475d59e1a201b0c92551aadc19aaaa1952913d9\"", - "list_id": "foo.example.com", "member_id": 23, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/23", "user": - "http://localhost:9001/3.0/users/5"}], "http_etag": "\"1403da4d95eec57c44321f78ede63f6a84f000e6\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['485'] + content-length: ['597'] 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 '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"d64e6bd778895be843b027369ea2e136c531405c\"", "list_id": "foo.example.com", - "member_id": 24, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/24", "user": "http://localhost:9001/3.0/users/6"}], - "http_etag": "\"d692c8279608f1fa3cfd599f8e4edd2b0273b9b4\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] 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 '{"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}'} + 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] @@ -345,11 +345,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: - 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}'} + 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}'} headers: - content-length: ['188'] + content-length: ['271'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -357,16 +357,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/6/addresses + uri: http://localhost:9001/3.0/users/126455316482294391934516094526453555812/addresses response: - 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}'} + 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}'} headers: - content-length: ['402'] + content-length: ['447'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -376,14 +375,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"7475d59e1a201b0c92551aadc19aaaa1952913d9\"", - "list_id": "foo.example.com", "member_id": 23, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/23", "user": - "http://localhost:9001/3.0/users/5"}], "http_etag": "\"1403da4d95eec57c44321f78ede63f6a84f000e6\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['485'] + content-length: ['597'] 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 '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"d64e6bd778895be843b027369ea2e136c531405c\"", "list_id": "foo.example.com", - "member_id": 24, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/24", "user": "http://localhost:9001/3.0/users/6"}], - "http_etag": "\"d692c8279608f1fa3cfd599f8e4edd2b0273b9b4\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] 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 '{"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}'} + 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] @@ -426,11 +426,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: - 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}'} + 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}'} headers: - content-length: ['188'] + content-length: ['271'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -438,16 +438,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/6/addresses + uri: http://localhost:9001/3.0/users/126455316482294391934516094526453555812/addresses response: - 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}'} + 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}'} headers: - content-length: ['402'] + content-length: ['447'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -457,14 +456,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"7475d59e1a201b0c92551aadc19aaaa1952913d9\"", - "list_id": "foo.example.com", "member_id": 23, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/23", "user": - "http://localhost:9001/3.0/users/5"}], "http_etag": "\"1403da4d95eec57c44321f78ede63f6a84f000e6\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['485'] + content-length: ['597'] 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 '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"d64e6bd778895be843b027369ea2e136c531405c\"", "list_id": "foo.example.com", - "member_id": 24, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/24", "user": "http://localhost:9001/3.0/users/6"}], - "http_etag": "\"d692c8279608f1fa3cfd599f8e4edd2b0273b9b4\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] 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 '{"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}'} + 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] @@ -507,11 +507,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/moderator@example.com response: - 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}'} + 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}'} headers: - content-length: ['188'] + content-length: ['271'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -519,16 +519,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/6/addresses + uri: http://localhost:9001/3.0/users/126455316482294391934516094526453555812/addresses response: - 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}'} + 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}'} headers: - content-length: ['402'] + content-length: ['447'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -538,14 +537,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"7475d59e1a201b0c92551aadc19aaaa1952913d9\"", - "list_id": "foo.example.com", "member_id": 23, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/23", "user": - "http://localhost:9001/3.0/users/5"}], "http_etag": "\"1403da4d95eec57c44321f78ede63f6a84f000e6\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['485'] + content-length: ['597'] 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 '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"d64e6bd778895be843b027369ea2e136c531405c\"", "list_id": "foo.example.com", - "member_id": 24, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/24", "user": "http://localhost:9001/3.0/users/6"}], - "http_etag": "\"d692c8279608f1fa3cfd599f8e4edd2b0273b9b4\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] 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 '{"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}'} + 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] @@ -588,11 +588,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: - 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}'} + 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}'} headers: - content-length: ['188'] + content-length: ['271'] 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/5/addresses + uri: http://localhost:9001/3.0/users/119658018821760135569595540350577395485/addresses response: - 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}'} + 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}'} headers: - content-length: ['390'] + content-length: ['435'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -618,14 +618,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"ff499aee6387f8f68cdb6fc128c05161cf91c779\"", - "list_id": "foo.example.com", "member_id": 25, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/25", "user": - "http://localhost:9001/3.0/users/5"}], "http_etag": "\"e6b092080585d17443e6e9374b9ee4a87b99167c\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['485'] + content-length: ['593'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -635,15 +636,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"89c7506785c867882992ffe6b7d714c495b3a087\"", "list_id": "foo.example.com", - "member_id": 26, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/26", "user": "http://localhost:9001/3.0/users/6"}], - "http_etag": "\"940c6aa66cb06aafe52ca9ca3afe27bd7d59651d\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -653,10 +654,10 @@ 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}'} + 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] @@ -668,29 +669,30 @@ 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"}'} + 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}'} headers: - content-length: ['1703'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -700,10 +702,10 @@ 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}'} + 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] @@ -715,11 +717,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: - 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}'} + 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}'} headers: - content-length: ['188'] + content-length: ['271'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -727,15 +729,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/5/addresses + uri: http://localhost:9001/3.0/users/119658018821760135569595540350577395485/addresses response: - 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}'} + 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}'} headers: - content-length: ['390'] + content-length: ['435'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -745,14 +747,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"ff499aee6387f8f68cdb6fc128c05161cf91c779\"", - "list_id": "foo.example.com", "member_id": 25, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/25", "user": - "http://localhost:9001/3.0/users/5"}], "http_etag": "\"e6b092080585d17443e6e9374b9ee4a87b99167c\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['485'] + content-length: ['593'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -762,15 +765,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"89c7506785c867882992ffe6b7d714c495b3a087\"", "list_id": "foo.example.com", - "member_id": 26, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/26", "user": "http://localhost:9001/3.0/users/6"}], - "http_etag": "\"940c6aa66cb06aafe52ca9ca3afe27bd7d59651d\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -780,10 +783,10 @@ 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}'} + 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] @@ -795,29 +798,30 @@ 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"}'} + 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}'} headers: - content-length: ['1703'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -827,10 +831,10 @@ 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}'} + 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] @@ -842,11 +846,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: - 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}'} + 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}'} headers: - content-length: ['188'] + content-length: ['271'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -854,15 +858,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/5/addresses + uri: http://localhost:9001/3.0/users/119658018821760135569595540350577395485/addresses response: - 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}'} + 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}'} headers: - content-length: ['390'] + content-length: ['435'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -872,14 +876,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"ff499aee6387f8f68cdb6fc128c05161cf91c779\"", - "list_id": "foo.example.com", "member_id": 25, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/25", "user": - "http://localhost:9001/3.0/users/5"}], "http_etag": "\"e6b092080585d17443e6e9374b9ee4a87b99167c\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['485'] + content-length: ['593'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -889,15 +894,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"89c7506785c867882992ffe6b7d714c495b3a087\"", "list_id": "foo.example.com", - "member_id": 26, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/26", "user": "http://localhost:9001/3.0/users/6"}], - "http_etag": "\"940c6aa66cb06aafe52ca9ca3afe27bd7d59651d\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -907,10 +912,10 @@ 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}'} + 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] @@ -922,29 +927,30 @@ 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"}'} + 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}'} headers: - content-length: ['1703'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -954,10 +960,10 @@ 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}'} + 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] @@ -969,11 +975,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: - 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}'} + 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}'} headers: - content-length: ['188'] + content-length: ['271'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -981,15 +987,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/5/addresses + uri: http://localhost:9001/3.0/users/119658018821760135569595540350577395485/addresses response: - 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}'} + 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}'} headers: - content-length: ['390'] + content-length: ['435'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -999,14 +1005,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"ff499aee6387f8f68cdb6fc128c05161cf91c779\"", - "list_id": "foo.example.com", "member_id": 25, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/25", "user": - "http://localhost:9001/3.0/users/5"}], "http_etag": "\"e6b092080585d17443e6e9374b9ee4a87b99167c\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['485'] + content-length: ['593'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1016,15 +1023,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"89c7506785c867882992ffe6b7d714c495b3a087\"", "list_id": "foo.example.com", - "member_id": 26, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/26", "user": "http://localhost:9001/3.0/users/6"}], - "http_etag": "\"940c6aa66cb06aafe52ca9ca3afe27bd7d59651d\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1034,10 +1041,10 @@ 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}'} + 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] @@ -1049,29 +1056,30 @@ 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"}'} + 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}'} headers: - content-length: ['1703'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1081,10 +1089,10 @@ 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}'} + 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] @@ -1096,11 +1104,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: - 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}'} + 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}'} headers: - content-length: ['188'] + content-length: ['271'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1108,15 +1116,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/5/addresses + uri: http://localhost:9001/3.0/users/119658018821760135569595540350577395485/addresses response: - 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}'} + 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}'} headers: - content-length: ['390'] + content-length: ['435'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1126,14 +1134,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"ff499aee6387f8f68cdb6fc128c05161cf91c779\"", - "list_id": "foo.example.com", "member_id": 25, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/25", "user": - "http://localhost:9001/3.0/users/5"}], "http_etag": "\"e6b092080585d17443e6e9374b9ee4a87b99167c\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['485'] + content-length: ['593'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1143,15 +1152,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"89c7506785c867882992ffe6b7d714c495b3a087\"", "list_id": "foo.example.com", - "member_id": 26, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/26", "user": "http://localhost:9001/3.0/users/6"}], - "http_etag": "\"940c6aa66cb06aafe52ca9ca3afe27bd7d59651d\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1161,10 +1170,10 @@ 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}'} + 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] @@ -1176,29 +1185,30 @@ 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"}'} + 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}'} headers: - content-length: ['1703'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1208,10 +1218,10 @@ 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}'} + 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] @@ -1223,11 +1233,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: - 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}'} + 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}'} headers: - content-length: ['188'] + content-length: ['271'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1235,15 +1245,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/5/addresses + uri: http://localhost:9001/3.0/users/119658018821760135569595540350577395485/addresses response: - 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}'} + 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}'} headers: - content-length: ['390'] + content-length: ['435'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1253,14 +1263,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"ff499aee6387f8f68cdb6fc128c05161cf91c779\"", - "list_id": "foo.example.com", "member_id": 25, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/25", "user": - "http://localhost:9001/3.0/users/5"}], "http_etag": "\"e6b092080585d17443e6e9374b9ee4a87b99167c\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['485'] + content-length: ['593'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1270,15 +1281,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"89c7506785c867882992ffe6b7d714c495b3a087\"", "list_id": "foo.example.com", - "member_id": 26, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/26", "user": "http://localhost:9001/3.0/users/6"}], - "http_etag": "\"940c6aa66cb06aafe52ca9ca3afe27bd7d59651d\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1288,10 +1299,10 @@ 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}'} + 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] @@ -1303,29 +1314,95 @@ 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"}'} + 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}'} headers: - content-length: ['1703'] + 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-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1335,10 +1412,10 @@ 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}'} + 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] @@ -1350,11 +1427,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/owner@example.com response: - 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}'} + 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}'} headers: - content-length: ['188'] + content-length: ['271'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1362,15 +1439,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/5/addresses + uri: http://localhost:9001/3.0/users/119658018821760135569595540350577395485/addresses response: - 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}'} + 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}'} headers: - content-length: ['390'] + content-length: ['435'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1380,14 +1457,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"ff499aee6387f8f68cdb6fc128c05161cf91c779\"", - "list_id": "foo.example.com", "member_id": 25, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/25", "user": - "http://localhost:9001/3.0/users/5"}], "http_etag": "\"e6b092080585d17443e6e9374b9ee4a87b99167c\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['485'] + content-length: ['593'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1397,15 +1475,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/moderator@example.com", - "delivery_mode": "regular", "email": "moderator@example.com", "http_etag": - "\"89c7506785c867882992ffe6b7d714c495b3a087\"", "list_id": "foo.example.com", - "member_id": 26, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/26", "user": "http://localhost:9001/3.0/users/6"}], - "http_etag": "\"940c6aa66cb06aafe52ca9ca3afe27bd7d59651d\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1415,10 +1493,10 @@ 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}'} + 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] @@ -1430,94 +1508,30 @@ 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"}'} + 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}'} 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/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-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1527,10 +1541,10 @@ 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}'} + 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] @@ -1542,29 +1556,30 @@ 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"}'} + 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: ['1703'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1574,10 +1589,10 @@ 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}'} + 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] @@ -1589,29 +1604,30 @@ 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"}'} + 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: ['1703'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1621,10 +1637,10 @@ 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}'} + 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] @@ -1636,29 +1652,30 @@ 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"}'} + 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: ['1703'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1668,10 +1685,10 @@ 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}'} + 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] @@ -1683,29 +1700,30 @@ 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"}'} + 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: ['1703'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1715,10 +1733,10 @@ 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}'} + 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] @@ -1730,29 +1748,30 @@ 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"}'} + 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: ['1703'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1762,10 +1781,10 @@ 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}'} + 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] @@ -1777,76 +1796,30 @@ 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"}'} + 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: ['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-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1856,10 +1829,10 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1869,10 +1842,10 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1882,10 +1855,10 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1895,10 +1868,10 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1908,10 +1881,58 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + 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 + 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: @@ -1921,10 +1942,10 @@ 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}'} + 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] @@ -1948,14 +1969,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - 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}'} + 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}'} headers: - content-length: ['485'] + content-length: ['597'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1965,15 +1987,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - 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}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1983,10 +2005,10 @@ 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}'} + 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] @@ -2010,14 +2032,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - 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}'} + 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}'} headers: - content-length: ['485'] + content-length: ['597'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2027,15 +2050,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - 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}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2045,10 +2068,10 @@ 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}'} + 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] @@ -2072,14 +2095,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - 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}'} + 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}'} headers: - content-length: ['485'] + content-length: ['597'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2089,15 +2113,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - 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}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2107,10 +2131,10 @@ 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}'} + 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] @@ -2134,14 +2158,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - 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}'} + 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}'} headers: - content-length: ['485'] + content-length: ['597'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2151,15 +2176,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - 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}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2169,10 +2194,10 @@ 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}'} + 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] @@ -2196,14 +2221,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - 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}'} + 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}'} headers: - content-length: ['485'] + content-length: ['597'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2213,15 +2239,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - 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}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2231,10 +2257,10 @@ 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}'} + 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] @@ -2258,14 +2284,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - 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}'} + 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}'} headers: - content-length: ['485'] + content-length: ['597'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2275,15 +2302,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - 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}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2293,10 +2320,10 @@ 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}'} + 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] @@ -2320,14 +2347,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - 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}'} + 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}'} headers: - content-length: ['485'] + content-length: ['597'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -2337,15 +2365,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - 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}'} + 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}'} headers: - content-length: ['497'] + content-length: ['609'] 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 72e20c6..b3c852a 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 '{"http_etag": "\"3dbbbaad592a043938314db0e5249a1ca71d0dc6\"", - "mail-archive": true, "mhonarc": true, "prototype": true}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] 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 '{"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}'} + 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] @@ -34,29 +34,30 @@ 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"}'} + 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}'} headers: - content-length: ['1703'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -66,10 +67,10 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -79,10 +80,10 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -92,10 +93,10 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -105,10 +106,10 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -118,10 +119,10 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -131,10 +132,10 @@ 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}'} + 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] @@ -146,10 +147,10 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -159,29 +160,30 @@ 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"}'} + 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}'} headers: - content-length: ['1703'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -191,14 +193,14 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: mail-archive=False&mhonarc=False + body: prototype=True headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -240,10 +242,123 @@ 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}'} + 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": "\"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}'} + 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-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] @@ -255,10 +370,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/archivers response: - body: {string: !!python/unicode '{"http_etag": "\"f8ecaeeadc4cf5d8900d7c7ed3990e675116ad31\"", - "mail-archive": false, "mhonarc": false, "prototype": true}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['121'] + content-length: ['122'] 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 0ea6e2e..bb4e177 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/list_settings_archiving.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/list_settings_archiving.yaml @@ -6,29 +6,30 @@ 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"}'} + 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}'} headers: - content-length: ['1703'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -38,10 +39,10 @@ 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}'} + 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] @@ -53,29 +54,30 @@ 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"}'} + 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}'} headers: - content-length: ['1703'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -85,10 +87,10 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -98,10 +100,10 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -111,10 +113,10 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -124,10 +126,10 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -137,10 +139,10 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -150,10 +152,10 @@ 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}'} + 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] @@ -165,10 +167,10 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -178,29 +180,30 @@ 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"}'} + 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}'} headers: - content-length: ['1703'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -210,14 +213,14 @@ 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}'} + body: {string: !!python/unicode '{"prototype": false, "mail-archive": false, "mhonarc": + false, "http_etag": "\"e8abfb237f8ebda71c95d59b907288473359bb5a\""}'} headers: - content-length: ['119'] + content-length: ['122'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: - body: mail-archive=False&mhonarc=False&prototype=False + body: !!python/unicode headers: accept-encoding: ['gzip, deflate'] !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] @@ -259,10 +262,10 @@ 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}'} + 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] @@ -274,29 +277,143 @@ 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": - "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"}'} + 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}'} headers: - content-length: ['1704'] + content-length: ['1711'] + 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-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": "\"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}'} + headers: + content-length: ['1711'] 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 db338dd..88a809e 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 '{"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"}'} + 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}'} 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/1'] + location: ['http://localhost:9001/3.0/users/269634616791725371194532853727779327161'] 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 '{"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}'} + 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] @@ -84,7 +84,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1 + uri: http://localhost:9001/3.0/users/269634616791725371194532853727779327161 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 '{"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"}'} + 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}'} 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/2'] + location: ['http://localhost:9001/3.0/users/33609099880032660141775993337468518267'] 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 '{"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}'} + 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] @@ -186,7 +186,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/2 + uri: http://localhost:9001/3.0/users/33609099880032660141775993337468518267 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 b56f34f..b3de60d 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/1/addresses + uri: http://localhost:9001/3.0/users/269634616791725371194532853727779327161/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/1/addresses + uri: http://localhost:9001/3.0/users/269634616791725371194532853727779327161/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 '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"bdcb404b219b82818fb885be00d5339669d6bb3f\"", "is_server_owner": false, - "password": "$6$rounds=689043$d8uskbfd.VfEs4/o$6TxSFOGOXk3EgmvFCnSgf5Mvc0gAzP4AH8V1zcVfdViIz6WfvkKfMB3cY//dRVxhaP5Uzc7MFKy0v6qIjQJJz0", - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} + 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\""}'} headers: - content-length: ['324'] + content-length: ['407'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -45,22 +45,23 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1/addresses + uri: http://localhost:9001/3.0/users/269634616791725371194532853727779327161/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "user2@example.com", "http_etag": - "\"b0525102b3bdf4a45112c8066362f4befcc70581\"", "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/1"}, {"email": "user3@example.com", - "http_etag": "\"9703386a61ef8d7ddc31692b30f65e49b041bab6\"", "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/1"}, - {"email": "user@example.com", "http_etag": "\"21ddd5bb988d468856280278646b1da2d10cfa17\"", - "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/1"}], "http_etag": "\"effec0f366f8fedf2ea3a9dc617f1f4adb3cf783\"", - "start": 0, "total_size": 3}'} + 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}'} headers: - content-length: ['961'] + content-length: ['1096'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -70,12 +71,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/user@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"bdcb404b219b82818fb885be00d5339669d6bb3f\"", "is_server_owner": false, - "password": "$6$rounds=689043$d8uskbfd.VfEs4/o$6TxSFOGOXk3EgmvFCnSgf5Mvc0gAzP4AH8V1zcVfdViIz6WfvkKfMB3cY//dRVxhaP5Uzc7MFKy0v6qIjQJJz0", - "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}'} + 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\""}'} headers: - content-length: ['324'] + content-length: ['407'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -83,22 +84,23 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1/addresses + uri: http://localhost:9001/3.0/users/269634616791725371194532853727779327161/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "user2@example.com", "http_etag": - "\"b0525102b3bdf4a45112c8066362f4befcc70581\"", "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/1"}, {"email": "user3@example.com", - "http_etag": "\"9703386a61ef8d7ddc31692b30f65e49b041bab6\"", "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/1"}, - {"email": "user@example.com", "http_etag": "\"21ddd5bb988d468856280278646b1da2d10cfa17\"", - "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/1"}], "http_etag": "\"effec0f366f8fedf2ea3a9dc617f1f4adb3cf783\"", - "start": 0, "total_size": 3}'} + 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}'} headers: - content-length: ['961'] + content-length: ['1096'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -108,8 +110,8 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/user2@example.com/preferences response: - body: {string: !!python/unicode '{"http_etag": "\"a7666bafbd297a58aa20fc67fed94dc5f29e696c\"", - "self_link": "http://localhost:9001/3.0/addresses/user2@example.com/preferences"}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/addresses/user2@example.com/preferences", + "http_etag": "\"a7666bafbd297a58aa20fc67fed94dc5f29e696c\""}'} headers: content-length: ['143'] content-type: [application/json; charset=utf-8] @@ -121,8 +123,8 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/user3@example.com/preferences response: - body: {string: !!python/unicode '{"http_etag": "\"a99bfb2af4f58fb94d3308d147de24937297fb32\"", - "self_link": "http://localhost:9001/3.0/addresses/user3@example.com/preferences"}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/addresses/user3@example.com/preferences", + "http_etag": "\"a99bfb2af4f58fb94d3308d147de24937297fb32\""}'} headers: content-length: ['143'] content-type: [application/json; charset=utf-8] @@ -134,8 +136,8 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/addresses/user@example.com/preferences response: - body: {string: !!python/unicode '{"http_etag": "\"c557a0cd7d400f67152a6f6e5e2c14858e632323\"", - "self_link": "http://localhost:9001/3.0/addresses/user@example.com/preferences"}'} + body: {string: !!python/unicode '{"self_link": "http://localhost:9001/3.0/addresses/user@example.com/preferences", + "http_etag": "\"c557a0cd7d400f67152a6f6e5e2c14858e632323\""}'} 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 edb7297..976600f 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 '{"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}'} + 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] @@ -22,8 +22,8 @@ method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: - body: {string: !!python/unicode '{"http_etag": "\"c4204dbe9a99ca7d3a7c60421e77df4c4677a708\"", - "token": "31b4a4c7cc943225b231dc2d48e08ed5d513a653", "token_owner": "subscriber"}'} + body: {string: !!python/unicode '{"token_owner": "subscriber", "token": "96204144b2981468fb8bd109497d0d4e31754b54", + "http_etag": "\"76c8d4cc4b9823fc98e065a3484d8b7d40cb5d81\""}'} headers: content-length: ['143'] content-type: [application/json; charset=utf-8] @@ -35,11 +35,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": - "None", "http_etag": "\"634a6cd7b39bfae9ec2f1b738564a17505b55cf9\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/1301", "user_id": 1301}'} + 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\""}'} headers: - content-length: ['218'] + content-length: ['295'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -48,7 +49,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/1301/addresses + uri: http://localhost:9001/3.0/users/249976255305336465573219322396272572389/addresses response: body: {string: !!python/unicode ''} headers: @@ -73,10 +74,10 @@ 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}'} + 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] @@ -88,11 +89,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": - "None", "http_etag": "\"634a6cd7b39bfae9ec2f1b738564a17505b55cf9\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/1301", "user_id": 1301}'} + 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\""}'} headers: - content-length: ['218'] + content-length: ['295'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -100,19 +102,20 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1301/addresses + uri: http://localhost:9001/3.0/users/249976255305336465573219322396272572389/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", - "http_etag": "\"3d50c3f184000579d08c79e79d70cbfd1b5575b2\"", "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/1301", - "verified_on": "2005-08-01T07:49:23"}, {"display_name": "None", "email": "test@example.com", - "http_etag": "\"44a5592fc5c09a33bd1dc47f44700abe6ad05624\"", "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/1301"}], "http_etag": "\"d0a5075374f77035b305dbc765360edc95112305\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['763'] + content-length: ['854'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -123,7 +126,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -136,7 +139,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -172,28 +175,30 @@ 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_size_threshold": 30.0, "display_name": "Foo", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", - "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "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"}'} + 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}'} headers: - content-length: ['1610'] + content-length: ['1710'] 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 73374ee..a9466bf 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 '{"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}'} + 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] @@ -25,7 +25,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1998'] + location: ['http://localhost:9001/3.0/members/176070946160795832655527978896711395718'] 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 '{"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}'} + 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\""}'} headers: content-length: ['294'] content-type: [application/json; charset=utf-8] @@ -49,11 +49,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "display_name": - "None", "http_etag": "\"364d24378962e6605727378714933f5621bf78bf\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/1294", "user_id": 1294}'} + 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\""}'} headers: - content-length: ['218'] + content-length: ['293'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -61,17 +62,16 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1294/addresses + uri: http://localhost:9001/3.0/users/49659196529737298780782683765294265828/addresses response: - body: {string: !!python/unicode '{"entries": [{"display_name": "None", "email": - "test@example.com", "http_etag": "\"cf7cbe211826558a261c282e5e061e6b90c02ef2\"", - "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/1294", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"df6aba510d8b0197cfc51d6fe8f596f767b3af77\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['452'] + content-length: ['500'] 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\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 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\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 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 '{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"40d48fd263ad7fdf3dc6b910f0a9cfc9ca0c9cb2\"", - "list_id": "foo.example.com", "member_id": 1998, "moderation_action": "defer", - "role": "member", "self_link": "http://localhost:9001/3.0/members/1998", "user": - "http://localhost:9001/3.0/users/1294"}'} + 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"}'} headers: - content-length: ['385'] + content-length: ['489'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -123,28 +123,30 @@ 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_size_threshold": 30.0, "display_name": "Foo", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", - "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "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"}'} + 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}'} headers: - content-length: ['1610'] + content-length: ['1710'] 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 0e40f36..4743032 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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] @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1988'] + location: ['http://localhost:9001/3.0/members/322572397442235783740281560971025512213'] 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/1989'] + location: ['http://localhost:9001/3.0/members/131024462628261109555103269537710927983'] 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 '{"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}'} + 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}'} 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 '{"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"}'} + 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}'} 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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] @@ -201,7 +201,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1990'] + location: ['http://localhost:9001/3.0/members/164761258116113511516197573997960304108'] 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/1991'] + location: ['http://localhost:9001/3.0/members/123816691514443031882147828810189332265'] 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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] @@ -305,7 +305,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1992'] + location: ['http://localhost:9001/3.0/members/257417566992622201946073537941972045773'] 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/1993'] + location: ['http://localhost:9001/3.0/members/187175552041447077046293003043385978478'] 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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] @@ -409,7 +409,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1994'] + location: ['http://localhost:9001/3.0/members/90819133429416950145364169301210064002'] 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/1995'] + location: ['http://localhost:9001/3.0/members/48858124496817129429335256965720861375'] 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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] @@ -513,7 +513,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1996'] + location: ['http://localhost:9001/3.0/members/202713025889513206687283619631474918909'] 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/1997'] + location: ['http://localhost:9001/3.0/members/295874250835241538979103988834853365089'] 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 55e645d..18a5e30 100644 --- a/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml +++ b/src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml @@ -19,11 +19,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - 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}'} + 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}'} headers: content-length: ['338'] content-type: [application/json; charset=utf-8] @@ -35,10 +35,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -50,10 +50,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -65,10 +65,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -93,11 +93,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/a_new_list.example.com response: - body: {string: !!python/unicode '{"display_name": "A_new_list", "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}'} + 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\""}'} headers: content-length: ['329'] content-type: [application/json; charset=utf-8] @@ -113,7 +112,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1987'] + location: ['http://localhost:9001/3.0/members/312214886238543516383933760623489325016'] status: {code: 201, message: Created} - request: body: null @@ -122,29 +121,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/a_new_list@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": - "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_size_threshold": 30.0, "display_name": "A_new_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "a_new_list@example.com", - "http_etag": "\"f1a53083e187453ab33815d81a812d05dae0b768\"", "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"}'} + 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}'} headers: - content-length: ['1680'] + content-length: ['1780'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -166,11 +166,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/a_new_list@example.com response: - body: {string: !!python/unicode '{"display_name": "A_new_list", "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}'} + 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\""}'} headers: content-length: ['329'] content-type: [application/json; charset=utf-8] @@ -182,14 +181,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/a_new_list.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/owner@example.com", - "delivery_mode": "regular", "email": "owner@example.com", "http_etag": "\"e4efc799aecc73a9ba69ce64ee1205b72d7f1b2e\"", - "list_id": "a_new_list.example.com", "member_id": 1987, "moderation_action": - "accept", "role": "owner", "self_link": "http://localhost:9001/3.0/members/1987", - "user": "http://localhost:9001/3.0/users/1292"}], "http_etag": "\"3bf706296b8aff1443013d11fb583f63edb53226\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['499'] + content-length: ['604'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -199,12 +199,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - 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}'} + 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}'} headers: content-length: ['434'] content-type: [application/json; charset=utf-8] @@ -252,7 +252,7 @@ uri: http://localhost:9001/3.0/lists response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -288,11 +288,11 @@ 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}'} + 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] @@ -304,10 +304,10 @@ 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"}'} + 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] @@ -319,10 +319,10 @@ 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"}'} + 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] @@ -334,10 +334,10 @@ 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"}'} + 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] @@ -349,13 +349,13 @@ 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": "\"90e1f8cc417b5558f52e802092b29c925634cb6b\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/1302", "user_id": 1302}], - "http_etag": "\"cdc8bcefd5c0b48ecad111c2f82220fb3d0b35cb\"", "start": 0, "total_size": - 1}'} + 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: ['299'] + content-length: ['372'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -365,11 +365,11 @@ 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": - "\"90e1f8cc417b5558f52e802092b29c925634cb6b\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/1302", "user_id": 1302}'} + 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: ['194'] + content-length: ['267'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -395,4 +395,16 @@ 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 7b6b770..a2ca336 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 '{"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"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -60,16 +60,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - 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}'} + 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}'} headers: content-length: ['695'] content-type: [application/json; charset=utf-8] @@ -81,28 +80,30 @@ 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_size_threshold": 30.0, "display_name": "Foo", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", - "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "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"}'} + 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}'} headers: - content-length: ['1610'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -112,28 +113,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/bar@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": - "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_size_threshold": 30.0, "display_name": "Bar", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "bar@example.com", - "http_etag": "\"4c6556b7026da17940db6dca9217f700a9dc3afd\"", "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"}'} + 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}'} headers: - content-length: ['1610'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -143,11 +146,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains response: - 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}'} + 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}'} headers: content-length: ['338'] content-type: [application/json; charset=utf-8] @@ -159,10 +162,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -174,16 +177,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - 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}'} + 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}'} 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 0533ffe..9bbbf60 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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] @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1969'] + location: ['http://localhost:9001/3.0/members/217592933722410974177625516527250620969'] status: {code: 201, message: Created} - request: body: null @@ -75,14 +75,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", - "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"88155c208a1322d908ee7ac6056fdce20900794e\"", - "list_id": "foo.example.com", "member_id": 1969, "moderation_action": "accept", - "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1969", - "user": "http://localhost:9001/3.0/users/1285"}], "http_etag": "\"17e8f89d89c4c229253afe347fb842de685e24c6\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['498'] + content-length: ['603'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -92,14 +93,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", - "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"88155c208a1322d908ee7ac6056fdce20900794e\"", - "list_id": "foo.example.com", "member_id": 1969, "moderation_action": "accept", - "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1969", - "user": "http://localhost:9001/3.0/users/1285"}], "http_etag": "\"17e8f89d89c4c229253afe347fb842de685e24c6\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['498'] + content-length: ['603'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -109,10 +111,10 @@ 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}'} + 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] 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 db202c6..2a8bab3 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,14 +6,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newmod@example.com", - "delivery_mode": "regular", "email": "newmod@example.com", "http_etag": "\"88155c208a1322d908ee7ac6056fdce20900794e\"", - "list_id": "foo.example.com", "member_id": 1969, "moderation_action": "accept", - "role": "moderator", "self_link": "http://localhost:9001/3.0/members/1969", - "user": "http://localhost:9001/3.0/users/1285"}], "http_etag": "\"17e8f89d89c4c229253afe347fb842de685e24c6\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['498'] + content-length: ['603'] 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 b0636bd..f48cbdf 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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] @@ -66,7 +66,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1970'] + location: ['http://localhost:9001/3.0/members/188622085490191637482591042011236060243'] 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 '{"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}'} + 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] @@ -125,10 +125,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} 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 '{"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}'} + 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] @@ -172,7 +172,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1972'] + location: ['http://localhost:9001/3.0/members/324919395264225412157341070815878190166'] 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 '{"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}'} + 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] @@ -231,10 +231,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} 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 '{"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}'} + 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] @@ -278,7 +278,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1975'] + location: ['http://localhost:9001/3.0/members/209207566239469241771749504170815324497'] 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 '{"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}'} + 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] 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 b9ef3d4..4b565a2 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 '{"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}'} + 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] @@ -25,7 +25,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1971'] + location: ['http://localhost:9001/3.0/members/208426025239050114498831343411409955812'] status: {code: 201, message: Created} - request: body: null @@ -34,19 +34,20 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", - "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"513c7d01147ef6fddf1c2d19cd20ccd2f9bdd0db\"", "list_id": "foo.example.com", - "member_id": 1971, "moderation_action": "accept", "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1971", "user": "http://localhost:9001/3.0/users/1287"}, - {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": - "regular", "email": "su@example.com", "http_etag": "\"c31af7c971c9c83870e8d3d3f7c89889e6e19fcb\"", - "list_id": "foo.example.com", "member_id": 1970, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1970", "user": - "http://localhost:9001/3.0/users/1286"}], "http_etag": "\"08b611af5ade0a22ee45dbcbcc24b60cf347297b\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['881'] + content-length: ['1088'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -56,19 +57,20 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", - "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"513c7d01147ef6fddf1c2d19cd20ccd2f9bdd0db\"", "list_id": "foo.example.com", - "member_id": 1971, "moderation_action": "accept", "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1971", "user": "http://localhost:9001/3.0/users/1287"}, - {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": - "regular", "email": "su@example.com", "http_etag": "\"c31af7c971c9c83870e8d3d3f7c89889e6e19fcb\"", - "list_id": "foo.example.com", "member_id": 1970, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1970", "user": - "http://localhost:9001/3.0/users/1286"}], "http_etag": "\"08b611af5ade0a22ee45dbcbcc24b60cf347297b\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['881'] + content-length: ['1088'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -78,10 +80,10 @@ 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}'} + 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] @@ -93,19 +95,20 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", - "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"513c7d01147ef6fddf1c2d19cd20ccd2f9bdd0db\"", "list_id": "foo.example.com", - "member_id": 1971, "moderation_action": "accept", "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1971", "user": "http://localhost:9001/3.0/users/1287"}, - {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": - "regular", "email": "su@example.com", "http_etag": "\"c31af7c971c9c83870e8d3d3f7c89889e6e19fcb\"", - "list_id": "foo.example.com", "member_id": 1970, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1970", "user": - "http://localhost:9001/3.0/users/1286"}], "http_etag": "\"08b611af5ade0a22ee45dbcbcc24b60cf347297b\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['881'] + content-length: ['1088'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -126,14 +129,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"c31af7c971c9c83870e8d3d3f7c89889e6e19fcb\"", - "list_id": "foo.example.com", "member_id": 1970, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1970", "user": - "http://localhost:9001/3.0/users/1286"}], "http_etag": "\"ceaad0fdd6047de716d23fc158c2dbcbb3ef7910\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['486'] + content-length: ['589'] 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 57ddf69..0b614bd 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,14 +6,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"aa48f3a38b3aca7b79147cf59c18f45e72e7a324\"", - "list_id": "foo.example.com", "member_id": 1975, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1975", "user": - "http://localhost:9001/3.0/users/1286"}], "http_etag": "\"5e208f7e1de4d90d63df65d4b7deb0de8b96ffd1\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['486'] + content-length: ['589'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -23,10 +24,10 @@ 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}'} + 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] @@ -38,11 +39,11 @@ 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": - "\"a3f0c3dc174b9c4fc253d4787d37de5df178d4c2\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/1286", "user_id": 1286}'} + 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: ['194'] + content-length: ['267'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -50,15 +51,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1286/addresses + uri: http://localhost:9001/3.0/users/5117085839622367451321194806276776678/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": - "\"9ac7d43d92b3c701fb5041d65a0f9fca6380b613\"", "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/1286"}], "http_etag": "\"484dad2ec4bf3cd0102e524d3ebb4750f5054ed0\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['384'] + content-length: ['424'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -68,14 +69,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"aa48f3a38b3aca7b79147cf59c18f45e72e7a324\"", - "list_id": "foo.example.com", "member_id": 1975, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1975", "user": - "http://localhost:9001/3.0/users/1286"}], "http_etag": "\"5e208f7e1de4d90d63df65d4b7deb0de8b96ffd1\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['486'] + content-length: ['589'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -86,7 +88,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -98,10 +100,10 @@ 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}'} + 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] @@ -117,7 +119,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1976'] + location: ['http://localhost:9001/3.0/members/244922391252601567386261954557419196010'] status: {code: 201, message: Created} - request: body: null @@ -126,19 +128,20 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", - "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"4e87176a1aadd0e18d121fafb51a15678b95de98\"", "list_id": "foo.example.com", - "member_id": 1976, "moderation_action": "accept", "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1976", "user": "http://localhost:9001/3.0/users/1287"}, - {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": - "regular", "email": "su@example.com", "http_etag": "\"aa48f3a38b3aca7b79147cf59c18f45e72e7a324\"", - "list_id": "foo.example.com", "member_id": 1975, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1975", "user": - "http://localhost:9001/3.0/users/1286"}], "http_etag": "\"83c8a71ab5ceaca0703a8c8ad1ec500f1b98e6dc\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['881'] + content-length: ['1088'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -148,19 +151,20 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", - "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"4e87176a1aadd0e18d121fafb51a15678b95de98\"", "list_id": "foo.example.com", - "member_id": 1976, "moderation_action": "accept", "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1976", "user": "http://localhost:9001/3.0/users/1287"}, - {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": - "regular", "email": "su@example.com", "http_etag": "\"aa48f3a38b3aca7b79147cf59c18f45e72e7a324\"", - "list_id": "foo.example.com", "member_id": 1975, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1975", "user": - "http://localhost:9001/3.0/users/1286"}], "http_etag": "\"83c8a71ab5ceaca0703a8c8ad1ec500f1b98e6dc\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['881'] + content-length: ['1088'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -170,10 +174,10 @@ 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}'} + 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] @@ -185,11 +189,11 @@ 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": - "\"a3f0c3dc174b9c4fc253d4787d37de5df178d4c2\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/1286", "user_id": 1286}'} + 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: ['194'] + content-length: ['267'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -197,15 +201,15 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1286/addresses + uri: http://localhost:9001/3.0/users/5117085839622367451321194806276776678/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "su@example.com", "http_etag": - "\"9ac7d43d92b3c701fb5041d65a0f9fca6380b613\"", "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/1286"}], "http_etag": "\"484dad2ec4bf3cd0102e524d3ebb4750f5054ed0\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['384'] + content-length: ['424'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -215,19 +219,20 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", - "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"4e87176a1aadd0e18d121fafb51a15678b95de98\"", "list_id": "foo.example.com", - "member_id": 1976, "moderation_action": "accept", "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1976", "user": "http://localhost:9001/3.0/users/1287"}, - {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": - "regular", "email": "su@example.com", "http_etag": "\"aa48f3a38b3aca7b79147cf59c18f45e72e7a324\"", - "list_id": "foo.example.com", "member_id": 1975, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1975", "user": - "http://localhost:9001/3.0/users/1286"}], "http_etag": "\"83c8a71ab5ceaca0703a8c8ad1ec500f1b98e6dc\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['881'] + content-length: ['1088'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -238,7 +243,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -250,10 +255,10 @@ 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}'} + 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] @@ -265,19 +270,20 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/newowner@example.com", - "delivery_mode": "regular", "email": "newowner@example.com", "http_etag": - "\"4e87176a1aadd0e18d121fafb51a15678b95de98\"", "list_id": "foo.example.com", - "member_id": 1976, "moderation_action": "accept", "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1976", "user": "http://localhost:9001/3.0/users/1287"}, - {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": - "regular", "email": "su@example.com", "http_etag": "\"aa48f3a38b3aca7b79147cf59c18f45e72e7a324\"", - "list_id": "foo.example.com", "member_id": 1975, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1975", "user": - "http://localhost:9001/3.0/users/1286"}], "http_etag": "\"83c8a71ab5ceaca0703a8c8ad1ec500f1b98e6dc\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['881'] + content-length: ['1088'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -298,14 +304,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"aa48f3a38b3aca7b79147cf59c18f45e72e7a324\"", - "list_id": "foo.example.com", "member_id": 1975, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1975", "user": - "http://localhost:9001/3.0/users/1286"}], "http_etag": "\"5e208f7e1de4d90d63df65d4b7deb0de8b96ffd1\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['486'] + content-length: ['589'] 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 46f7e05..daa0098 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 '{"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}'} + 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] @@ -25,7 +25,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1973'] + location: ['http://localhost:9001/3.0/members/153156657658094898671844683251085811566'] status: {code: 201, message: Created} - request: body: null @@ -34,19 +34,20 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/otherowner@example.com", - "delivery_mode": "regular", "email": "otherowner@example.com", "http_etag": - "\"d4fa1b0fcc23be64297b1987fe4584ea219084fa\"", "list_id": "foo.example.com", - "member_id": 1973, "moderation_action": "accept", "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1973", "user": "http://localhost:9001/3.0/users/1288"}, - {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": - "regular", "email": "su@example.com", "http_etag": "\"6e7e02142cfa8adb0a490ab591f8842391f2c6b0\"", - "list_id": "foo.example.com", "member_id": 1972, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1972", "user": - "http://localhost:9001/3.0/users/1286"}], "http_etag": "\"a735154395fdcaf0e92089be3fce01b3814cd132\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['885'] + content-length: ['1092'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -56,19 +57,20 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/otherowner@example.com", - "delivery_mode": "regular", "email": "otherowner@example.com", "http_etag": - "\"d4fa1b0fcc23be64297b1987fe4584ea219084fa\"", "list_id": "foo.example.com", - "member_id": 1973, "moderation_action": "accept", "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1973", "user": "http://localhost:9001/3.0/users/1288"}, - {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": - "regular", "email": "su@example.com", "http_etag": "\"6e7e02142cfa8adb0a490ab591f8842391f2c6b0\"", - "list_id": "foo.example.com", "member_id": 1972, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1972", "user": - "http://localhost:9001/3.0/users/1286"}], "http_etag": "\"a735154395fdcaf0e92089be3fce01b3814cd132\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['885'] + content-length: ['1092'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -78,10 +80,10 @@ 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}'} + 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] @@ -93,19 +95,20 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/otherowner@example.com", - "delivery_mode": "regular", "email": "otherowner@example.com", "http_etag": - "\"d4fa1b0fcc23be64297b1987fe4584ea219084fa\"", "list_id": "foo.example.com", - "member_id": 1973, "moderation_action": "accept", "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1973", "user": "http://localhost:9001/3.0/users/1288"}, - {"address": "http://localhost:9001/3.0/addresses/su@example.com", "delivery_mode": - "regular", "email": "su@example.com", "http_etag": "\"6e7e02142cfa8adb0a490ab591f8842391f2c6b0\"", - "list_id": "foo.example.com", "member_id": 1972, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1972", "user": - "http://localhost:9001/3.0/users/1286"}], "http_etag": "\"a735154395fdcaf0e92089be3fce01b3814cd132\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['885'] + content-length: ['1092'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -126,15 +129,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/otherowner@example.com", - "delivery_mode": "regular", "email": "otherowner@example.com", "http_etag": - "\"d4fa1b0fcc23be64297b1987fe4584ea219084fa\"", "list_id": "foo.example.com", - "member_id": 1973, "moderation_action": "accept", "role": "owner", "self_link": - "http://localhost:9001/3.0/members/1973", "user": "http://localhost:9001/3.0/users/1288"}], - "http_etag": "\"143926307aa1047b8f13d199a774054f769e87de\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['502'] + content-length: ['606'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -148,7 +151,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1974'] + location: ['http://localhost:9001/3.0/members/244725134132832545035753189004994556171'] status: {code: 201, message: Created} - request: body: null @@ -168,14 +171,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"2968cd1943529ec88cdbfaffec2ca89404fd7584\"", - "list_id": "foo.example.com", "member_id": 1974, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1974", "user": - "http://localhost:9001/3.0/users/1286"}], "http_etag": "\"7d0d9a959e571eedab7dacbba202d1f5697143ef\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['486'] + content-length: ['589'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -185,14 +189,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"2968cd1943529ec88cdbfaffec2ca89404fd7584\"", - "list_id": "foo.example.com", "member_id": 1974, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1974", "user": - "http://localhost:9001/3.0/users/1286"}], "http_etag": "\"7d0d9a959e571eedab7dacbba202d1f5697143ef\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['486'] + content-length: ['589'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -202,10 +207,10 @@ 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}'} + 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] @@ -217,14 +222,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"2968cd1943529ec88cdbfaffec2ca89404fd7584\"", - "list_id": "foo.example.com", "member_id": 1974, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1974", "user": - "http://localhost:9001/3.0/users/1286"}], "http_etag": "\"7d0d9a959e571eedab7dacbba202d1f5697143ef\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['486'] + content-length: ['589'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -234,14 +240,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/su@example.com", - "delivery_mode": "regular", "email": "su@example.com", "http_etag": "\"2968cd1943529ec88cdbfaffec2ca89404fd7584\"", - "list_id": "foo.example.com", "member_id": 1974, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1974", "user": - "http://localhost:9001/3.0/users/1286"}], "http_etag": "\"7d0d9a959e571eedab7dacbba202d1f5697143ef\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['486'] + content-length: ['589'] 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 9c47bad..3483af1 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 '{"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"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -47,11 +47,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - 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}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -63,29 +62,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@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": - "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_size_threshold": 30.0, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"2bde68eb63d937c0756c16b54af67529ad981268\"", "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"}'} + 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}'} headers: - content-length: ['1670'] + content-length: ['1770'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -120,11 +120,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: - 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}'} + 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\""}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] @@ -136,29 +135,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@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": - "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_size_threshold": 30.0, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"aa85d534bd36628a1266c50632dec84d5cdad0d6\"", "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"}'} + 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}'} headers: - content-length: ['1710'] + content-length: ['1810'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -184,7 +184,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/1280'] + location: ['http://localhost:9001/3.0/users/96791921126719655979375158091200338260'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org @@ -192,7 +192,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/1280/addresses + uri: http://localhost:9001/3.0/users/96791921126719655979375158091200338260/addresses response: body: {string: !!python/unicode ''} headers: @@ -218,7 +218,7 @@ uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -230,11 +230,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: - body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "fritz@example.org", - "http_etag": "\"dd7cd98a3fbaaf296ea4dcf35b6e0510dfe73b4d\"", "list_id": "moderate_subs.example.com", - "token": "006d37626465296e5e4a0398a5170abf8c448bf5", "token_owner": "moderator", - "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"f903f6f7dbb5e56ff9d3360b5080d7729fc539b9\"", - "start": 0, "total_size": 1}'} + 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}'} headers: content-length: ['392'] content-type: [application/json; charset=utf-8] @@ -245,7 +245,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/006d37626465296e5e4a0398a5170abf8c448bf5 + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/ac60df21ec5786d6719e9ee44fe699956edf5178 response: body: {string: !!python/unicode ''} headers: @@ -278,7 +278,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1280 + uri: http://localhost:9001/3.0/users/96791921126719655979375158091200338260 response: body: {string: !!python/unicode ''} headers: @@ -315,10 +315,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -343,11 +343,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - 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}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -359,29 +358,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@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": - "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_size_threshold": 30.0, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"2bde68eb63d937c0756c16b54af67529ad981268\"", "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"}'} + 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}'} headers: - content-length: ['1670'] + content-length: ['1770'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -416,11 +416,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: - 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}'} + 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\""}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] @@ -432,29 +431,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@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": - "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_size_threshold": 30.0, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"aa85d534bd36628a1266c50632dec84d5cdad0d6\"", "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"}'} + 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}'} headers: - content-length: ['1710'] + content-length: ['1810'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -480,7 +480,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/1281'] + location: ['http://localhost:9001/3.0/users/241613429579098249340279334636589859291'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org @@ -488,7 +488,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/1281/addresses + uri: http://localhost:9001/3.0/users/241613429579098249340279334636589859291/addresses response: body: {string: !!python/unicode ''} headers: @@ -514,7 +514,7 @@ uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -527,7 +527,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -559,7 +559,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1281 + uri: http://localhost:9001/3.0/users/241613429579098249340279334636589859291 response: body: {string: !!python/unicode ''} headers: @@ -596,10 +596,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -624,11 +624,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - 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}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -640,29 +639,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@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": - "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_size_threshold": 30.0, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"2bde68eb63d937c0756c16b54af67529ad981268\"", "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"}'} + 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}'} headers: - content-length: ['1670'] + content-length: ['1770'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -697,11 +697,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: - 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}'} + 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\""}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] @@ -713,29 +712,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@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": - "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_size_threshold": 30.0, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"aa85d534bd36628a1266c50632dec84d5cdad0d6\"", "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"}'} + 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}'} headers: - content-length: ['1710'] + content-length: ['1810'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -761,7 +761,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/1282'] + location: ['http://localhost:9001/3.0/users/339630114468406331612844785559321586734'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org @@ -769,7 +769,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/1282/addresses + uri: http://localhost:9001/3.0/users/339630114468406331612844785559321586734/addresses response: body: {string: !!python/unicode ''} headers: @@ -795,7 +795,7 @@ uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -807,11 +807,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: - body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", - "http_etag": "\"97e554e0a4fceea7cc0b6cd4deac3f2f1f95cb53\"", "list_id": "moderate_subs.example.com", - "token": "9afe5553277c0115910b17f8262dbe5a3b44f1d1", "token_owner": "moderator", - "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"bfafc60e71306deac28db4aa681d5d02c39e0714\"", - "start": 0, "total_size": 1}'} + 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}'} headers: content-length: ['391'] content-type: [application/json; charset=utf-8] @@ -822,7 +822,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/9afe5553277c0115910b17f8262dbe5a3b44f1d1 + uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/requests/899cd84e06385452730f2c963d3b5937e49b15d6 response: body: {string: !!python/unicode ''} headers: @@ -855,7 +855,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1282 + uri: http://localhost:9001/3.0/users/339630114468406331612844785559321586734 response: body: {string: !!python/unicode ''} headers: @@ -892,10 +892,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -920,11 +920,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - 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}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -936,29 +935,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@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": - "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_size_threshold": 30.0, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"2bde68eb63d937c0756c16b54af67529ad981268\"", "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"}'} + 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}'} headers: - content-length: ['1670'] + content-length: ['1770'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -993,11 +993,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: - 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}'} + 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\""}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] @@ -1009,29 +1008,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@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": - "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_size_threshold": 30.0, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"aa85d534bd36628a1266c50632dec84d5cdad0d6\"", "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"}'} + 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}'} headers: - content-length: ['1710'] + content-length: ['1810'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1057,7 +1057,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/1283'] + location: ['http://localhost:9001/3.0/users/202170133294496996778634614357049624013'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org @@ -1065,7 +1065,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/1283/addresses + uri: http://localhost:9001/3.0/users/202170133294496996778634614357049624013/addresses response: body: {string: !!python/unicode ''} headers: @@ -1091,7 +1091,7 @@ uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -1104,7 +1104,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -1136,7 +1136,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1283 + uri: http://localhost:9001/3.0/users/202170133294496996778634614357049624013 response: body: {string: !!python/unicode ''} headers: @@ -1173,10 +1173,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -1201,11 +1201,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - 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}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -1217,29 +1216,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@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": - "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_size_threshold": 30.0, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"2bde68eb63d937c0756c16b54af67529ad981268\"", "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"}'} + 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}'} headers: - content-length: ['1670'] + content-length: ['1770'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1274,11 +1274,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: - 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}'} + 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\""}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] @@ -1290,29 +1289,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@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": - "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_size_threshold": 30.0, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"aa85d534bd36628a1266c50632dec84d5cdad0d6\"", "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"}'} + 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}'} headers: - content-length: ['1710'] + content-length: ['1810'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1338,7 +1338,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/users/1284'] + location: ['http://localhost:9001/3.0/users/290722913735219944815132205053379070116'] status: {code: 201, message: Created} - request: body: email=fritz%40example.org @@ -1346,7 +1346,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/1284/addresses + uri: http://localhost:9001/3.0/users/290722913735219944815132205053379070116/addresses response: body: {string: !!python/unicode ''} headers: @@ -1372,7 +1372,7 @@ uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -1385,7 +1385,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -1417,7 +1417,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1284 + uri: http://localhost:9001/3.0/users/290722913735219944815132205053379070116 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 3fb981c..fb91919 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,11 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: - 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}'} + 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\""}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] @@ -22,12 +21,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"6cb191c4493da81a759d55a4bbf47be6d37a2b8a\"", "is_server_owner": false, - "password": "$6$rounds=624686$JK03tCAFeY0ScCEH$JJvn3m1dGdMOEz/jcT2m1EAMtf4dcXMzgnPIDxgLbfl5JehIDPWbzVyURIgq/xKRU9lj3zwcfFQJvhEe9apDm0", - "self_link": "http://localhost:9001/3.0/users/1282", "user_id": 1282}'} + 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\""}'} headers: - content-length: ['330'] + content-length: ['407'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -35,19 +34,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1282/addresses + uri: http://localhost:9001/3.0/users/339630114468406331612844785559321586734/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"36e56fc2ef1a1566f2a5fa5769907b59cce867b7\"", "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/1282", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"cb6913fb78aa2cefbacb5e9896525aa2c6c5d763\"", - "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/1282"}], "http_etag": "\"7a5a45cc3d752a7313dc0f4a5bb2d225562ceb6c\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['718'] + content-length: ['809'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -58,7 +57,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -71,7 +70,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -84,8 +83,8 @@ method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: - body: {string: !!python/unicode '{"http_etag": "\"8999ea419360226638cfdbc64fe0db44d666c6b7\"", - "token": "9afe5553277c0115910b17f8262dbe5a3b44f1d1", "token_owner": "moderator"}'} + body: {string: !!python/unicode '{"token_owner": "moderator", "token": "899cd84e06385452730f2c963d3b5937e49b15d6", + "http_etag": "\"3e19260904a52f27a754fe3d1a8a6dc6307f1ef6\""}'} headers: content-length: ['142'] content-type: [application/json; charset=utf-8] @@ -98,7 +97,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/roster/member response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -110,11 +109,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: - body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "test@example.com", - "http_etag": "\"97e554e0a4fceea7cc0b6cd4deac3f2f1f95cb53\"", "list_id": "moderate_subs.example.com", - "token": "9afe5553277c0115910b17f8262dbe5a3b44f1d1", "token_owner": "moderator", - "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"bfafc60e71306deac28db4aa681d5d02c39e0714\"", - "start": 0, "total_size": 1}'} + 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}'} headers: content-length: ['391'] content-type: [application/json; charset=utf-8] @@ -126,11 +125,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: - 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}'} + 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\""}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] @@ -142,12 +140,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"6cb191c4493da81a759d55a4bbf47be6d37a2b8a\"", "is_server_owner": false, - "password": "$6$rounds=624686$JK03tCAFeY0ScCEH$JJvn3m1dGdMOEz/jcT2m1EAMtf4dcXMzgnPIDxgLbfl5JehIDPWbzVyURIgq/xKRU9lj3zwcfFQJvhEe9apDm0", - "self_link": "http://localhost:9001/3.0/users/1282", "user_id": 1282}'} + 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\""}'} headers: - content-length: ['330'] + content-length: ['407'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -155,20 +153,20 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1282/addresses + uri: http://localhost:9001/3.0/users/339630114468406331612844785559321586734/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"36e56fc2ef1a1566f2a5fa5769907b59cce867b7\"", "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/1282", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"990ec917dac82a64b83120c622499a3cdde42e5e\"", - "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/1282", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"def753dbbd372f2735a5324fd64c83bd67dcccaf\"", "start": 0, "total_size": - 2}'} + 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}'} headers: - content-length: ['756'] + content-length: ['854'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -179,7 +177,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -192,7 +190,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -228,29 +226,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@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": - "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_size_threshold": 30.0, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"30b3d82df7a0440cdccf5a11cf2f54175da65805\"", "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"}'} + 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}'} headers: - content-length: ['1711'] + content-length: ['1811'] 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 3758e87..e1c7e40 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,11 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: - 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}'} + 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\""}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] @@ -22,12 +21,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"3dddfe92ca5256c96bcf31738fdc16ebb6385c08\"", "is_server_owner": false, - "password": "$6$rounds=623002$88AuGHAluHJzcvwc$SHJ9uCPEfVMbd/.VPS0a9liKR2O.uEcfd9S8c/Io4/gpXEN2Eya2OmxhT/gNdIiboRdS08rb1qCnOvYMRjboN0", - "self_link": "http://localhost:9001/3.0/users/1280", "user_id": 1280}'} + 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\""}'} headers: - content-length: ['330'] + content-length: ['405'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -35,19 +34,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1280/addresses + uri: http://localhost:9001/3.0/users/96791921126719655979375158091200338260/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"a0b30f8a0ab2e7d98ad7fbcdbec4fb719a895f85\"", "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/1280", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"6780bebe8736c9ef566514695f4999e602162dea\"", - "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/1280"}], "http_etag": "\"8c89abfa1a70fd9f8d6b817f5d9e6b7e67463392\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['718'] + content-length: ['807'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -58,7 +57,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -71,7 +70,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -84,8 +83,8 @@ method: !!python/unicode POST uri: http://localhost:9001/3.0/members response: - body: {string: !!python/unicode '{"http_etag": "\"85c7250516e2563472a806800cde872046a74f8b\"", - "token": "006d37626465296e5e4a0398a5170abf8c448bf5", "token_owner": "moderator"}'} + body: {string: !!python/unicode '{"token_owner": "moderator", "token": "ac60df21ec5786d6719e9ee44fe699956edf5178", + "http_etag": "\"6e4a181a1bf2d49ad104a6ea7d925d1f12be6f3e\""}'} headers: content-length: ['142'] content-type: [application/json; charset=utf-8] @@ -98,7 +97,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/roster/member response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -110,11 +109,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@example.com/requests response: - body: {string: !!python/unicode '{"entries": [{"display_name": "", "email": "fritz@example.org", - "http_etag": "\"dd7cd98a3fbaaf296ea4dcf35b6e0510dfe73b4d\"", "list_id": "moderate_subs.example.com", - "token": "006d37626465296e5e4a0398a5170abf8c448bf5", "token_owner": "moderator", - "type": "subscription", "when": "2005-08-01T07:49:23"}], "http_etag": "\"f903f6f7dbb5e56ff9d3360b5080d7729fc539b9\"", - "start": 0, "total_size": 1}'} + 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}'} headers: content-length: ['392'] content-type: [application/json; charset=utf-8] @@ -126,11 +125,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs.example.com response: - 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}'} + 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\""}'} headers: content-length: ['344'] content-type: [application/json; charset=utf-8] @@ -142,12 +140,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"3dddfe92ca5256c96bcf31738fdc16ebb6385c08\"", "is_server_owner": false, - "password": "$6$rounds=623002$88AuGHAluHJzcvwc$SHJ9uCPEfVMbd/.VPS0a9liKR2O.uEcfd9S8c/Io4/gpXEN2Eya2OmxhT/gNdIiboRdS08rb1qCnOvYMRjboN0", - "self_link": "http://localhost:9001/3.0/users/1280", "user_id": 1280}'} + 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\""}'} headers: - content-length: ['330'] + content-length: ['405'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -155,19 +153,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1280/addresses + uri: http://localhost:9001/3.0/users/96791921126719655979375158091200338260/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"a0b30f8a0ab2e7d98ad7fbcdbec4fb719a895f85\"", "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/1280", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"6780bebe8736c9ef566514695f4999e602162dea\"", - "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/1280"}], "http_etag": "\"8c89abfa1a70fd9f8d6b817f5d9e6b7e67463392\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['718'] + content-length: ['807'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -178,7 +176,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -191,7 +189,7 @@ uri: http://localhost:9001/3.0/lists/moderate_subs.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -227,29 +225,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/moderate_subs@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": - "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_size_threshold": 30.0, "display_name": "Moderate_subs", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "moderate_subs@example.com", - "http_etag": "\"30b3d82df7a0440cdccf5a11cf2f54175da65805\"", "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"}'} + 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}'} headers: - content-length: ['1711'] + content-length: ['1811'] 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 6349d34..837e99e 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,11 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - 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}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -22,12 +21,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"6b9bf13155868dd4b3654df95b77ed5972fb897c\"", "is_server_owner": false, - "password": "$6$rounds=673966$ai9jeyedjz5bkwPF$n8YtbF4AcsT0bY7M3HWUSF183kj3zXFz4iXiHT2NNYNer0C8irVR2FzZMFhUKNHuXGWcOG1IiW/9xHmX83rfw.", - "self_link": "http://localhost:9001/3.0/users/1283", "user_id": 1283}'} + 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\""}'} headers: - content-length: ['330'] + content-length: ['407'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -35,19 +34,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1283/addresses + uri: http://localhost:9001/3.0/users/202170133294496996778634614357049624013/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"73d4497b4ccd8377d46178906c6852778e1914c9\"", "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/1283", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"34992364f11b8277da245c36a3bd11c84b7ab5d0\"", - "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/1283"}], "http_etag": "\"ad7506209bb0f13b727b7162ab227228f7af6f3f\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['718'] + content-length: ['809'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -58,7 +57,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -71,7 +70,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -87,7 +86,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1968'] + location: ['http://localhost:9001/3.0/members/331029687773641540583132883540249942744'] status: {code: 201, message: Created} - request: body: null @@ -96,14 +95,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"5afc527fdcb3b0d3ca230349f67ad8d6c5e2821d\"", - "list_id": "open_list.example.com", "member_id": 1968, "moderation_action": - "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/1968", - "user": "http://localhost:9001/3.0/users/1283"}], "http_etag": "\"160131585b4ae5db09d3ad9a7a46d42dd37a04ae\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['496'] + content-length: ['601'] 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\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -126,11 +126,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - 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}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -142,12 +141,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"6b9bf13155868dd4b3654df95b77ed5972fb897c\"", "is_server_owner": false, - "password": "$6$rounds=673966$ai9jeyedjz5bkwPF$n8YtbF4AcsT0bY7M3HWUSF183kj3zXFz4iXiHT2NNYNer0C8irVR2FzZMFhUKNHuXGWcOG1IiW/9xHmX83rfw.", - "self_link": "http://localhost:9001/3.0/users/1283", "user_id": 1283}'} + 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\""}'} headers: - content-length: ['330'] + content-length: ['407'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -155,20 +154,20 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1283/addresses + uri: http://localhost:9001/3.0/users/202170133294496996778634614357049624013/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"73d4497b4ccd8377d46178906c6852778e1914c9\"", "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/1283", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"582e27f7747435d3fef998ef3b3c32f71d3596f9\"", - "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/1283", "verified_on": "2005-08-01T07:49:23"}], - "http_etag": "\"88e5fa4d8be19012b6c528ff80d5d85013598b9c\"", "start": 0, "total_size": - 2}'} + 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}'} headers: - content-length: ['756'] + content-length: ['854'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -179,7 +178,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -192,7 +191,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -204,13 +203,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 '{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"5afc527fdcb3b0d3ca230349f67ad8d6c5e2821d\"", - "list_id": "open_list.example.com", "member_id": 1968, "moderation_action": - "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/1968", - "user": "http://localhost:9001/3.0/users/1283"}'} + 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"}'} headers: - content-length: ['391'] + content-length: ['496'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -220,29 +219,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@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": - "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_size_threshold": 30.0, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"a740af21268a8ea9831a971aa83ab61bc3768cc1\"", "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"}'} + 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}'} headers: - content-length: ['1667'] + content-length: ['1767'] 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 a348386..3a386fc 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,11 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - 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}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -22,12 +21,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"da81fca3ec392848c4d4982758137c81be4d01c6\"", "is_server_owner": false, - "password": "$6$rounds=665366$7snUramcoXLslim1$871ryaBeFZwy7ScDOoWQKYcGtB.M5iAYuHaTknatGb9klolfQWclb/2QcMztjMiSPCJQd2IzmG0oeYURG485k/", - "self_link": "http://localhost:9001/3.0/users/1281", "user_id": 1281}'} + 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\""}'} headers: - content-length: ['330'] + content-length: ['407'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -35,19 +34,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1281/addresses + uri: http://localhost:9001/3.0/users/241613429579098249340279334636589859291/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"beb2a1f203d47dec4e7e5f00a18b758da558edef\"", "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/1281", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"4020be5df6e5fe7a87e4ba961cca9f0d3c81956a\"", - "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/1281"}], "http_etag": "\"334ff06e73cec1d77279303824d1c8e498a6e237\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['718'] + content-length: ['809'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -58,7 +57,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -71,7 +70,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -87,7 +86,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1967'] + location: ['http://localhost:9001/3.0/members/216173104267917222268317198945296080619'] status: {code: 201, message: Created} - request: body: null @@ -96,14 +95,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", - "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"598305882588045b38f4d1c5b5575ef83d5e8f04\"", - "list_id": "open_list.example.com", "member_id": 1967, "moderation_action": - "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/1967", - "user": "http://localhost:9001/3.0/users/1281"}], "http_etag": "\"5c46eb1c7bca5bd767726966cc1ca2398c1f6c61\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['498'] + content-length: ['603'] 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\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -126,11 +126,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - 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}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -142,12 +141,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"da81fca3ec392848c4d4982758137c81be4d01c6\"", "is_server_owner": false, - "password": "$6$rounds=665366$7snUramcoXLslim1$871ryaBeFZwy7ScDOoWQKYcGtB.M5iAYuHaTknatGb9klolfQWclb/2QcMztjMiSPCJQd2IzmG0oeYURG485k/", - "self_link": "http://localhost:9001/3.0/users/1281", "user_id": 1281}'} + 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\""}'} headers: - content-length: ['330'] + content-length: ['407'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -155,19 +154,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1281/addresses + uri: http://localhost:9001/3.0/users/241613429579098249340279334636589859291/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"beb2a1f203d47dec4e7e5f00a18b758da558edef\"", "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/1281", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"4020be5df6e5fe7a87e4ba961cca9f0d3c81956a\"", - "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/1281"}], "http_etag": "\"334ff06e73cec1d77279303824d1c8e498a6e237\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['718'] + content-length: ['809'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -178,7 +177,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -191,7 +190,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -215,13 +214,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 '{"address": "http://localhost:9001/3.0/addresses/fritz@example.org", - "delivery_mode": "regular", "email": "fritz@example.org", "http_etag": "\"598305882588045b38f4d1c5b5575ef83d5e8f04\"", - "list_id": "open_list.example.com", "member_id": 1967, "moderation_action": - "defer", "role": "member", "self_link": "http://localhost:9001/3.0/members/1967", - "user": "http://localhost:9001/3.0/users/1281"}'} + 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"}'} headers: - content-length: ['393'] + content-length: ['498'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -231,29 +230,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@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": - "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_size_threshold": 30.0, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"a740af21268a8ea9831a971aa83ab61bc3768cc1\"", "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"}'} + 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}'} headers: - content-length: ['1667'] + content-length: ['1767'] 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 678a5a8..d41a21d 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,11 +6,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - 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}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -22,12 +21,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"07c16fe3d9ccee59849e265df292733300037063\"", "is_server_owner": false, - "password": "$6$rounds=716160$iwzGgOb32dfcTeeM$DUBtSOWyh9hBUJy6rvwdNivF2lB801tZYt2N6Ld8AN2EPhSEw/1iMbNxlGfe9jpY1DTw/bTNHh45BscXbWk1O1", - "self_link": "http://localhost:9001/3.0/users/1284", "user_id": 1284}'} + 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\""}'} headers: - content-length: ['330'] + content-length: ['407'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -35,19 +34,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1284/addresses + uri: http://localhost:9001/3.0/users/290722913735219944815132205053379070116/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"62c6f1bec9a3fe3ac6e59eba16156b14d0ae4677\"", "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/1284", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"81a0180d9913c6f644dc3381d7fa49497a54ec59\"", - "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/1284"}], "http_etag": "\"ebadc6d48fd3bacd6172472667662bec2fb6409b\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['718'] + content-length: ['809'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -58,7 +57,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -71,7 +70,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -84,7 +83,7 @@ uri: http://localhost:9001/3.0/lists/open_list@example.com/roster/member response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -97,7 +96,7 @@ uri: http://localhost:9001/3.0/lists/open_list@example.com/requests response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -109,11 +108,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list.example.com response: - 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}'} + 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\""}'} headers: content-length: ['324'] content-type: [application/json; charset=utf-8] @@ -125,12 +123,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"07c16fe3d9ccee59849e265df292733300037063\"", "is_server_owner": false, - "password": "$6$rounds=716160$iwzGgOb32dfcTeeM$DUBtSOWyh9hBUJy6rvwdNivF2lB801tZYt2N6Ld8AN2EPhSEw/1iMbNxlGfe9jpY1DTw/bTNHh45BscXbWk1O1", - "self_link": "http://localhost:9001/3.0/users/1284", "user_id": 1284}'} + 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\""}'} headers: - content-length: ['330'] + content-length: ['407'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -138,19 +136,19 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1284/addresses + uri: http://localhost:9001/3.0/users/290722913735219944815132205053379070116/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "fritz@example.org", "http_etag": - "\"62c6f1bec9a3fe3ac6e59eba16156b14d0ae4677\"", "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/1284", "verified_on": "2005-08-01T07:49:23"}, - {"email": "test@example.com", "http_etag": "\"81a0180d9913c6f644dc3381d7fa49497a54ec59\"", - "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/1284"}], "http_etag": "\"ebadc6d48fd3bacd6172472667662bec2fb6409b\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['718'] + content-length: ['809'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -161,7 +159,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -174,7 +172,7 @@ uri: http://localhost:9001/3.0/lists/open_list.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -210,29 +208,30 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/open_list@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": - "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_size_threshold": 30.0, "display_name": "Open_list", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "open_list@example.com", - "http_etag": "\"a740af21268a8ea9831a971aa83ab61bc3768cc1\"", "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"}'} + 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}'} headers: - content-length: ['1667'] + content-length: ['1767'] 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 51bd2ea..d865b20 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 '{"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"}'} + 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}'} 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 '{"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}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -75,18 +75,19 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"04f62e7d955f8957478df966ffe3cd3295a44b12\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/1292", "user_id": 1292}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"65d8b6ad97e078c1e2e8a63169e1984f9cf3207b\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/1293", - "user_id": 1293}, {"created_on": "2005-08-01T07:49:23", "display_name": "None", - "http_etag": "\"364d24378962e6605727378714933f5621bf78bf\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/1294", "user_id": 1294}], - "http_etag": "\"787f878a0b1374b1101dd6f73dbc1fa9e1b1bc29\"", "start": 0, "total_size": - 3}'} + 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}'} headers: - content-length: ['715'] + content-length: ['922'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -94,7 +95,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1292 + uri: http://localhost:9001/3.0/users/154977237945172734425636786183823384410 response: body: {string: !!python/unicode ''} headers: @@ -105,7 +106,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1293 + uri: http://localhost:9001/3.0/users/256572591597747152960213855004434194126 response: body: {string: !!python/unicode ''} headers: @@ -116,7 +117,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1294 + uri: http://localhost:9001/3.0/users/267349403024214827376211786438876723553 response: body: {string: !!python/unicode ''} headers: @@ -153,10 +154,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -181,119 +182,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/lists/foo@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 GET - uri: http://localhost:9001/3.0/users - response: - body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"4c0c75d51847868a3652d775c93fbe7136bf41a0\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/1295", "user_id": 1295}], - "http_etag": "\"a3c24d3e1fc7ab136682eb9966c0fd9ffc226734\"", "start": 0, "total_size": - 1}'} - headers: - content-length: ['299'] - 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/users/1295 - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - status: {code: 204, message: No Content} -- request: - body: mail_host=example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/domains - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/domains/example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/domains/example.com - response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} - headers: - content-length: ['233'] - content-type: [application/json; charset=utf-8] - status: {code: 200, message: OK} -- request: - body: fqdn_listname=foo%40example.com - headers: - accept-encoding: ['gzip, deflate'] - !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] - method: !!python/unicode POST - uri: http://localhost:9001/3.0/lists - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - location: ['http://localhost:9001/3.0/lists/foo.example.com'] - status: {code: 201, message: Created} -- request: - body: null - headers: - accept-encoding: ['gzip, deflate'] - method: !!python/unicode GET - uri: http://localhost:9001/3.0/lists - response: - 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}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -317,7 +211,7 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -353,10 +247,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -381,12 +275,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - 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}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -409,13 +303,13 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"4e34688b92fe421f2442b9819987dc27f39a637c\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/1296", "user_id": 1296}], - "http_etag": "\"55eadb7de9ab02291e613b3d906e2e9857ca5811\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['299'] + content-length: ['376'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -423,7 +317,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1296 + uri: http://localhost:9001/3.0/users/235229553521251808881452796003246347517 response: body: {string: !!python/unicode ''} headers: @@ -460,10 +354,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -488,12 +382,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - 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}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -516,14 +410,13 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"4b9ab8ce6037e115e2a4192eb07773aaea396d91\"", "is_server_owner": - false, "password": "$6$rounds=662267$8otqupHMgcXivGG9$PL.qGYnboHQwQ5MewIZ8DqIrOcb1xu5zUkLdCcLhRCj3PzdwkwwFyorFabOU1TwASLYLfthzEegdI8cUZFoUE0", - "self_link": "http://localhost:9001/3.0/users/1297", "user_id": 1297}], "http_etag": - "\"48d627eee9c0c16245ba10e2104768826280c28f\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['435'] + content-length: ['512'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -531,7 +424,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1297 + uri: http://localhost:9001/3.0/users/227071033173330356076343977945960464597 response: body: {string: !!python/unicode ''} headers: @@ -568,10 +461,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -596,12 +489,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - 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}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -624,14 +517,13 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"53c1c3019e005cfb50dd7397e1483498d4018a74\"", "is_server_owner": - false, "password": "$6$rounds=649705$gGnX160MBIKhAs8w$D0o.zYoLG7I0TbOShTcPoxBYQ67o1vLDwUUYoIBkF/jXkA9XJSZlMhaPQlesUJl2pZQLQghDcAodMYf5rmZQB/", - "self_link": "http://localhost:9001/3.0/users/1298", "user_id": 1298}], "http_etag": - "\"cd4806d7931e31a34665e613aedab951977dc484\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['435'] + content-length: ['512'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -639,7 +531,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1298 + uri: http://localhost:9001/3.0/users/106149173311714208856455475045690630968 response: body: {string: !!python/unicode ''} headers: @@ -676,10 +568,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -704,10 +596,10 @@ 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}'} + 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] @@ -732,7 +624,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -745,7 +637,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -769,28 +661,30 @@ 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_size_threshold": 30.0, "display_name": "Foo", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", - "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "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"}'} + 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}'} headers: - content-length: ['1610'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -800,12 +694,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - 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}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -829,7 +723,7 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -865,10 +759,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -893,10 +787,10 @@ 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}'} + 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] @@ -908,28 +802,30 @@ 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_size_threshold": 30.0, "display_name": "Foo", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", - "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "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"}'} + 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}'} headers: - content-length: ['1610'] + content-length: ['1710'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -939,12 +835,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - 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}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -968,7 +864,7 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -1004,10 +900,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -1032,12 +928,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - 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}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -1060,14 +956,13 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"eb2fefc60af48e4c2c503926b7f5e0dd19753beb\"", "is_server_owner": - false, "password": "$6$rounds=661841$AQbebehLIFgVwRLG$9t/G50GwA5WQePUEOaPRRL0XnFCUTc3w7Xfc2HoUBI//APzcWYmipOHLjXsbrcy6lK/wqcROuIpScs6vQSTS10", - "self_link": "http://localhost:9001/3.0/users/1299", "user_id": 1299}], "http_etag": - "\"45a0f7d51b7051573a99c07d14e02531e3ee5815\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['435'] + content-length: ['512'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1075,7 +970,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1299 + uri: http://localhost:9001/3.0/users/277639646177770772088721462718867375005 response: body: {string: !!python/unicode ''} headers: @@ -1112,10 +1007,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -1140,12 +1035,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - 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}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -1168,14 +1063,13 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"436ba78df608edc4844f4cecb072f770f0d3e32a\"", "is_server_owner": - false, "password": "$6$rounds=710974$zPwPBBSA/ofbubU9$2sJuOq8zWqdnGOON0zjvTptaIUMlQCcDfLjus9Sw9rm5iaUkbP/tbMhZtZTKfBhnoDZcC/v9qyEays4ueoSQO0", - "self_link": "http://localhost:9001/3.0/users/1300", "user_id": 1300}], "http_etag": - "\"47bc65e7071e472e56d5d2657e88c2d023da5271\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['435'] + content-length: ['512'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1183,7 +1077,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1300 + uri: http://localhost:9001/3.0/users/164317161666474507724910689624126470016 response: body: {string: !!python/unicode ''} headers: @@ -1220,10 +1114,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -1248,12 +1142,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - 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}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -1276,13 +1170,14 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "display_name": "None", "http_etag": "\"634a6cd7b39bfae9ec2f1b738564a17505b55cf9\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/1301", - "user_id": 1301}], "http_etag": "\"0b53e7421a7b1c3f9165a063715dae37d4c60415\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['323'] + content-length: ['400'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -1290,7 +1185,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1301 + uri: http://localhost:9001/3.0/users/249976255305336465573219322396272572389 response: body: {string: !!python/unicode ''} headers: @@ -1327,10 +1222,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -1355,12 +1250,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - 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}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -1384,7 +1279,7 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -1400,4 +1295,112 @@ headers: content-length: ['0'] status: {code: 204, message: No Content} +- request: + body: mail_host=example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/domains + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/domains/example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode '{"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}'} + headers: + content-length: ['233'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: fqdn_listname=foo%40example.com + headers: + accept-encoding: ['gzip, deflate'] + !!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded] + method: !!python/unicode POST + uri: http://localhost:9001/3.0/lists + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + location: ['http://localhost:9001/3.0/lists/foo.example.com'] + status: {code: 201, message: Created} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode GET + uri: http://localhost:9001/3.0/lists + 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}'} + headers: + content-length: ['399'] + content-type: [application/json; charset=utf-8] + status: {code: 200, message: OK} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/lists/foo@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 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}'} + headers: + content-length: ['398'] + 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/users/49659196529737298780782683765294265828 + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} +- request: + body: null + headers: + accept-encoding: ['gzip, deflate'] + method: !!python/unicode DELETE + uri: http://localhost:9001/3.0/domains/example.com + response: + body: {string: !!python/unicode ''} + headers: + content-length: ['0'] + status: {code: 204, message: No Content} version: 1 diff --git a/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_anonymous.yaml b/src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_anonymous.yaml index 2e723bc..14bce80 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 '{"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}'} + 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] @@ -21,28 +21,30 @@ 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_size_threshold": 30.0, "display_name": "Foo", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", - "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "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"}'} + 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}'} headers: - content-length: ['1610'] + content-length: ['1710'] 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 f3bba8f..5766a77 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 '{"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}'} + 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] @@ -25,7 +25,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/2000'] + location: ['http://localhost:9001/3.0/members/326753637169964871293249887076308640949'] 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 '{"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}'} + 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] @@ -49,11 +49,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"4e34688b92fe421f2442b9819987dc27f39a637c\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/1296", "user_id": 1296}'} + 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}'} headers: - content-length: ['194'] + content-length: ['271'] 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/1296/addresses + uri: http://localhost:9001/3.0/users/235229553521251808881452796003246347517/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"616f3091b63c08b23a7f68f2b22ed2c04ffc7353\"", "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/1296"}], "http_etag": "\"b0559e29dfc8816c864095b8c8e52dfdee4f3ccb\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['390'] + content-length: ['432'] 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\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -92,14 +92,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"9450306983a92d0877cc4fbfdf09cfc1f779b345\"", - "list_id": "foo.example.com", "member_id": 2000, "moderation_action": "accept", - "role": "moderator", "self_link": "http://localhost:9001/3.0/members/2000", - "user": "http://localhost:9001/3.0/users/1296"}], "http_etag": "\"32e3930836a5394935aae4a757307adc538f34ae\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['494'] + content-length: ['599'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -121,28 +122,30 @@ 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_size_threshold": 30.0, "display_name": "Foo", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", - "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "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"}'} + 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}'} headers: - content-length: ['1610'] + content-length: ['1710'] 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 1a1ae8d..c858393 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 '{"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}'} + 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] @@ -25,7 +25,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/1999'] + location: ['http://localhost:9001/3.0/members/182356393697607771516616589496707541646'] 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 '{"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}'} + 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] @@ -49,11 +49,11 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"4c0c75d51847868a3652d775c93fbe7136bf41a0\"", "is_server_owner": false, - "self_link": "http://localhost:9001/3.0/users/1295", "user_id": 1295}'} + 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}'} headers: - content-length: ['194'] + content-length: ['271'] 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/1295/addresses + uri: http://localhost:9001/3.0/users/154977237945172734425636786183823384410/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"321f1b6c758f97bd6d8e56e7304bc2d6f36f658b\"", "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/1295"}], "http_etag": "\"7bd090b0b681e52143f55f1dff1efa68afae86f3\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['390'] + content-length: ['432'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -79,14 +79,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"9193f1e2dc805920e16f777878f8c00f79c7496a\"", - "list_id": "foo.example.com", "member_id": 1999, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/1999", "user": - "http://localhost:9001/3.0/users/1295"}], "http_etag": "\"3323ce03440a2e3c89027f9b25d03e2e586cb535\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['490'] + content-length: ['595'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -97,7 +98,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -121,28 +122,30 @@ 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_size_threshold": 30.0, "display_name": "Foo", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", - "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "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"}'} + 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}'} headers: - content-length: ['1610'] + content-length: ['1710'] 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 2749ff3..1e8c5d1 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 '{"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}'} + 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] @@ -21,10 +21,10 @@ 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}'} + 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] @@ -49,7 +49,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 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\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -86,28 +86,30 @@ 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_size_threshold": 30.0, "display_name": "Foo", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", - "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "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"}'} + 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}'} headers: - content-length: ['1610'] + content-length: ['1710'] 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 d3167c4..d9171d8 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/1299'] + location: ['http://localhost:9001/3.0/users/277639646177770772088721462718867375005'] 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 '{"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}'} + 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] @@ -38,7 +38,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/2003'] + location: ['http://localhost:9001/3.0/members/301613334055470765680090501616260994778'] 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 '{"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}'} + 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] @@ -62,12 +62,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"eb2fefc60af48e4c2c503926b7f5e0dd19753beb\"", "is_server_owner": false, - "password": "$6$rounds=661841$AQbebehLIFgVwRLG$9t/G50GwA5WQePUEOaPRRL0XnFCUTc3w7Xfc2HoUBI//APzcWYmipOHLjXsbrcy6lK/wqcROuIpScs6vQSTS10", - "self_link": "http://localhost:9001/3.0/users/1299", "user_id": 1299}'} + 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\""}'} headers: - content-length: ['330'] + content-length: ['407'] 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/1299/addresses + uri: http://localhost:9001/3.0/users/277639646177770772088721462718867375005/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"db5ac1011300f4338032c89c733b8b6aff9cc55a\"", "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/1299"}], "http_etag": "\"56b8a48142fe1137a1095d12d8cb760ee32ed813\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['390'] + content-length: ['432'] 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\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -106,14 +106,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"b9a9bcf7b527a8764c7a0c010e132dc942d08509\"", - "list_id": "foo.example.com", "member_id": 2003, "moderation_action": "accept", - "role": "moderator", "self_link": "http://localhost:9001/3.0/members/2003", - "user": "http://localhost:9001/3.0/users/1299"}], "http_etag": "\"4cb703edd9ae4192d4f40173084b78888e9ac620\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['494'] + content-length: ['599'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -135,28 +136,30 @@ 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_size_threshold": 30.0, "display_name": "Foo", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", - "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "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"}'} + 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}'} headers: - content-length: ['1610'] + content-length: ['1710'] 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 8e35ace..680df88 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/1300'] + location: ['http://localhost:9001/3.0/users/164317161666474507724910689624126470016'] 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 '{"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}'} + 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] @@ -38,7 +38,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/2004'] + location: ['http://localhost:9001/3.0/members/39033482061987340414885949206989609343'] 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 '{"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}'} + 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] @@ -62,12 +62,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"436ba78df608edc4844f4cecb072f770f0d3e32a\"", "is_server_owner": false, - "password": "$6$rounds=710974$zPwPBBSA/ofbubU9$2sJuOq8zWqdnGOON0zjvTptaIUMlQCcDfLjus9Sw9rm5iaUkbP/tbMhZtZTKfBhnoDZcC/v9qyEays4ueoSQO0", - "self_link": "http://localhost:9001/3.0/users/1300", "user_id": 1300}'} + 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\""}'} headers: - content-length: ['330'] + content-length: ['407'] 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/1300/addresses + uri: http://localhost:9001/3.0/users/164317161666474507724910689624126470016/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"3247e1f838cd6755a4c1c0f79de12a497526ff85\"", "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/1300"}], "http_etag": "\"7f70efd9761ce4fe985deaf1b7a578bb002341d4\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['390'] + content-length: ['432'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -93,14 +93,15 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/test@example.com", - "delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"8d4117e3eb8ba6a3fc6b5b2ad83653963138949c\"", - "list_id": "foo.example.com", "member_id": 2004, "moderation_action": "accept", - "role": "owner", "self_link": "http://localhost:9001/3.0/members/2004", "user": - "http://localhost:9001/3.0/users/1300"}], "http_etag": "\"943b01a7d8546b5e4361f6cdd389b142b0b17360\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['490'] + content-length: ['593'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -111,7 +112,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -135,28 +136,30 @@ 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_size_threshold": 30.0, "display_name": "Foo", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", - "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "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"}'} + 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}'} headers: - content-length: ['1610'] + content-length: ['1710'] 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 c93bf2b..844456f 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/1297'] + location: ['http://localhost:9001/3.0/users/227071033173330356076343977945960464597'] 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/1297/addresses + uri: http://localhost:9001/3.0/users/227071033173330356076343977945960464597/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 '{"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}'} + 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] @@ -62,7 +62,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/2001'] + location: ['http://localhost:9001/3.0/members/10855622268540069689520155883454460072'] 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 '{"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}'} + 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] @@ -86,12 +86,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"4b9ab8ce6037e115e2a4192eb07773aaea396d91\"", "is_server_owner": false, - "password": "$6$rounds=662267$8otqupHMgcXivGG9$PL.qGYnboHQwQ5MewIZ8DqIrOcb1xu5zUkLdCcLhRCj3PzdwkwwFyorFabOU1TwASLYLfthzEegdI8cUZFoUE0", - "self_link": "http://localhost:9001/3.0/users/1297", "user_id": 1297}'} + 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\""}'} headers: - content-length: ['330'] + content-length: ['407'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -99,19 +99,20 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1297/addresses + uri: http://localhost:9001/3.0/users/227071033173330356076343977945960464597/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", - "http_etag": "\"797856f25f3d545b5b56ae9711f70023a0c87412\"", "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/1297", - "verified_on": "2005-08-01T07:49:23"}, {"email": "test@example.com", "http_etag": - "\"7587a54322ed9fc0eb619cda0910be590835c3fd\"", "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/1297"}], "http_etag": "\"3323543051215ffe66929af18cbc1b4991082e43\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['739'] + content-length: ['830'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -122,7 +123,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -134,15 +135,16 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "delivery_mode": "regular", "email": "anotheremail@example.com", "http_etag": - "\"6d2f06ba817f776f463dced4265c89ecfe19e6c4\"", "list_id": "foo.example.com", - "member_id": 2001, "moderation_action": "accept", "role": "moderator", "self_link": - "http://localhost:9001/3.0/members/2001", "user": "http://localhost:9001/3.0/users/1297"}], - "http_etag": "\"973f708b05a4e55a1244421e3a7a407db6b74ef4\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['510'] + content-length: ['613'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -176,28 +178,30 @@ 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_size_threshold": 30.0, "display_name": "Foo", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", - "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "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"}'} + 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}'} headers: - content-length: ['1610'] + content-length: ['1710'] 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 aa74997..76f3de3 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/1298'] + location: ['http://localhost:9001/3.0/users/106149173311714208856455475045690630968'] 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/1298/addresses + uri: http://localhost:9001/3.0/users/106149173311714208856455475045690630968/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 '{"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}'} + 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] @@ -62,7 +62,7 @@ body: {string: !!python/unicode ''} headers: content-length: ['0'] - location: ['http://localhost:9001/3.0/members/2002'] + location: ['http://localhost:9001/3.0/members/183648215442057221627118914147618309383'] 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 '{"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}'} + 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] @@ -86,12 +86,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users/test@example.com response: - body: {string: !!python/unicode '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"53c1c3019e005cfb50dd7397e1483498d4018a74\"", "is_server_owner": false, - "password": "$6$rounds=649705$gGnX160MBIKhAs8w$D0o.zYoLG7I0TbOShTcPoxBYQ67o1vLDwUUYoIBkF/jXkA9XJSZlMhaPQlesUJl2pZQLQghDcAodMYf5rmZQB/", - "self_link": "http://localhost:9001/3.0/users/1298", "user_id": 1298}'} + 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\""}'} headers: - content-length: ['330'] + content-length: ['407'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -99,19 +99,20 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode GET - uri: http://localhost:9001/3.0/users/1298/addresses + uri: http://localhost:9001/3.0/users/106149173311714208856455475045690630968/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "anotheremail@example.com", - "http_etag": "\"ef195a05a43fc68a81691e1a5bbc54263846858e\"", "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/1298", - "verified_on": "2005-08-01T07:49:23"}, {"email": "test@example.com", "http_etag": - "\"7fefa11918eff42c60c15e46fbeac723580314f5\"", "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/1298"}], "http_etag": "\"c596ae610d0d3119e7c75298372ddb8f2d2818d0\"", - "start": 0, "total_size": 2}'} + 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}'} headers: - content-length: ['739'] + content-length: ['830'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -121,15 +122,16 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner response: - body: {string: !!python/unicode '{"entries": [{"address": "http://localhost:9001/3.0/addresses/anotheremail@example.com", - "delivery_mode": "regular", "email": "anotheremail@example.com", "http_etag": - "\"2a945828c5f7dff8f8bca3e46dc223b593180cbd\"", "list_id": "foo.example.com", - "member_id": 2002, "moderation_action": "accept", "role": "owner", "self_link": - "http://localhost:9001/3.0/members/2002", "user": "http://localhost:9001/3.0/users/1298"}], - "http_etag": "\"5e4e5832ca1eb6777ab42bb4b98a5912b3c1534c\"", "start": 0, "total_size": - 1}'} + 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}'} headers: - content-length: ['506'] + content-length: ['611'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -140,7 +142,7 @@ uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8] @@ -176,28 +178,30 @@ 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_size_threshold": 30.0, "display_name": "Foo", "filter_content": - false, "first_strip_reply_to": false, "fqdn_listname": "foo@example.com", - "http_etag": "\"f24060c0fd5762da0d17009ff8b6f303bee3cd2f\"", "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"}'} + 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}'} headers: - content-length: ['1610'] + content-length: ['1710'] 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 ca8772d..2932726 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 '{"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"}'} + 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}'} 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/1291'] + location: ['http://localhost:9001/3.0/users/273064373037540593226240697006570925556'] 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 '{"created_on": "2005-08-01T07:49:23", "http_etag": - "\"804e6b6ec3189523cff49eb1e12395a3fbf37290\"", "is_server_owner": false, - "password": "$6$rounds=720162$.Gg5WmC4f7Jjlamx$hUIqliTwcGedXbg0luyyKE.Aymw1LYsY9DXygAI6VxdCaZxrXUK5gdPDei8Cv1pmt6IRo7HsU42Xt.lZXaOkZ0", - "self_link": "http://localhost:9001/3.0/users/1291", "user_id": 1291}'} + 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\""}'} headers: - content-length: ['330'] + content-length: ['407'] 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/1291/addresses + uri: http://localhost:9001/3.0/users/273064373037540593226240697006570925556/addresses response: - body: {string: !!python/unicode '{"entries": [{"email": "test@example.com", "http_etag": - "\"2b1008db4fceb6c7c9a895c2273285e3947859fa\"", "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/1291"}], "http_etag": "\"82f3460b604e5fac6d29375a58cbaf59867e85cf\"", - "start": 0, "total_size": 1}'} + 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}'} headers: - content-length: ['390'] + content-length: ['432'] 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 '{"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}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -119,26 +119,37 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/users response: - body: {string: !!python/unicode '{"entries": [{"created_on": "2005-08-01T07:49:23", - "http_etag": "\"2ecd057a685f08051df47efa2a3e7bd5b3475e6a\"", "is_server_owner": - false, "self_link": "http://localhost:9001/3.0/users/1285", "user_id": 1285}, - {"created_on": "2005-08-01T07:49:23", "http_etag": "\"a3f0c3dc174b9c4fc253d4787d37de5df178d4c2\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/1286", - "user_id": 1286}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"b0fd1b412ec8ca275e0bff7720ac9faf1f8c3c06\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/1287", - "user_id": 1287}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"b4227b126d2a85e1ba67f32c0984fa4bf8d3f0d8\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/1288", - "user_id": 1288}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"0695cfe16d46b9083370652e1bd5e081b06f90a6\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/1289", - "user_id": 1289}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"1bc854b35b090c5f74b51f8d83f071df284919d4\"", - "is_server_owner": false, "self_link": "http://localhost:9001/3.0/users/1290", - "user_id": 1290}, {"created_on": "2005-08-01T07:49:23", "http_etag": "\"804e6b6ec3189523cff49eb1e12395a3fbf37290\"", - "is_server_owner": false, "password": "$6$rounds=720162$.Gg5WmC4f7Jjlamx$hUIqliTwcGedXbg0luyyKE.Aymw1LYsY9DXygAI6VxdCaZxrXUK5gdPDei8Cv1pmt6IRo7HsU42Xt.lZXaOkZ0", - "self_link": "http://localhost:9001/3.0/users/1291", "user_id": 1291}], "http_etag": - "\"016838a383653046fe9c860c4189280659482f6d\"", "start": 0, "total_size": - 7}'} + 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}'} headers: - content-length: ['1611'] + content-length: ['2742'] content-type: [application/json; charset=utf-8] status: {code: 200, message: OK} - request: @@ -146,7 +157,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1285 + uri: http://localhost:9001/3.0/users/111061026562997396199598994611156325102 response: body: {string: !!python/unicode ''} headers: @@ -157,7 +168,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1286 + uri: http://localhost:9001/3.0/users/116764389630457561498636887095357470529 response: body: {string: !!python/unicode ''} headers: @@ -168,7 +179,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1287 + uri: http://localhost:9001/3.0/users/134288675315380756818195510721043802893 response: body: {string: !!python/unicode ''} headers: @@ -179,7 +190,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1288 + uri: http://localhost:9001/3.0/users/146431844970303104352830739674036461405 response: body: {string: !!python/unicode ''} headers: @@ -190,7 +201,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1289 + uri: http://localhost:9001/3.0/users/169168431446964903948492359219344461178 response: body: {string: !!python/unicode ''} headers: @@ -201,7 +212,7 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1290 + uri: http://localhost:9001/3.0/users/240284639311521038462825177405843176306 response: body: {string: !!python/unicode ''} headers: @@ -212,7 +223,29 @@ headers: accept-encoding: ['gzip, deflate'] method: !!python/unicode DELETE - uri: http://localhost:9001/3.0/users/1291 + 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 response: body: {string: !!python/unicode ''} headers: @@ -249,10 +282,10 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/domains/example.com response: - body: {string: !!python/unicode '{"base_url": "http://example.com", "description": - null, "http_etag": "\"e736411818ff1815ca83575e0958c38c5188f0a4\"", "mail_host": - "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com", - "url_host": "example.com"}'} + 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}'} headers: content-length: ['233'] content-type: [application/json; charset=utf-8] @@ -277,12 +310,12 @@ method: !!python/unicode GET uri: http://localhost:9001/3.0/lists response: - 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}'} + 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}'} headers: content-length: ['399'] content-type: [application/json; charset=utf-8] @@ -306,7 +339,7 @@ uri: http://localhost:9001/3.0/users response: body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"", - "start": 0, "total_size": 0}'} + "total_size": 0, "start": 0}'} headers: content-length: ['90'] content-type: [application/json; charset=utf-8]