mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fix
This commit is contained in:
parent
1417143560
commit
6b9e0f5a6f
@ -877,7 +877,7 @@ class ClickHouseCluster:
|
||||
if (with_mongo or with_mongo_secure) and not (self.with_mongo or self.with_mongo_secure):
|
||||
if with_mongo_secure:
|
||||
cmds.append(self.setup_mongo_secure_cmd(instance, env_variables, docker_compose_yml_dir))
|
||||
else
|
||||
else:
|
||||
cmds.append(self.setup_mongo_cmd(instance, env_variables, docker_compose_yml_dir))
|
||||
|
||||
if self.with_net_trics:
|
||||
|
@ -38,7 +38,7 @@ def test_simple_select(started_cluster):
|
||||
data.append({'key': i, 'data': hex(i * i)})
|
||||
simple_mongo_table.insert_many(data)
|
||||
|
||||
node = started_cluster.instance['node']
|
||||
node = started_cluster.instances['node']
|
||||
node.query(
|
||||
"CREATE TABLE simple_mongo_table(key UInt64, data String) ENGINE = MongoDB('mongo1:27017', 'test', 'simple_table', 'root', 'clickhouse')")
|
||||
|
||||
@ -59,7 +59,7 @@ def test_complex_data_type(started_cluster):
|
||||
data.append({'key': i, 'data': hex(i * i), 'dict': {'a': i, 'b': str(i)}})
|
||||
incomplete_mongo_table.insert_many(data)
|
||||
|
||||
node = started_cluster.instance['node']
|
||||
node = started_cluster.instances['node']
|
||||
node.query(
|
||||
"CREATE TABLE incomplete_mongo_table(key UInt64, data String) ENGINE = MongoDB('mongo1:27017', 'test', 'complex_table', 'root', 'clickhouse')")
|
||||
|
||||
@ -80,7 +80,7 @@ def test_incorrect_data_type(started_cluster):
|
||||
data.append({'key': i, 'data': hex(i * i), 'aaaa': 'Hello'})
|
||||
strange_mongo_table.insert_many(data)
|
||||
|
||||
node = started_cluster.instance['node']
|
||||
node = started_cluster.instances['node']
|
||||
node.query(
|
||||
"CREATE TABLE strange_mongo_table(key String, data String) ENGINE = MongoDB('mongo1:27017', 'test', 'strange_table', 'root', 'clickhouse')")
|
||||
|
||||
@ -99,7 +99,7 @@ def test_incorrect_data_type(started_cluster):
|
||||
|
||||
@pytest.mark.parametrize('started_cluster', [True], indirect=['started_cluster'])
|
||||
def test_secure_connection(started_cluster):
|
||||
mongo_connection = get_mongo_connection(secure=True)
|
||||
mongo_connection = get_mongo_connection(started_cluster, secure=True)
|
||||
db = mongo_connection['test']
|
||||
db.add_user('root', 'clickhouse')
|
||||
simple_mongo_table = db['simple_table']
|
||||
@ -108,7 +108,7 @@ def test_secure_connection(started_cluster):
|
||||
data.append({'key': i, 'data': hex(i * i)})
|
||||
simple_mongo_table.insert_many(data)
|
||||
|
||||
node = started_cluster.instance['node']
|
||||
node = started_cluster.instances['node']
|
||||
node.query(
|
||||
"CREATE TABLE simple_mongo_table(key UInt64, data String) ENGINE = MongoDB('mongo1:27017', 'test', 'simple_table', 'root', 'clickhouse', 'ssl=true')")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user