mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 19:10:28 +03:00
729afa8c7b
changelog_begin changelog_end
1.1 KiB
1.1 KiB
Running tests against an Oracle database
Certain integration tests use Oracle as a DBMS for certain components (e.g. the JSON API).
These tests are executed separately on CI and you can see an up-to-date list of them in the CI configuration.
In order to execute them locally, the repository has a couple of conveniences:
dev-env
automatically sets up the environment variablesORACLE_USERNAME
tosystem
ORACLE_PWD
tohunter2
ORACLE_PORT
to1521
bazel.rc
includes theoracle
configuration key that leverages the environment variables mentioned above
This means that once you have an Oracle database running locally with the proper credentials and using the proper port, you can run tests that require Oracle as in the following example:
bazel test --config=oracle //ledger-service/http-json-oracle/...
Running an Oracle database locally
If you have the necessary authorization, you can use the same process followed on CI to run Oracle.
Find the Oracle test job on the CI configuration and run the commands that pull and run the Oracle database Docker image.