From 7032f869f8aaa2417ce06e2f627c20389541473c Mon Sep 17 00:00:00 2001 From: NikitaUnisikhin <92248695+NikitaUnisikhin@users.noreply.github.com> Date: Mon, 18 Mar 2024 17:34:05 +0500 Subject: [PATCH] Copy test (#589) * add copy test * refactoring * fix test * fix entrypoint * rebase master --- docker/bin/setup | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker/bin/setup b/docker/bin/setup index 40e586982..baba50546 100755 --- a/docker/bin/setup +++ b/docker/bin/setup @@ -162,6 +162,14 @@ do } done +# Create tables +psql -h localhost -p 5432 -U postgres -d db -c "CREATE TABLE copy_test(c1 VARCHAR(50), c2 VARCHAR(50), c3 VARCHAR(50))" >> $SETUP_LOG 2>&1 || { + echo "ERROR: tables creation failed, examine the log" + cat "$SETUP_LOG" + cat "$PG_LOG" + exit 1 +} + # Create databases for ldap_storage_credentials for database_name in ldap_db1 ldap_db2; do sudo -u postgres createdb $database_name >> "$SETUP_LOG" 2>&1 || {