Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions setEnvironment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,15 @@ if [ "$MODE" = "create" ]; then
echo "UID=${USER_ID}" >> $SCRIPT_DIR/$ENV_FILE
echo "GID=${GROUP_ID}" >> $SCRIPT_DIR/$ENV_FILE

echo "BASE_URL=https://${KEYCLOAK_HOST}" >> $SCRIPT_DIR/$ENV_FILE

echo "GEOSERVER_CSRF_WHITELIST=${GEOSERVER_CSRF_WHITELIST}" >> $SCRIPT_DIR/$ENV_FILE
echo "GEOSERVER_PROXY_BASE_URL=" >> $SCRIPT_DIR/$ENV_FILE

echo "Successfully wrote $SCRIPT_DIR/$ENV_FILE"
else
sed -i -E "s/KEYCLOAK_HOST=(.+)/KEYCLOAK_HOST=${KEYCLOAK_HOST}/" .env
sed -i -E "s#BASE_URL=https://(.+)#BASE_URL=https://${KEYCLOAK_HOST}#" .env

echo "Successfully updated local IP in $SCRIPT_DIR/$ENV_FILE"
fi
Expand Down
35 changes: 35 additions & 0 deletions tests/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
expected_keycloak_clients:
- shogun-admin
- shogun-boot
- shogun-client
- shogun-geoserver

expected_keycloak_users:
- shogun

expected_geoserver_workspaces:
- SHOGUN

expected_geoserver_layers:
- SHOGUN:COUNTRIES

expected_geofence_rules:
- id: 1
priority: 0
roleName: ROLE_AUTHENTICATED
- id: 2
priority: 1
roleName: ROLE_ANONYMOUS

expected_geoserver_version: "2.27.1"

expected_plugins:
- ExamplePlugin

expected_admin_configs:
- security
- keycloak
- geoserver
- models
- dashboard
- navigation
6 changes: 6 additions & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
requests==2.31.0
psycopg2==2.9.6
urllib3==2.5.0
setuptools==80.9.0
pyyaml==6.0.2
dotenv==0.9.9
Loading