@@ -29,23 +29,19 @@ jobs:
2929 # cite:
3030 # image: docker.io/ogccite/ets-ogcapi-features10
3131 # ports:
32- # - 8080 :8080
32+ # - 9080 :8080
3333
3434 steps :
3535 - name : Checkout
3636 uses : actions/checkout@v4
3737
3838 - name : Load
39- run : cargo run -p data-loader -- --input data/ne_110m_admin_0_countries.geojson --collection countries
40- env :
41- DATABASE_URL : " postgresql://postgres:password@localhost:5432/ogcapi"
39+ run : cargo run -p data-loader -- --input data/ne_110m_populated_places.geojson --collection places
4240
4341 - name : Run
4442 run : RUNNER_TRACKING_ID="" && cargo run -p cite-service &
45- env :
46- APP_HOST : " 0.0.0.0"
47- APP_PORT : " 8484"
48- DATABASE_URL : " postgresql://postgres:password@localhost:5432/ogcapi"
43+ # env:
44+ # PUBLIC_URL: "http://host.docker.internal:8484"
4945
5046 - name : Check running service
5147 run : |
@@ -55,15 +51,36 @@ jobs:
5551 do
5652 sleep 5
5753 done
54+ curl -v http://localhost:8484/collections | jq
5855
5956 - name : Downgrade click
6057 run : pip install ogc-cite-runner "click<8.2.0"
6158
62- - name : Validate
63- run : docker run -d --network host docker.io/ogccite/ets-ogcapi-features10 && sleep 20 && ogc-cite-runner execute-test-suite http://localhost:8080/teamengine ogcapi-features-1.0 --suite-input iut http://host.docker.internal:8484
64- 65- # with:
66- # test_suite_identifier: ogcapi-features-1.0
67- # test_session_arguments: >-
68- # iut=http://host.docker.internal:8484
59+ - name : Cite container
60+ run : docker run --detach --rm --name teamengine --add-host=host.docker.internal:host-gateway --publish 9080:8080 ogccite/teamengine-production:1.0-SNAPSHOT
61+
62+ - name : Check running container
63+ run : |
64+ until [ \
65+ "$(curl -s -w '%{http_code}' -o /dev/null "http://localhost:9080/teamengine")" \
66+ -eq 200 ]
67+ echo $http_code
68+ do
69+ sleep 5
70+ done
71+
72+ - name : Docker
73+ run : docker network ls && docker ps
6974
75+ - name : Validate
76+ run : ogc-cite-runner execute-test-suite --with-passed --with-failed http://localhost:9080/teamengine ogcapi-features-1.0 --suite-input iut http://localhost:8484
77+ 78+ # with:
79+ # test_suite_identifier: ogcapi-features-1.0
80+ # test_session_arguments: iut=http://host.docker.internal:8484
81+ # teamengine_url: "http://localhost:9080/teamengine"
82+ # teamengine_username: "ogctest"
83+ # teamengine_password: "ogctest"
84+ # with_failed: "true"
85+ # with_skipped: "true"
86+ # exit_with_error: "false"
0 commit comments