Skip to content

Commit ae63d2c

Browse files
committedJan 10, 2025·
Run CITE GeoTIFF tests
1 parent 31ed8d7 commit ae63d2c

File tree

4 files changed

+64
-5
lines changed

4 files changed

+64
-5
lines changed
 

‎.github/workflows/cite.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
fail-fast: false # Prevents other matrix jobs from being canceled if one fails
5656
matrix:
5757
#suite: [ogcapi-features10, wcs10, wcs11, wfs10, wfs11, wms10, wms11, wms13]
58-
suite: [ogcapi-features10, wms11, wms13, wfs10, wfs11, wfs20, wcs11]
58+
suite: [ogcapi-features10, wms11, wms13, wfs10, wfs11, wfs20, wcs11, geotiff11]
5959

6060
steps:
6161
- name: Checkout repository (shallow clone)

‎build/cite/Makefile

+18-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ ifndef suite
7575
@$(MAKE) help
7676
@exit 1
7777
endif
78-
ifneq (,$(filter $(suite),ogcapi-features10 wms11 wms13 wfs10 wfs20 wcs11))
78+
ifneq (,$(filter $(suite),ogcapi-features10 wms11 wms13 wfs10 wfs20 wcs11 geotiff11))
7979
@$(MAKE) test-rest suite=$(suite)
8080
else
8181
@$(MAKE) test-cli suite=$(suite)
@@ -239,6 +239,23 @@ validate-rest-results: $(suite)
239239
elif [ -f "logs/xml-results.xml" ]; then \
240240
./xml-results-report.sh logs/xml-results.xml; \
241241
./xml-results-validate.sh logs/xml-results.xml; \
242+
else \
243+
@result=0; \
244+
for file in logs/*-results.xml; do \
245+
if [ -f "$$file" ]; then \
246+
case "$$file" in \
247+
*testng-results.xml) \
248+
./testng-results-report.sh "$$file"; \
249+
./testng-results-validate.sh "$$file" || result=1; \
250+
;; \
251+
*xml-results.xml) \
252+
./xml-results-report.sh "$$file"; \
253+
./xml-results-validate.sh "$$file" || result=1; \
254+
;; \
255+
esac; \
256+
fi; \
257+
done; \
258+
exit $$result; \
242259
fi
243260

244261
.PHONY: print-full-failures
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
services:
2+
geoserver:
3+
image: ogccite/geoserver:geotiff11
4+
build:
5+
args:
6+
# The WCS 1.1 data directory has a variety of raster data sources
7+
GEOSERVER_DATA_DIR_SRC: "./wcs11/citewcs-1.1"
8+
9+
teamengine:
10+
image: ogccite/teamengine-production
11+
healthcheck:
12+
test: "curl -f http://localhost:8080/teamengine/ || exit 1"
13+
interval: 15s
14+
timeout: 10s
15+
retries: 10
16+
start_period: 5s

‎build/cite/run-test.sh

+29-3
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,36 @@ ogcapi-features10() {
112112
run_rest_test_suite "ogcapi-features-1.0" "testng" "iut=http://geoserver:8080/geoserver/ogc/features/v1" "noofcollections=-1"
113113
}
114114

115+
geotiff11() {
116+
# RGB WMS
117+
run_rest_test_suite_prefix "geotiff11" "01-wms-" "testng" "iut=http:%2F%2Fgeoserver:8080%2Fgeoserver%2Fwms?service%3DWMS%26version%3D1.1.0%26request%3DGetMap%26layers%3Dtopp%3Atazbm%26bbox%3D146.49999999999477%2C-44.49999999999785%2C147.99999999999474%2C-42.99999999999787%26width%3D767%26height%3D768%26srs%3DEPSG%3A4326%26styles%3D%26format%3Dimage%2Fgeotiff"
118+
119+
# single band WCS
120+
run_rest_test_suite_prefix "geotiff11" "02-wcs-dem-basic-" "testng" "iut=http%3A%2F%2Fgeoserver%3A8080%2Fgeoserver%2Ftopp%2Fows%3Fservice%3DWCS%26version%3D2.0.1%26request%3DGetCoverage%26coverageId%3Dtopp__tazdem"
121+
122+
# single band rotated
123+
run_rest_test_suite_prefix "geotiff11" "03-wcs-rotated-" "testng" "iut=http%3A%2F%2Fgeoserver%3A8080%2Fgeoserver%2Ftopp%2Fows%3Fservice%3DWCS%26version%3D2.0.1%26request%3DGetCoverage%26coverageId%3Dtopp__rotated"
124+
125+
# single band, deflate compressed, tiled, WCS
126+
run_rest_test_suite_prefix "geotiff11" "04-wcs-dem-deflate-tiled-" "testng" "iut=http%3A%2F%2Fgeoserver%3A8080%2Fgeoserver%2Ftopp%2Fows%3Fservice%3DWCS%26version%3D2.0.1%26request%3DGetCoverage%26coverageId%3Dtopp__tazdem%26compression%3DDeflate%26tiling%3Dtrue%26tileheight%3D256%26tilewidth%3D256"
127+
128+
# three band, JPEG compressed, small tiles, WCS
129+
run_rest_test_suite_prefix "geotiff11" "05-wcs-dem-jpeg-tinytiles-" "testng" "iut=http%3A%2F%2Fgeoserver%3A8080%2Fgeoserver%2Ftopp%2Fows%3Fservice%3DWCS%26version%3D2.0.1%26request%3DGetCoverage%26coverageId%3Dtopp__tazbm%26compression%3DJPEG%26compression%3DJPEG%26jpeg_quality%3D75%26tiling%3Dtrue%26tileheight%3D32%26tilewidth%3D32"
130+
}
131+
115132
run_rest_test_suite() {
133+
local suite_name=$1
134+
local format=$2
135+
shift 2
136+
run_rest_test_suite_prefix "$suite_name" "" "$format" "$@"
137+
}
138+
139+
run_rest_test_suite_prefix() {
140+
set +x
141+
116142
local suite_name=$1
117-
local targetfile="/logs/$2-results.xml"
118-
shift 2
143+
local targetfile="/logs/$2$3-results.xml"
144+
shift 3
119145
local params=("$@")
120146

121147
echo $0
@@ -134,7 +160,6 @@ run_rest_test_suite() {
134160
echo $testurl
135161
credentials="ogctest:ogctest"
136162

137-
set +x
138163

139164
echo
140165
echo Running tests
@@ -149,6 +174,7 @@ run_rest_test_suite() {
149174
curl -v -s -u "$credentials" "$testurl" -H "Accept: application/xml" > $targetfile
150175
}
151176

177+
152178
interactive () {
153179
/usr/local/tomcat/bin/startup.sh
154180
while true; do sleep 100000; done

0 commit comments

Comments
 (0)
Please sign in to comment.