Skip to content

Commit

Permalink
Copy test (#589)
Browse files Browse the repository at this point in the history
* add copy test

* refactoring

* fix test

* fix entrypoint

* rebase master
  • Loading branch information
NikitaUnisikhin authored Mar 18, 2024
1 parent 4f6aa1d commit 7032f86
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker/bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {
Expand Down

0 comments on commit 7032f86

Please sign in to comment.