mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-03 20:19:31 +00:00
tests: postgres container (#16924)
added track_commit_timestamp=on so we can track table updates in tests https://www.postgresql.org/docs/current/runtime-config-replication.html#GUC-TRACK-COMMIT-TIMESTAMP
This commit is contained in:
parent
7506e0209d
commit
43f46196a4
@ -49,11 +49,13 @@ def postgres_container(tmp_path_factory):
|
||||
"pg_stat_statements.max=10000",
|
||||
"-c",
|
||||
"pg_stat_statements.track=all",
|
||||
"-c",
|
||||
"track_commit_timestamp=on",
|
||||
]
|
||||
|
||||
with try_bind(container, 5432, 5432) if not os.getenv(
|
||||
"CI"
|
||||
) else container as container:
|
||||
with (
|
||||
try_bind(container, 5432, 5432) if not os.getenv("CI") else container
|
||||
) as container:
|
||||
docker_container = container.get_wrapped_container()
|
||||
docker_container.exec_run(["mkdir", "/data"])
|
||||
docker_container.put_archive(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user