diff options
-rwxr-xr-x | roles/mailman/files/post-update.sh | 2 | ||||
-rw-r--r-- | roles/mailman/files/settings_test.py | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/roles/mailman/files/post-update.sh b/roles/mailman/files/post-update.sh index 29532439c..cc1db847e 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 30a515164..ca4fa6ecb 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 |