Skip to content
Snippets Groups Projects
Verified Commit 74179066 authored by David Hoese's avatar David Hoese
Browse files

Cleanup curl tests

parent 16c364f1
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,8 @@ run_tile_gen_checks() {
run_mapserver_checks() {
# Ex: ["2020-11-24T22:23:19", "2020...
# Get the first element without quotes
first_time=$(curl -s "http://${MAPSERVER_RELEASE_NAME}.${ns}/wms_times/g16/abi/radm1/C01" | head -c 21 | tail -c 19)
first_time=$(curl -sS "http://${MAPSERVER_RELEASE_NAME}.${ns}/wms_times/g16/abi/radm1/C01" | head -c 21 | tail -c 19)
debug "MapServer first time: ${first_time}"
# if there aren't any times then we failed
if [ $first_time == "" ]; then
return 1
......@@ -130,13 +131,14 @@ run_mapserver_checks() {
}
run_mapcache_checks() {
first_time=$(curl -s "http://${MAPSERVER_RELEASE_NAME}.${ns}/wms_times/g16/abi/radm1/C01" | head -c 21 | tail -c 19)
curl -s "https://${MAPCACHE_RELEASE_NAME}.${ns}/mapcache/wmts/?TIME=${first_time}Z&TILEMATRIXSET=grid_g16_abi_radf_1000m&LAYER=g16_abi_radf_l1b_C01&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=0&TileCol=0&TileRow=0" > /dev/null
first_time=$(curl -sS "http://${MAPSERVER_RELEASE_NAME}.${ns}/wms_times/g16/abi/radm1/C01" | head -c 21 | tail -c 19)
debug "MapServer first time: ${first_time}"
curl "http://${MAPCACHE_RELEASE_NAME}.${ns}/mapcache/wmts/?TIME=${first_time}Z&TILEMATRIXSET=grid_g16_abi_radf_1000m&LAYER=g16_abi_radf_l1b_C01&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=0&TileCol=0&TileRow=0" >/dev/null
}
run_client_checks() {
# just try to load the webpage at all
curl -s "http://${CLIENT_RELEASE_NAME}.${ns}/" >/dev/null
curl "http://${CLIENT_RELEASE_NAME}.${ns}/" >/dev/null
}
set -e
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment