Commit 1ae1a9ca authored by Aurélien Bompard's avatar Aurélien Bompard

Avoid systematic test failure when HyperKitty is installed

parent 90682f10
......@@ -22,6 +22,8 @@ Django test settings for postorius project.
from settings import *
TESTING = True
# Mailman API credentials for testing
MAILMAN_REST_API_URL = 'http://localhost:9001'
MAILMAN_REST_API_USER = 'restadmin'
......
interactions:
- request:
body: !!python/unicode mail_host=example.com
body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
!!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
method: !!python/unicode POST
!!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 ''}
......@@ -17,7 +17,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
......@@ -27,11 +27,11 @@ interactions:
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: !!python/unicode fqdn_listname=foo%40example.com
body: !!python/unicode '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
!!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 ''}
......@@ -44,7 +44,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
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",
......@@ -59,7 +59,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
......@@ -72,7 +72,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
......@@ -85,20 +85,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
uri: http://localhost:9001/3.0/lists/foo.example.com/member/testadmin@example.com
response:
body: {string: !!python/unicode '{}'}
headers:
content-length: ['2']
content-type: [application/json; charset=UTF-8]
vary: [Accept]
status: {code: 404, message: Not Found}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
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":
......@@ -114,25 +101,51 @@ interactions:
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
"digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
"", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"",
"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", "moderator_password": null, "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",
"", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
"include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
"last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
"foo", "mail_host": "example.com", "moderator_password": null, "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", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
content-length: ['1777']
content-length: ['1789']
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
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/member/testadmin@example.com
response:
body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"}
headers:
content-length: ['32']
content-type: [application/json; charset=UTF-8]
vary: [Accept]
status: {code: 404, message: Not Found}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
......@@ -148,7 +161,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode DELETE
method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
......@@ -159,7 +172,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
......
interactions:
- request:
body: !!python/unicode mail_host=example.com
body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
!!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
method: !!python/unicode POST
!!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 ''}
......@@ -17,7 +17,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
......@@ -27,11 +27,11 @@ interactions:
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: !!python/unicode fqdn_listname=foo%40example.com
body: !!python/unicode '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
!!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 ''}
......@@ -44,7 +44,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
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",
......@@ -59,7 +59,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/owner
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
......@@ -72,7 +72,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/roster/moderator
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
......@@ -85,20 +85,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com
response:
body: {string: !!python/unicode '{}'}
headers:
content-length: ['2']
content-type: [application/json; charset=UTF-8]
vary: [Accept]
status: {code: 404, message: Not Found}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
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":
......@@ -114,25 +101,51 @@ interactions:
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
"digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
"", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"",
"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", "moderator_password": null, "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",
"", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
"include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
"last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
"foo", "mail_host": "example.com", "moderator_password": null, "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", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
content-length: ['1777']
content-length: ['1789']
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
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/lists/foo.example.com/member/test@example.com
response:
body: {string: !!python/unicode "{\n \"title\": \"404 Not Found\"\n}"}
headers:
content-length: ['32']
content-type: [application/json; charset=UTF-8]
vary: [Accept]
status: {code: 404, message: Not Found}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
......@@ -148,7 +161,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode DELETE
method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
......@@ -159,7 +172,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
......
interactions:
- request:
body: !!python/unicode mail_host=example.com
body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
!!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
method: !!python/unicode POST
!!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 ''}
......@@ -17,7 +17,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
......@@ -27,11 +27,11 @@ interactions:
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: !!python/unicode fqdn_listname=foo%40example.com
body: !!python/unicode '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
!!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 ''}
......@@ -44,7 +44,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
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",
......@@ -59,7 +59,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
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":
......@@ -75,25 +75,38 @@ interactions:
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
"digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
"", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"",
"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", "moderator_password": null, "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",
"", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
"include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
"last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
"foo", "mail_host": "example.com", "moderator_password": null, "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", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
content-length: ['1777']
content-length: ['1789']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
......@@ -109,7 +122,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode DELETE
method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
......@@ -120,7 +133,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
......
interactions:
- request:
body: !!python/unicode mail_host=example.com
body: !!python/unicode 'mail_host=example.com'
headers:
accept-encoding: ['gzip, deflate']
!!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
method: !!python/unicode POST
!!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 ''}
......@@ -17,7 +17,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode '{"description": null, "http_etag": "\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"",
......@@ -27,11 +27,11 @@ interactions:
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: !!python/unicode fqdn_listname=foo%40example.com
body: !!python/unicode '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
!!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 ''}
......@@ -44,7 +44,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
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",
......@@ -59,7 +59,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
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":
......@@ -75,25 +75,38 @@ interactions:
true, "digest_size_threshold": 30.0, "digest_volume_frequency": "monthly",
"digests_enabled": true, "display_name": "Foo", "filter_content": false, "first_strip_reply_to":
false, "footer_uri": "", "fqdn_listname": "foo@example.com", "goodbye_message_uri":
"", "header_uri": "", "http_etag": "\"9c0047d131626776afd9a0187d91b2a4a7ea0b15\"",
"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", "moderator_password": null, "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",
"", "header_uri": "", "http_etag": "\"e752899e2a568ccaad1d891e72c137a4cbc82d5d\"",
"include_rfc2369_headers": true, "info": "", "join_address": "foo-join@example.com",
"last_post_at": null, "leave_address": "foo-leave@example.com", "list_name":
"foo", "mail_host": "example.com", "moderator_password": null, "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", "send_welcome_message": true, "subject_prefix":
"[Foo] ", "subscription_policy": "confirm", "volume": 1, "welcome_message_uri":
""}'}
headers:
content-length: ['1777']
content-length: ['1789']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
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/domains
response:
body: {string: !!python/unicode '{"entries": [{"description": null, "http_etag":
......@@ -109,7 +122,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode DELETE
method: !!python/unicode 'DELETE'
uri: http://localhost:9001/3.0/domains/example.com
response:
body: {string: !!python/unicode ''}
......@@ -120,7 +133,7 @@ interactions:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
method: !!python/unicode 'GET'
uri: http://localhost:9001/3.0/users
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
......
......@@ -207,6 +207,11 @@ class ListSummaryView(MailingListView):
'hyperkitty_enabled': False}
if self.mailing_list.settings['archive_policy'] == 'public':
data['public_archive'] = True
if getattr(settings, 'TESTING') and \
'hyperkitty' not in settings.INSTALLED_APPS:
# avoid systematic test failure when HyperKitty is installed
# (missing VCR request, see below).
list(self.mailing_list.archivers)
if ('hyperkitty' in settings.INSTALLED_APPS and
'hyperkitty' in self.mailing_list.archivers and
self.mailing_list.archivers['hyperkitty']):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment