Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
2d4bdcfe
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,发现更多精彩内容 >>
提交
2d4bdcfe
编写于
9月 23, 2020
作者:
N
nikitamikhaylov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
file and executables
上级
c9cfdffc
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
17 deletion
+13
-17
tests/integration/helpers/external_sources.py
tests/integration/helpers/external_sources.py
+3
-3
tests/integration/test_dictionaries_all_layouts_separate_sources/test_executable_cache.py
...ies_all_layouts_separate_sources/test_executable_cache.py
+3
-7
tests/integration/test_dictionaries_all_layouts_separate_sources/test_executable_hashed.py
...es_all_layouts_separate_sources/test_executable_hashed.py
+4
-4
tests/integration/test_dictionaries_all_layouts_separate_sources/test_file.py
...st_dictionaries_all_layouts_separate_sources/test_file.py
+3
-3
未找到文件。
tests/integration/helpers/external_sources.py
浏览文件 @
2d4bdcfe
...
...
@@ -333,16 +333,16 @@ class _SourceExecutableBase(ExternalSource):
user
=
'root'
)
class
SourceExecutable
Cache
(
_SourceExecutableBase
):
class
SourceExecutable
Hashed
(
_SourceExecutableBase
):
def
_get_cmd
(
self
,
path
):
return
"cat {}"
.
format
(
path
)
def
compatible_with_layout
(
self
,
layout
):
return
'
cache'
not
in
layout
.
name
return
'
hashed'
in
layout
.
name
class
SourceExecutable
Hashed
(
_SourceExecutableBase
):
class
SourceExecutable
Cache
(
_SourceExecutableBase
):
def
_get_cmd
(
self
,
path
):
return
"cat - >/dev/null;cat {}"
.
format
(
path
)
...
...
tests/integration/test_dictionaries_all_layouts_separate_sources/test_executable_cache.py
浏览文件 @
2d4bdcfe
...
...
@@ -46,7 +46,7 @@ def setup_module(module):
for
fname
in
os
.
listdir
(
DICT_CONFIG_PATH
):
dictionaries
.
append
(
os
.
path
.
join
(
DICT_CONFIG_PATH
,
fname
))
node
=
cluster
.
add_instance
(
'node'
,
main_configs
=
main_configs
,
dictionaries
=
dictionaries
,
with_cassandra
=
True
)
node
=
cluster
.
add_instance
(
'node'
,
main_configs
=
main_configs
,
dictionaries
=
dictionaries
)
def
teardown_module
(
module
):
...
...
@@ -69,14 +69,10 @@ def started_cluster():
finally
:
cluster
.
shutdown
()
@
pytest
.
mark
.
parametrize
(
"layout_name"
,
LAYOUTS_SIMPLE
)
@
pytest
.
mark
.
parametrize
(
"layout_name"
,
[
'cache'
]
)
def
test_simple
(
started_cluster
,
layout_name
):
simple_tester
.
execute
(
layout_name
,
node
)
@
pytest
.
mark
.
parametrize
(
"layout_name"
,
LAYOUTS_COMPLEX
)
@
pytest
.
mark
.
parametrize
(
"layout_name"
,
[
'complex_key_cache'
]
)
def
test_complex
(
started_cluster
,
layout_name
):
complex_tester
.
execute
(
layout_name
,
node
)
@
pytest
.
mark
.
parametrize
(
"layout_name"
,
LAYOUTS_RANGED
)
def
test_ranged
(
started_cluster
,
layout_name
):
ranged_tester
.
execute
(
layout_name
,
node
)
tests/integration/test_dictionaries_all_layouts_separate_sources/test_executable_hashed.py
浏览文件 @
2d4bdcfe
...
...
@@ -46,7 +46,7 @@ def setup_module(module):
for
fname
in
os
.
listdir
(
DICT_CONFIG_PATH
):
dictionaries
.
append
(
os
.
path
.
join
(
DICT_CONFIG_PATH
,
fname
))
node
=
cluster
.
add_instance
(
'node'
,
main_configs
=
main_configs
,
dictionaries
=
dictionaries
,
with_cassandra
=
True
)
node
=
cluster
.
add_instance
(
'node'
,
main_configs
=
main_configs
,
dictionaries
=
dictionaries
)
def
teardown_module
(
module
):
...
...
@@ -69,14 +69,14 @@ def started_cluster():
finally
:
cluster
.
shutdown
()
@
pytest
.
mark
.
parametrize
(
"layout_name"
,
LAYOUTS_SIMPLE
)
@
pytest
.
mark
.
parametrize
(
"layout_name"
,
[
'hashed'
]
)
def
test_simple
(
started_cluster
,
layout_name
):
simple_tester
.
execute
(
layout_name
,
node
)
@
pytest
.
mark
.
parametrize
(
"layout_name"
,
LAYOUTS_COMPLEX
)
@
pytest
.
mark
.
parametrize
(
"layout_name"
,
[
'complex_key_hashed'
]
)
def
test_complex
(
started_cluster
,
layout_name
):
complex_tester
.
execute
(
layout_name
,
node
)
@
pytest
.
mark
.
parametrize
(
"layout_name"
,
LAYOUTS_RANGED
)
def
test_ranged
(
started_cluster
,
layout_name
):
ranged_tester
.
execute
(
layout_name
,
node
)
tests/integration/test_dictionaries_all_layouts_separate_sources/test_file.py
浏览文件 @
2d4bdcfe
...
...
@@ -46,7 +46,7 @@ def setup_module(module):
for
fname
in
os
.
listdir
(
DICT_CONFIG_PATH
):
dictionaries
.
append
(
os
.
path
.
join
(
DICT_CONFIG_PATH
,
fname
))
node
=
cluster
.
add_instance
(
'node'
,
main_configs
=
main_configs
,
dictionaries
=
dictionaries
,
with_mongo
=
True
)
node
=
cluster
.
add_instance
(
'node'
,
main_configs
=
main_configs
,
dictionaries
=
dictionaries
)
def
teardown_module
(
module
):
...
...
@@ -69,11 +69,11 @@ def started_cluster():
finally
:
cluster
.
shutdown
()
@
pytest
.
mark
.
parametrize
(
"layout_name"
,
list
(
set
(
LAYOUTS_SIMPLE
).
difference
(
set
(
"cache, direct"
))
)
)
@
pytest
.
mark
.
parametrize
(
"layout_name"
,
set
(
LAYOUTS_SIMPLE
).
difference
({
'cache'
,
'direct'
}
)
)
def
test_simple
(
started_cluster
,
layout_name
):
simple_tester
.
execute
(
layout_name
,
node
)
@
pytest
.
mark
.
parametrize
(
"layout_name"
,
list
(
set
(
LAYOUTS_
SIMPLE
).
difference
(
set
(
"complex_key_cache, complex_key_direct"
)
)))
@
pytest
.
mark
.
parametrize
(
"layout_name"
,
list
(
set
(
LAYOUTS_
COMPLEX
).
difference
({
'complex_key_cache'
,
'complex_key_direct'
}
)))
def
test_complex
(
started_cluster
,
layout_name
):
complex_tester
.
execute
(
layout_name
,
node
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录