Fix test_storage_mongodb/test.py::test_secure_connection_uri

This commit is contained in:
vdimir 2024-11-14 13:25:15 +00:00
parent 9c3984b735
commit fb1c2a470a
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862

View File

@ -395,7 +395,7 @@ def test_secure_connection_uri(started_cluster):
simple_mongo_table.insert_many(data)
node = started_cluster.instances["node"]
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"