summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2015-09-21 10:57:30 +0000
committerAurélien Bompard <aurelien@bompard.org>2015-09-21 10:57:34 +0000
commit0b2658eb42c0c27a54c8eb64d9a51d19169df89e (patch)
tree5c2d32a1a99dcd9ddba061f3140a9548a8f44a65
parent07fb19d7b2caed47f16324198890878e3f3cc53f (diff)
downloadansible-0b2658eb42c0c27a54c8eb64d9a51d19169df89e.tar.gz
ansible-0b2658eb42c0c27a54c8eb64d9a51d19169df89e.tar.xz
ansible-0b2658eb42c0c27a54c8eb64d9a51d19169df89e.zip
Also test Postorius on deploy
-rwxr-xr-xroles/mailman/files/post-update.sh2
-rw-r--r--roles/mailman/files/settings_test.py8
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