mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-04 12:36:23 +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",
|
"pg_stat_statements.max=10000",
|
||||||
"-c",
|
"-c",
|
||||||
"pg_stat_statements.track=all",
|
"pg_stat_statements.track=all",
|
||||||
|
"-c",
|
||||||
|
"track_commit_timestamp=on",
|
||||||
]
|
]
|
||||||
|
|
||||||
with try_bind(container, 5432, 5432) if not os.getenv(
|
with (
|
||||||
"CI"
|
try_bind(container, 5432, 5432) if not os.getenv("CI") else container
|
||||||
) else container as container:
|
) as container:
|
||||||
docker_container = container.get_wrapped_container()
|
docker_container = container.get_wrapped_container()
|
||||||
docker_container.exec_run(["mkdir", "/data"])
|
docker_container.exec_run(["mkdir", "/data"])
|
||||||
docker_container.put_archive(
|
docker_container.put_archive(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user