Skip to content

Commit

Permalink
Add github secrets to tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
wlorenzetti committed Oct 7, 2024
1 parent 70e28e5 commit f16ba51
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ jobs:
- name: Running QPDND tests
run: |
docker compose -f docker-compose.ltr.yml exec -T g3w-suite sh -c "cd /code/g3w-admin && python3 manage.py test qpdnd"
env:
BARI_PDND_PRIV_KEY: ${{secrets.BARI_PDND_PRIV_KEY}}

- name: Setup tmate session
if: ${{ failure() }}
Expand Down
6 changes: 4 additions & 2 deletions qpdnd/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
__copyright__ = 'Copyright 2015 - 2024, Gis3w'
__license__ = 'MPL 2.0'

import os


#############################################################
# For PDND request authentication
Expand Down Expand Up @@ -48,8 +50,8 @@

# Path to a RSA256 private key file used by G3WSuite to authenticate itself to PDND
QPDND_SERVER_PRIVKEY_PATH = {
'test': '/path/to/privkey.rsa.priv',
'prod': '/path/to/privkey.rsa.priv'
'test': os.getenv('BARI_PDND_PRIV_KEY', '/path/to/privkey.rsa.priv'),
'prod': os.getenv('BARI_PDND_PRIV_KEY', '/path/to/privkey.rsa.priv')
}

#############################################################
Expand Down
Binary file modified qpdnd/tests/data/project_data/ogc_api_1.gpkg
Binary file not shown.

0 comments on commit f16ba51

Please sign in to comment.