From 0b2658eb42c0c27a54c8eb64d9a51d19169df89e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Mon, 21 Sep 2015 10:57:30 +0000 Subject: [PATCH] Also test Postorius on deploy --- roles/mailman/files/post-update.sh | 2 +- roles/mailman/files/settings_test.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/roles/mailman/files/post-update.sh b/roles/mailman/files/post-update.sh index 29532439c2..cc1db847ef 100755 --- a/roles/mailman/files/post-update.sh +++ b/roles/mailman/files/post-update.sh @@ -25,7 +25,7 @@ $BASEDIR/bin/pg-give-rights.py > /dev/null restorecon -r "$BASEDIR" # Run unit tests -django-admin test --pythonpath $CONFDIR --settings settings_test hyperkitty +django-admin test --pythonpath $CONFDIR --settings settings_test hyperkitty postorius # Reload Apache to flush the python cache systemctl reload httpd diff --git a/roles/mailman/files/settings_test.py b/roles/mailman/files/settings_test.py index 30a515164d..ca4fa6ecbb 100644 --- a/roles/mailman/files/settings_test.py +++ b/roles/mailman/files/settings_test.py @@ -16,3 +16,11 @@ DATABASES = { 'NAME': ':memory:', } } + +# Mailman API credentials for testing Postorius +MAILMAN_API_URL = 'http://localhost:9001' +MAILMAN_USER = 'restadmin' +MAILMAN_PASS = 'restpass' + +VCR_RECORD_MODE = 'once' +USE_SSL = False