Skip to content
Draft
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
2 changes: 1 addition & 1 deletion .ci/runChecks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ npm run lint:eslint
npm run lint:prettier
npm run --workspaces cdep
npx --workspaces license-check
npx better-npm-audit audit
npx better-npm-audit audit --exclude 1113371,1113402,1112030
68 changes: 68 additions & 0 deletions .dev/compose.openid4vc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: runtime-oid4vc-tests

services:
oid4vc-service:
image: ghcr.io/js-soft/openid4vc-service:3.0.1@sha256:17d35ee82a5c65c700e5b6f7922ea833717f1c16a515f60cf1ee7b36b524b32b
ports:
- "9000:9000"
platform: linux/amd64
volumes:
- ./oid4vc-service-config.json:/usr/app/config.json
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- connector
- eudiplo
networks:
- default

connector:
image: ghcr.io/nmshd/connector:7.4.0-openid4vc.2@sha256:d121f97ce2e4506a7ff58de0012b3445f6d0aeb8dd4d765c09da7f34d8a22b5b
environment:
CUSTOM_CONFIG_LOCATION: "/config.json"
transportLibrary__baseUrl: ${NMSHD_TEST_BASEURL}
transportLibrary__platformClientId: ${NMSHD_TEST_CLIENTID}
transportLibrary__platformClientSecret: ${NMSHD_TEST_CLIENTSECRET}
transportLibrary__addressGenerationHostnameOverride: ${NMSHD_TEST_ADDRESSGENERATIONHOSTNAMEOVERRIDE}
database__connectionString: mongodb://root:example@mongodb:27017
infrastructure__httpServer__authentication__apiKey__keys__default__key: aVeryCoolApiKeyWith30CharactersOr+
modules__autoAcceptPendingRelationships__enabled: true
modules__sync__enabled: true
modules__sync__interval: 1
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- mongodb
networks:
- default
- local-test-backbone

mongodb:
image: mongo@sha256:c23684919810f0341e58744987e4b1c510fb8becdae850217d2d04b6fa7605e7
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
networks:
- default

eudiplo:
image: ghcr.io/openwallet-foundation-labs/eudiplo:1.16.0
environment:
- PUBLIC_URL=http://localhost:3000
- JWT_SECRET="OgwrDcgVQQ2yZwcFt7kPxQm3nUF+X3etF6MdLTstZAY="
- AUTH_CLIENT_ID="root"
- AUTH_CLIENT_SECRET="test"
- PORT=3000
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "3000:3000"
volumes:
- ./eudiplo-assets:/app/config

networks:
default:
name: runtime-oid4vc-tests-network
local-test-backbone:
name: local-test-backbone
external: true
Binary file added .dev/eudiplo-assets/service.db
Binary file not shown.
Binary file not shown.
19 changes: 19 additions & 0 deletions .dev/oid4vc-service-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"port": 9000,
"baseUrl": "http://127.0.0.1:9000",
"mongodb": {
"host": "mongodb",
"port": 27017,
"user": "root",
"password": "example"
},
"connector": {
"baseUrl": "http://connector:80",
"apiKey": "aVeryCoolApiKeyWith30CharactersOr+"
},
"eudiplo": {
"baseUrl": "http://eudiplo:3000",
"clientId": "test-admin",
"clientSecret": "57c9cd444bf402b2cc1f5a0d2dafd3955bd9042c0372db17a4ede2d5fbda88e5"
}
}
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ jobs:
- uses: actions/checkout@v6
- name: Start Backbone
run: npm run start:backbone
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USER_FOR_OID4VC_SERVICE_PULL }}
password: ${{ secrets.GHCR_PAT_FOR_OID4VC_SERVICE_PULL }}
- uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
Expand All @@ -141,6 +147,12 @@ jobs:
- uses: actions/checkout@v6
- name: Start Backbone
run: npm run start:backbone
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USER_FOR_OID4VC_SERVICE_PULL }}
password: ${{ secrets.GHCR_PAT_FOR_OID4VC_SERVICE_PULL }}
- uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
Expand Down
Loading
Loading