mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
fix pg integration test
This commit is contained in:
parent
cc7f771093
commit
63a46d7cb0
@ -406,14 +406,17 @@ def test_postgresql_password_leak(started_cluster):
|
||||
)
|
||||
cursor = conn.cursor()
|
||||
|
||||
cursor.execute("DROP SCHEMA IF EXISTS test_schema CASCADE")
|
||||
cursor.execute("CREATE SCHEMA test_schema")
|
||||
cursor.execute("CREATE TABLE test_schema.table1 (a integer)")
|
||||
cursor.execute("CREATE TABLE table2 (a integer)")
|
||||
|
||||
node1.query("DROP DATABASE IF EXISTS postgres_database")
|
||||
node1.query(
|
||||
"CREATE DATABASE postgres_database ENGINE = PostgreSQL('postgres1:5432', 'postgres_database', 'postgres', 'mysecretpassword', 'test_schema')"
|
||||
)
|
||||
|
||||
node1.query("DROP DATABASE IF EXISTS postgres_database2")
|
||||
node1.query(
|
||||
"CREATE DATABASE postgres_database2 ENGINE = PostgreSQL('postgres1:5432', 'postgres_database', 'postgres', 'mysecretpassword')"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user