Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
b818258a
C
ClickHouse
项目概览
2dot5
/
ClickHouse
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClickHouse
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b818258a
编写于
8月 25, 2017
作者:
V
Vitaliy Lyudvichenko
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add ability to run an integration test env without test runs. [#CLICKHOUSE-2]
上级
7943a21f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
5 deletion
+16
-5
dbms/tests/integration/helpers/cluster.py
dbms/tests/integration/helpers/cluster.py
+5
-5
dbms/tests/integration/test_distributed_ddl/test.py
dbms/tests/integration/test_distributed_ddl/test.py
+11
-0
未找到文件。
dbms/tests/integration/helpers/cluster.py
浏览文件 @
b818258a
...
...
@@ -266,14 +266,14 @@ class ClickHouseInstance:
os
.
makedirs
(
self
.
path
)
configs_dir
=
p
.
join
(
self
.
path
,
'configs'
)
configs_dir
=
p
.
abspath
(
p
.
join
(
self
.
path
,
'configs'
)
)
os
.
mkdir
(
configs_dir
)
shutil
.
copy
(
p
.
join
(
self
.
base_configs_dir
,
'config.xml'
),
configs_dir
)
shutil
.
copy
(
p
.
join
(
self
.
base_configs_dir
,
'users.xml'
),
configs_dir
)
config_d_dir
=
p
.
join
(
configs_dir
,
'config.d'
)
users_d_dir
=
p
.
join
(
configs_dir
,
'users.d'
)
config_d_dir
=
p
.
abspath
(
p
.
join
(
configs_dir
,
'config.d'
)
)
users_d_dir
=
p
.
abspath
(
p
.
join
(
configs_dir
,
'users.d'
)
)
os
.
mkdir
(
config_d_dir
)
os
.
mkdir
(
users_d_dir
)
...
...
@@ -301,12 +301,12 @@ class ClickHouseInstance:
for
path
in
self
.
custom_user_config_paths
:
shutil
.
copy
(
path
,
users_d_dir
)
db_dir
=
p
.
join
(
self
.
path
,
'database'
)
db_dir
=
p
.
abspath
(
p
.
join
(
self
.
path
,
'database'
)
)
os
.
mkdir
(
db_dir
)
if
self
.
clickhouse_path_dir
is
not
None
:
distutils
.
dir_util
.
copy_tree
(
self
.
clickhouse_path_dir
,
db_dir
)
logs_dir
=
p
.
join
(
self
.
path
,
'logs'
)
logs_dir
=
p
.
abspath
(
p
.
join
(
self
.
path
,
'logs'
)
)
os
.
mkdir
(
logs_dir
)
depends_on
=
'[]'
...
...
dbms/tests/integration/test_distributed_ddl/test.py
100644 → 100755
浏览文件 @
b818258a
import
os
import
os.path
as
p
import
sys
import
time
import
datetime
import
pytest
from
contextlib
import
contextmanager
sys
.
path
.
insert
(
0
,
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))))
from
helpers.cluster
import
ClickHouseCluster
from
helpers.network
import
PartitionManager
,
PartitionManagerDisbaler
from
helpers.test_tools
import
TSV
...
...
@@ -295,3 +299,10 @@ ENGINE = Distributed(cluster_without_replication, default, merge, i)
ddl_check_query
(
instance
,
"DROP TABLE merge ON CLUSTER cluster_without_replication"
)
ddl_check_query
(
instance
,
"DROP TABLE all_merge_32 ON CLUSTER cluster_without_replication"
)
ddl_check_query
(
instance
,
"DROP TABLE all_merge_64 ON CLUSTER cluster_without_replication"
)
if
__name__
==
'__main__'
:
with
contextmanager
(
started_cluster
)()
as
cluster
:
for
name
,
instance
in
cluster
.
instances
.
items
():
print
name
,
instance
.
ip_address
raw_input
(
"Cluster created, press any key to destroy..."
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录