diff options
author | Dmitry Tantsur <dtantsur@protonmail.com> | 2023-03-31 12:36:54 +0200 |
---|---|---|
committer | Dmitry Tantsur <dtantsur@protonmail.com> | 2023-03-31 12:36:54 +0200 |
commit | 4bcef0eee5f7cd7d5f11ec05a976f51a8402d521 (patch) | |
tree | 0feae330dfd5142db198cd68561a5a7672436474 | |
parent | abbd859b766c339f5de33ff08704a7b9ad045bef (diff) | |
download | ironic-4bcef0eee5f7cd7d5f11ec05a976f51a8402d521.tar.gz |
Do not log into the template1 database during test-setup
Template databases are not designed to run random SQL code. They should
only be accessed to modify the template itself. Use postgres instead.
Change-Id: Id7d38895d8d04964557447ecbc6ca29f39f626c9
-rwxr-xr-x | tools/test-setup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test-setup.sh b/tools/test-setup.sh index 16974adb5..924f0c824 100755 --- a/tools/test-setup.sh +++ b/tools/test-setup.sh @@ -83,5 +83,5 @@ EOF chmod 0600 $HOME/.pgpass # Now create our database -psql -h 127.0.0.1 -U $DB_USER -d template1 -c "DROP DATABASE IF EXISTS openstack_citest" +psql -h 127.0.0.1 -U $DB_USER -d postgres -c "DROP DATABASE IF EXISTS openstack_citest" createdb -h 127.0.0.1 -U $DB_USER -l C -T template0 -E utf8 openstack_citest |