forked from geoserver/geoserver
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run CITE tests for ogcapi-features 1.0
* Add an `ogcapi-features` maven profile to `src/web/app/pom.xml` * Runs the CITE tests agains all the feature types in the "release" data directory * The WFS is configured to declare EPSG:4326 and EPSG:3857 for all FeatureTypes. Otherwise the tests will try to reproject amongst incompatible coordinate systems or boundaries. * `tiger:giant_polyon` is disabled. The test suite will try to reproject it even if it declares a single CRS.
- Loading branch information
Showing
279 changed files
with
8,105 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
name: Run CITE Tests | ||
|
||
on: | ||
push: | ||
# branches: | ||
# - main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-war: | ||
runs-on: ubuntu-latest | ||
name: Build GeoServer WAR | ||
steps: | ||
- name: Checkout repository (shallow clone) | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '11' | ||
- name: Set up Maven | ||
uses: stCarolas/setup-maven@v5 | ||
with: | ||
maven-version: 3.9.8 | ||
- name: Maven repository caching | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.m2/repository | ||
key: gs-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
gs-${{ runner.os }}-maven- | ||
- name: Build geoserver.war | ||
working-directory: build/cite | ||
run: make war | ||
|
||
- name: Upload geoserver.war as artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: geoserver-war | ||
path: build/cite/geoserver/geoserver.war | ||
|
||
run-cite-tests: | ||
needs: build-war | ||
runs-on: ubuntu-latest | ||
name: CITE | ||
strategy: | ||
fail-fast: false # Prevents other matrix jobs from being canceled if one fails | ||
matrix: | ||
#suite: [ogcapi-features10, wcs10, wcs11, wfs10, wfs11, wms10, wms11, wms13] | ||
suite: [ogcapi-features10, wms11, wcs11] | ||
|
||
steps: | ||
- name: Checkout repository (shallow clone) | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Download geoserver.war artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: geoserver-war | ||
path: build/cite/geoserver/ | ||
|
||
- name: List geoserver.war contents | ||
run: unzip -l build/cite/geoserver/geoserver.war | ||
|
||
- name: Build ogccite/geoserver:${{ matrix.suite }} docker image | ||
working-directory: build/cite | ||
run: make build suite=${{ matrix.suite }} | ||
|
||
- name: Pull teamengine and other required images | ||
working-directory: build/cite | ||
run: make pull suite=${{ matrix.suite }} | ||
|
||
# optional, used to print out a human readable summary of test failures from the testng results xml | ||
- name: Install xmlstarlet | ||
run: sudo apt-get update && sudo apt-get install -y xmlstarlet | ||
|
||
- name: Run CITE tests for ogccite/geoserver:${{ matrix.suite }} | ||
working-directory: build/cite | ||
run: | | ||
chmod o+w logs | ||
make test suite=${{ matrix.suite }} | ||
- name: Print GeoServer logs | ||
if: always() | ||
working-directory: build/cite | ||
run: make print-logs suite=${{ matrix.suite }} service=geoserver | ||
|
||
- name: Print TeamEngine logs | ||
if: always() | ||
working-directory: build/cite | ||
run: make print-logs suite=${{ matrix.suite }} service=teamengine | ||
|
||
- name: Shutdown containers | ||
if: always() | ||
working-directory: build/cite | ||
run: make down | ||
|
||
- name: Upload logs folder | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: cite-${{ matrix.suite }}-logs | ||
path: build/cite/logs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
volumes: | ||
gs_logs: | ||
gs_gwc_cache_dir: | ||
|
||
services: | ||
geoserver: | ||
image: ogccite/geoserver:${GEOSERVER_TAG:-latest} | ||
build: | ||
context: . | ||
dockerfile: ./geoserver/Dockerfile | ||
args: | ||
SOURCE_FILE: "https://build.geoserver.org/geoserver/main/geoserver-main-latest-war.zip" | ||
# override as appropriate (e.g. ./wfs11/citewfs-1.1) | ||
GEOSERVER_DATA_DIR_SRC: | ||
ports: | ||
- 8090:8080 | ||
env_file: | ||
- ./.env | ||
- ./geoserver/geoserver.env | ||
environment: | ||
JAVA_OPTS: >- | ||
-Xms${HEAP_SIZE_MIN:-1024m} | ||
-Xmx${HEAP_SIZE_MAX:-1024m} | ||
volumes: | ||
- gs_logs:/opt/geoserver_data/logs:rw | ||
- gs_gwc_cache_dir:/opt/geowebcache_data:rw | ||
|
||
teamengine: | ||
# see https://github.com/opengeospatial/teamengine-docker | ||
# there's ogccite/teamengine-production and ogccite/teamengine-beta | ||
#image: ogccite/teamengine-production | ||
image: geoserver-docker.osgeo.org/geoserver-cite:${TEAMENGINE_TAG:-teamengine_latest} | ||
hostname: teamengine.local | ||
ports: | ||
- 8080:8080 | ||
depends_on: | ||
- geoserver | ||
volumes: | ||
- ./logs:/logs:rw | ||
# old teamengine location | ||
- ./logs:/home/teamengine/te_base/users/teamengine:rw | ||
# location used by new teamengine running tests through REST API | ||
- ./logs:/usr/local/tomcat/te_base/users/ogctest/rest:rw | ||
- ./run-test.sh:/run-test.sh |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
geoserver.war |
Empty file.
Oops, something went wrong.