Skip to content

Commit

Permalink
Added a test for attribute removal
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-zaitsev committed Apr 27, 2020
1 parent 058dff3 commit 13c343e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/configs/test-016-settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
settings:
dictionaries_config: config.d/*.dict
macros/layer: "01"
query_log: _removed_
files:
dict_one.dict: |
<yandex>
Expand Down
7 changes: 6 additions & 1 deletion tests/test_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,14 @@ def test_016():
out = clickhouse_query("test-016-settings", query = "select dictGet('one', 'one', toUInt64(0))")
assert out == "0"

with Then("Custom macro 'layer' should be available:"):
with Then("Custom macro 'layer' should be available"):
out = clickhouse_query("test-016-settings", query = "select substitution from system.macros where macro='layer'")
assert out == "01"

with Then("query_log should be disabled"):
clickhouse_query("test-016-settings", query = "system flush logs")
out = clickhouse_query_with_error("test-016-settings", query = "select count() from system.query_log")
assert "doesn't exist" in out

kube_delete_chi("test-016-settings")

Expand Down

0 comments on commit 13c343e

Please sign in to comment.