From 4cc64f08da86be058624260f87bcf6e53860f91d Mon Sep 17 00:00:00 2001
From: Christopher Hubing <chubing@internet2.edu>
Date: Mon, 8 Oct 2018 13:23:49 -0400
Subject: [PATCH] Update main.bats

---
 tests/main.bats | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/tests/main.bats b/tests/main.bats
index d70655b0..cbe8ea2d 100644
--- a/tests/main.bats
+++ b/tests/main.bats
@@ -6,14 +6,9 @@ load ../common
     docker image inspect ${maintainer}/${imagename}
 }
 
-@test "030 Port 443/https is listening" {
-    docker run -d ${maintainer}/${imagename} ui
-    sleep 25
-    #get cont id
-    contid=$(docker ps | grep ${maintainer}/${imagename} | cut -f 1 -d ' ')
-    run docker exec -i ${contid} sh -c 'cat < /dev/null > /dev/tcp/127.0.0.1/443'
-    docker kill ${contid} &>/dev/null
-    docker rm ${contid} &>/dev/null
+@test "030 Test Compose the environment" {
+    cd test-compose && ./compose.sh
+    cd test-compose && docker-compose down
     [ "$status" -eq 0 ]
 }