From 98e6401334087556ef2d8197eb31c500309e0dcc Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Sun, 28 May 2017 19:08:04 -0700 Subject: [PATCH] Test if the postorius/hk is available too. --- .travis.yml | 2 +- tests/core.sh | 4 ---- tests/test.sh | 11 +++++++++++ 3 files changed, 12 insertions(+), 5 deletions(-) delete mode 100755 tests/core.sh create mode 100755 tests/test.sh diff --git a/.travis.yml b/.travis.yml index e72fb61..3dfc7fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,7 @@ before_script: - docker logs mailman-core script: - - tests/core.sh + - sh tests/test.sh after_success: - sh .travis/deploy_dockerhub.sh diff --git a/tests/core.sh b/tests/core.sh deleted file mode 100755 index 521223e..0000000 --- a/tests/core.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -set -e - -curl -u restadmin:restpass http://172.19.199.2:8001/3.1/system diff --git a/tests/test.sh b/tests/test.sh new file mode 100755 index 0000000..c3bf826 --- /dev/null +++ b/tests/test.sh @@ -0,0 +1,11 @@ +#!/bin/bash +set -e + +# Check to see if the core is up. +curl -u restadmin:restpass http://172.19.199.2:8001/3.1/system + +# Check to see if postorius is working. +curl -L http://172.19.199.3:8000/postorius/lists | grep "Mailing List" + +# Check to see if hyperkitty is working. +curl -L http://172.19.199.3:8000/hyperkitty/ | grep "Available lists"