fix(ci): add valkey, mock-oidc services and MOCK_OIDC_HOST env for e2e tests
This commit is contained in:
parent
2a83cead67
commit
aaddb319bc
1 changed files with 37 additions and 0 deletions
37
.github/workflows/release.yml
vendored
37
.github/workflows/release.yml
vendored
|
|
@ -23,9 +23,46 @@ jobs:
|
||||||
--health-interval 5s
|
--health-interval 5s
|
||||||
--health-timeout 5s
|
--health-timeout 5s
|
||||||
--health-retries 5
|
--health-retries 5
|
||||||
|
valkey:
|
||||||
|
image: valkey/valkey:8
|
||||||
|
options: >-
|
||||||
|
--health-cmd "valkey-cli ping"
|
||||||
|
--health-interval 5s
|
||||||
|
--health-timeout 5s
|
||||||
|
--health-retries 5
|
||||||
|
mock-oidc:
|
||||||
|
image: ghcr.io/navikt/mock-oauth2-server:2.1.10
|
||||||
|
ports:
|
||||||
|
- 9000:9000
|
||||||
|
env:
|
||||||
|
SERVER_PORT: "9000"
|
||||||
|
JSON_CONFIG: >
|
||||||
|
{
|
||||||
|
"interactiveLogin": true,
|
||||||
|
"httpServer": "NettyWrapper",
|
||||||
|
"tokenCallbacks": [
|
||||||
|
{
|
||||||
|
"issuerId": "test-idp",
|
||||||
|
"tokenExpiry": 3600,
|
||||||
|
"requestMappings": [
|
||||||
|
{
|
||||||
|
"requestParam": "scope",
|
||||||
|
"match": "*",
|
||||||
|
"claims": {
|
||||||
|
"sub": "$${claim:sub}",
|
||||||
|
"email": "$${claim:sub}@test.local",
|
||||||
|
"name": "Test User"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
env:
|
env:
|
||||||
CI: "true"
|
CI: "true"
|
||||||
WG_DATABASE_URL: postgresql+asyncpg://wiregui:wiregui@postgres/wiregui
|
WG_DATABASE_URL: postgresql+asyncpg://wiregui:wiregui@postgres/wiregui
|
||||||
|
WG_REDIS_URL: redis://valkey:6379/0
|
||||||
|
MOCK_OIDC_HOST: mock-oidc
|
||||||
steps:
|
steps:
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue