TestContainer Postgres

This commit is contained in:
2025-09-13 14:47:02 +02:00
parent ae47c718e5
commit ceb8bcdbc6
7 changed files with 160 additions and 1 deletions

View File

@@ -2,6 +2,20 @@
Library to test integration for aura ascend.
## Postgres Test Container
`@PostgresTestContainer` Annotation for integration tests.
Initialize Postgres test container using test container default properties, script located in `src/<test path>/resources/postgres/` folder.
### Properties For Test Container
| file | required | info |
|---------------------|:--------:|----------------------------------------------------------------|
| postgres/schema.sql | &check; | Postgres init script containing all structure and functions |
| postgres/data.sql | | Postgres data script containing all data to populate database |
| postgres/reset.sql | | Postgres reset script containing all command to reset database |
## Publish library locally.
```shell