Add OAuth2 mock server for CI testing

This commit is contained in:
MaxJa4
2023-08-23 19:44:59 +02:00
parent 5147753a79
commit 7ddeb992e7
4 changed files with 55 additions and 16 deletions

View File

@@ -11,6 +11,17 @@ services:
volumes:
- ./user_v2.yaml:/etc/openapi/user_v2.yaml
oauth2_mock:
image: ghcr.io/navikt/mock-oauth2-server:1.0.0
ports:
- 8090:8090
environment:
PORT: 8090
JSON_CONFIG_PATH: '/etc/oauth2/config.yaml'
volumes:
- ./oauth2_config.yaml:/etc/oauth2/config.yaml
hostname: host.docker.internal
backup:
image: offen/docker-volume-backup:${TEST_VERSION:-canary}
hostname: hostnametoken
@@ -25,6 +36,7 @@ services:
BACKUP_PRUNING_LEEWAY: 5s
BACKUP_PRUNING_PREFIX: test
DROPBOX_ENDPOINT: http://openapi_mock:8080
DROPBOX_OAUTH2_ENDPOINT: http://oauth2_mock:8090
DROPBOX_REFRESH_TOKEN: test
DROPBOX_APP_KEY: test
DROPBOX_APP_SECRET: test