mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Merge pull request #71924 from ClickHouse/vdimir/fix_mongodb_secure
Fix test_storage_mongodb/test.py::test_secure_connection_uri
This commit is contained in:
commit
73362e7339
@ -395,7 +395,7 @@ def test_secure_connection_uri(started_cluster):
|
|||||||
simple_mongo_table.insert_many(data)
|
simple_mongo_table.insert_many(data)
|
||||||
node = started_cluster.instances["node"]
|
node = started_cluster.instances["node"]
|
||||||
node.query(
|
node.query(
|
||||||
"CREATE OR REPLACE TABLE test_secure_connection_uri(key UInt64, data String) ENGINE = MongoDB('mongodb://root:clickhouse@mongo_secure:27017/test?tls=true&tlsAllowInvalidCertificates=true&tlsAllowInvalidHostnames=true', 'test_secure_connection_uri')"
|
"CREATE OR REPLACE TABLE test_secure_connection_uri(key UInt64, data String) ENGINE = MongoDB('mongodb://root:clickhouse@mongo_secure:27017/test?tls=true&tlsAllowInvalidCertificates=true&tlsAllowInvalidHostnames=true&authSource=admin', 'test_secure_connection_uri')"
|
||||||
)
|
)
|
||||||
|
|
||||||
assert node.query("SELECT COUNT() FROM test_secure_connection_uri") == "100\n"
|
assert node.query("SELECT COUNT() FROM test_secure_connection_uri") == "100\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user