From 77db69bd0dacdc4a72663569db7c202468d2c2bc Mon Sep 17 00:00:00 2001
From: David Hoese <david.hoese@ssec.wisc.edu>
Date: Sat, 23 Apr 2022 07:28:03 -0500
Subject: [PATCH] More refactoring on test_mapserver_image.sh

---
 ci/test_mapserver_image.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/ci/test_mapserver_image.sh b/ci/test_mapserver_image.sh
index 82ababc..9bb7591 100755
--- a/ci/test_mapserver_image.sh
+++ b/ci/test_mapserver_image.sh
@@ -45,6 +45,12 @@ curl_index() {
     curl --fail -sS --max-time 5 "http://localhost:8888/" >/dev/null
 }
 
+curl_layer_times() {
+    debug "Starting curl basic time request..."
+    # NOTE: The time doesn't actually exist and no image data is available. A blank image should be returned
+    curl --fail -sS "http://localhost:8888/wms_times/g16/abi/radf/C01" >/dev/null
+}
+
 curl_empty_tile() {
     debug "Starting curl basic mapfile request..."
     # NOTE: The time doesn't actually exist and no image data is available. A blank image should be returned
@@ -56,6 +62,7 @@ run_basic_shapefile_tests() {
     debug "Starting shapefile tests..."
     start_test_container || sf_exit_status=1
     curl_index || sf_exit_status=1
+    curl_layer_times || sf_exit_status=1
     curl_empty_tile || sf_exit_status=1
 
     kill_test_container
@@ -68,6 +75,7 @@ run_basic_postgres_tests() {
     start_test_container -e POSTGRES_HOST=localhost -e POSTGRES_PASSWORD_FILE="/secrets/fake_file" || pg_exit_status=1
     add_shapefile_content
     curl_index || pg_exit_status=1
+#     curl_layer_times || sf_exit_status=1
     curl_empty_tile || pg_exit_status=1
 
     kill_test_container
-- 
GitLab