Skip to content

Commit

Permalink
Add OGC API Features 1.0 tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Nov 22, 2021
1 parent 865719a commit 6b4b043
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
19 changes: 18 additions & 1 deletion .ci/ogc/nginx.conf
Expand Up @@ -13,7 +13,7 @@ server {
try_files $uri $uri/ =404;
}

location /qgisserver {
location /qgisserver_wms130 {
fastcgi_pass qgis-server:5555;
add_header Access-Control-Allow-Origin *;
add_header 'Access-Control-Allow-Headers' 'Authorization,Content-Type,Accept,Origin,X-Requested-With';
Expand All @@ -29,4 +29,21 @@ server {
fastcgi_param SERVER_NAME $server_addr;
fastcgi_param QGIS_PROJECT_FILE /data/teamengine_wms_130.qgs;
}

location /qgisserver_ogcapif {
fastcgi_pass qgis-server:5555;
add_header Access-Control-Allow-Origin *;
add_header 'Access-Control-Allow-Headers' 'Authorization,Content-Type,Accept,Origin,X-Requested-With';
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param HTTPS $https if_not_empty;
fastcgi_param SERVER_PORT 80;
fastcgi_param SERVER_NAME $server_addr;
fastcgi_param QGIS_PROJECT_FILE /data/QGIS-Training-Data/exercise_data/qgis-server-tutorial-data/world.qgs;
}
}
12 changes: 8 additions & 4 deletions .github/workflows/ogc.yml
Expand Up @@ -88,13 +88,17 @@ jobs:
cd pyogctest && git checkout 1.0.4 && cd -
virtualenv -p /usr/bin/python3 venv && source venv/bin/activate && pip install -e pyogctest/
- name: Extract WMS 1.3.0 dataset
run: |
source venv/bin/activate && ./pyogctest/pyogctest.py -s wms130 -e
- name: Run WMS 1.3.0 OGC tests
run: |
source venv/bin/activate && ./pyogctest/pyogctest.py -s wms130 -e
docker-compose -f .ci/ogc/docker-compose.yml up -d
source venv/bin/activate && ./pyogctest/pyogctest.py -n ogc_qgis -s wms130 -v -u http://$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' qgis_server_nginx)/qgisserver
env:
DOCKER_IMAGE: ${{ steps.docker-build.outputs.FULL_IMAGE_NAME }}

- name: Run OGC API Features 1.0 tests
run: |
cd pyogctest/data && git clone https://github.com/qgis/QGIS-Training-Data && cd -
docker-compose -f .ci/ogc/docker-compose.yml up -d
source venv/bin/activate && ./pyogctest/pyogctest.py -n ogc_qgis -s ogcapif -v -u http://$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' qgis_server_nginx)/qgisserver
env:

0 comments on commit 6b4b043

Please sign in to comment.