mirror of
https://github.com/geoserver/geoserver-cloud.git
synced 2025-12-08 20:16:08 +00:00
Enable pgconfig acceptance tests CI job
This commit is contained in:
parent
1c63f3f5d8
commit
dc44b9fb6f
4
.github/workflows/pull-request.yaml
vendored
4
.github/workflows/pull-request.yaml
vendored
@ -60,7 +60,7 @@ jobs:
|
||||
compression-level: 0 # no compression
|
||||
|
||||
acceptance:
|
||||
name: Acceptance Tests
|
||||
name: Acceptance
|
||||
if: github.repository == 'geoserver/geoserver-cloud'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
@ -68,7 +68,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
catalog: [ 'datadir' ]
|
||||
catalog: [ 'datadir', 'pgconfig' ]
|
||||
#catalog: [ 'datadir', 'pgconfig', 'jdbcconfig' ]
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
||||
2
Makefile
2
Makefile
@ -167,8 +167,6 @@ clean-acceptance-tests-datadir:
|
||||
|
||||
.PHONY: acceptance-tests-pgconfig
|
||||
acceptance-tests-pgconfig: build-acceptance start-acceptance-tests-pgconfig run-acceptance-tests-pgconfig
|
||||
(cd compose/ && ./acceptance_pgconfig up -d)
|
||||
(cd compose/ && ./acceptance_pgconfig exec -T acceptance bash -c 'until [ -f /tmp/healthcheck ]; do echo "Waiting for /tmp/healthcheck to be available..."; sleep 5; done && pytest . -vvv --color=yes')
|
||||
|
||||
.PHONY: start-acceptance-tests-pgconfig
|
||||
start-acceptance-tests-pgconfig:
|
||||
|
||||
@ -29,7 +29,6 @@ def timeout():
|
||||
endpoints = [
|
||||
f"{GEOSERVER_URL}/wms?SERVICE=WMS&REQUEST=GetCapabilities",
|
||||
f"{GEOSERVER_URL}/wfs?SERVICE=WFS&REQUEST=GetCapabilities",
|
||||
f"{GEOSERVER_URL}/wcs?SERVICE=WCS&REQUEST=GetCapabilities",
|
||||
f"{GEOSERVER_URL}/ows?SERVICE=WMS&REQUEST=GetCapabilities",
|
||||
f"{GEOSERVER_URL}/gwc",
|
||||
f"{GEOSERVER_URL}/rest",
|
||||
|
||||
7
compose/acceptance-pgconfig.yml
Normal file
7
compose/acceptance-pgconfig.yml
Normal file
@ -0,0 +1,7 @@
|
||||
services:
|
||||
pgconfigdb:
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "1.0"
|
||||
memory: 512M
|
||||
@ -27,25 +27,30 @@ services:
|
||||
depends_on:
|
||||
geodatabase:
|
||||
condition: service_healthy
|
||||
postgis:
|
||||
condition: service_healthy
|
||||
gateway:
|
||||
condition: service_healthy
|
||||
discovery:
|
||||
condition: service_healthy
|
||||
config:
|
||||
condition: service_healthy
|
||||
acl:
|
||||
condition: service_started
|
||||
wms:
|
||||
condition: service_healthy
|
||||
# TODO: add wcs and wps
|
||||
wfs:
|
||||
condition: service_healthy
|
||||
gwc:
|
||||
condition: service_healthy
|
||||
webui:
|
||||
condition: service_started
|
||||
rest:
|
||||
condition: service_healthy
|
||||
acl:
|
||||
condition: service_started
|
||||
#webui:
|
||||
# condition: service_started
|
||||
#wps:
|
||||
# condition: service_started
|
||||
#wcs:
|
||||
# condition: service_healthy
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 0
|
||||
@ -55,6 +60,18 @@ services:
|
||||
memory: 512M
|
||||
|
||||
# For github CI
|
||||
rabbitmq:
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "1.0"
|
||||
memory: 512M
|
||||
postgis:
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "1.0"
|
||||
memory: 256M
|
||||
acl:
|
||||
deploy:
|
||||
resources:
|
||||
@ -113,13 +130,28 @@ services:
|
||||
retries: 20
|
||||
webui:
|
||||
deploy:
|
||||
replicas: 0
|
||||
resources:
|
||||
limits:
|
||||
cpus: "1.0"
|
||||
memory: 512M
|
||||
rabbitmq:
|
||||
wps:
|
||||
deploy:
|
||||
replicas: 0
|
||||
resources:
|
||||
limits:
|
||||
cpus: "1.0"
|
||||
memory: 512M
|
||||
wcs:
|
||||
deploy:
|
||||
replicas: 0
|
||||
resources:
|
||||
limits:
|
||||
cpus: "1.0"
|
||||
memory: 512M
|
||||
acldb:
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "1.0"
|
||||
memory: 512M
|
||||
cpus: "0.5"
|
||||
memory: 256M
|
||||
|
||||
@ -4,4 +4,5 @@ COMPOSE_PROJECT_NAME=gscloud-acceptance-pgconfig \
|
||||
docker compose \
|
||||
-f compose.yml \
|
||||
-f catalog-pgconfig.yml \
|
||||
-f acceptance-pgconfig.yml \
|
||||
-f acceptance.yml "$@"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user