Avoid systematic test failure when HyperKitty is installed
1 parent 90682f1 commit 1ae1a9ca1b936ea7a1eae4ad2bd093032266e38f
@Aurélien Bompard Aurélien Bompard authored on 16 Jan 2017
Showing 23 changed files
View
2
■■■
example_project/test_settings.py
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'
View
200
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_owner.yaml
interactions:
- request:
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
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'
uri: http://localhost:9001/3.0/domains
response:
body: {string: !!python/unicode ''}
headers:
- request:
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\"",
"mail_host": "example.com", "self_link": "http://localhost:9001/3.0/domains/example.com"}'}
content-length: ['172']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
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
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'
uri: http://localhost:9001/3.0/lists
response:
body: {string: !!python/unicode ''}
headers:
- 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
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
"http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com",
content-length: ['294']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: !!python/unicode list_id=foo.example.com&role=owner&subscriber=test%40example.com
headers:
accept-encoding: ['gzip, deflate']
!!python/unicode content-type: [!!python/unicode application/x-www-form-urlencoded]
method: !!python/unicode POST
body: !!python/unicode 'list_id=foo.example.com&role=owner&subscriber=test%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/members
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
content-type: [application/json; charset=UTF-8]
location: ['http://localhost:9001/3.0/members/106']
location: ['http://localhost:9001/3.0/members/1']
status: {code: 201, message: Created}
- 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
response:
body: {string: !!python/unicode '{"display_name": "Foo", "fqdn_listname": "foo@example.com",
"http_etag": "\"698a819bbb6b902096a8c5543cc7fac2328960d5\"", "list_id": "foo.example.com",
- 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/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": "\"036726233bb1a48a3f8941c9c68c77df2a8f932b\"",
"list_id": "foo.example.com", "member_id": 106, "moderation_action": "accept",
"role": "owner", "self_link": "http://localhost:9001/3.0/members/106", "user":
"http://localhost:9001/3.0/users/107"}], "http_etag": "\"83af61ed8296effe598084427cffe32dc1281120\"",
"delivery_mode": "regular", "email": "test@example.com", "http_etag": "\"280631e7c916d2dddaadf4477f35e055c3462a7b\"",
"list_id": "foo.example.com", "member_id": 1, "moderation_action": "accept",
"role": "owner", "self_link": "http://localhost:9001/3.0/members/1", "user":
"http://localhost:9001/3.0/users/1"}], "http_etag": "\"de19d701a9a5dd37e79c4f14566d2f264485b6d4\"",
"start": 0, "total_size": 1}'}
headers:
content-length: ['487']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
content-length: ['481']
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/roster/moderator
response:
body: {string: !!python/unicode '{"http_etag": "\"32223434a0f3af4cdc4673d1fbc5bac1f6d98fd3\"",
"start": 0, "total_size": 0}'}
- request:
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":
true, "admin_notify_mchanges": false, "administrivia": true, "advertised":
"", "digest_header_uri": "", "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, "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-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: null
headers:
accept-encoding: ['gzip, deflate']
method: !!python/unicode GET
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'
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":
"\"d150abd34fabbcef42a2c654bfac81aa04ea4d6f\"", "mail_host": "example.com",
- request:
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 ''}
headers:
- request:
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 '{"entries": [{"created_on": "2005-08-01T07:49:23",
"http_etag": "\"82f042707bad8528d367f38ace98ee0d7ff05e57\"", "is_server_owner":
false, "self_link": "http://localhost:9001/3.0/users/107", "user_id": 107}],
"http_etag": "\"626cd7e8adb007ccfba5661536ba21d5aeb4209f\"", "start": 0, "total_size":
"http_etag": "\"eb591d9720aa0ac944b49315b6af1c950410b54c\"", "is_server_owner":
false, "self_link": "http://localhost:9001/3.0/users/1", "user_id": 1}], "http_etag":
"\"cf73b75814e4f44e603170b39d65b5120218e52e\"", "start": 0, "total_size":
1}'}
headers:
content-length: ['297']
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/107
content-length: ['293']
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/1
response:
body: {string: !!python/unicode ''}
headers:
content-length: ['0']
View
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_superuser.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_not_displayed_to_moderator.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_moderator.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_owner.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_in.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_out.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_moderator.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_owner.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_metrics_not_displayed_to_anonymous.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_unsubscribe_button_is_available.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_banned_address.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_confirm.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_change_subscription_open.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_mod.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_open.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_already_pending.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_open.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_with_name.yaml
View
src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_unknown_address.yaml
View
src/postorius/views/list.py