Skip to content

Commit

Permalink
added DICOMWeb tests with PG
Browse files Browse the repository at this point in the history
  • Loading branch information
amazy committed Sep 6, 2024
1 parent adfbe1c commit 5f33ba0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docker/integration-tests/docker-compose.postgres-dicomweb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: "2"
services:
orthanc-under-tests:
image: orthanc-under-tests
depends_on:
- pg
environment:
ORTHANC__POSTGRESQL__HOST: "pg"
ORTHANC__POSTGRESQL__DATABASE: "postgres"
ORTHANC__POSTGRESQL__USERNAME: "postgres"
ORTHANC__POSTGRESQL__PASSWORD: "postgres"
ORTHANC__POSTGRESQL__ENABLE_INDEX: "true"
ORTHANC__POSTGRESQL__ENABLE_STORAGE: "true"

ORTHANC__POSTGRESQL__TRANSACTION_MODE: "ReadCommitted"

# VERBOSE_ENABLED: "true"
VERBOSE_STARTUP: "true"
GDCM_PLUGIN_ENABLED: "false"

orthanc-tests-dicomweb:
image: orthanc-tests-dicomweb
depends_on:
- orthanc-under-tests

pg:
image: postgres:16
environment:
POSTGRES_PASSWORD: "postgres"
6 changes: 6 additions & 0 deletions docker/integration-tests/run-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ if [[ $image == "normal" ]]; then
COMPOSE_FILE=docker-compose.postgres-serializable.yml docker compose down -v
COMPOSE_FILE=docker-compose.postgres-serializable.yml docker compose up --build --exit-code-from orthanc-tests --abort-on-container-exit

COMPOSE_FILE=docker-compose.postgres-dicomweb.yml docker compose down -v
COMPOSE_FILE=docker-compose.postgres-dicomweb.yml docker compose up --build --exit-code-from orthanc-tests-dicomweb --abort-on-container-exit

# TODO: add mysql-dicomweb tests
# TODO: add sqlserver-dicomweb tests

COMPOSE_FILE=docker-compose.odbc-postgres.yml docker compose down -v
COMPOSE_FILE=docker-compose.odbc-postgres.yml docker compose up --build --exit-code-from orthanc-tests --abort-on-container-exit

Expand Down

0 comments on commit 5f33ba0

Please sign in to comment.