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