mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Fix tests
This commit is contained in:
parent
9d75ab2023
commit
fc80c796e5
@ -73,7 +73,7 @@ def test_create():
|
||||
)
|
||||
assert (
|
||||
instance.query("SHOW CREATE SETTINGS PROFILE s2")
|
||||
== "CREATE SETTINGS PROFILE `s2` SETTINGS INHERIT s1 TO u2\n"
|
||||
== "CREATE SETTINGS PROFILE `s2` SETTINGS INHERIT `s1` TO u2\n"
|
||||
)
|
||||
|
||||
check()
|
||||
@ -112,7 +112,7 @@ def test_alter():
|
||||
assert instance.query("SHOW GRANTS FOR u2") == "GRANT rx, ry TO u2\n"
|
||||
assert (
|
||||
instance.query("SHOW CREATE ROLE rx")
|
||||
== "CREATE ROLE rx SETTINGS PROFILE s2\n"
|
||||
== "CREATE ROLE rx SETTINGS PROFILE `s2`\n"
|
||||
)
|
||||
assert instance.query("SHOW CREATE ROLE ry") == "CREATE ROLE ry\n"
|
||||
assert (
|
||||
@ -128,7 +128,7 @@ def test_alter():
|
||||
)
|
||||
assert (
|
||||
instance.query("SHOW CREATE SETTINGS PROFILE s2")
|
||||
== "CREATE SETTINGS PROFILE `s2` SETTINGS INHERIT s1 TO u2\n"
|
||||
== "CREATE SETTINGS PROFILE `s2` SETTINGS INHERIT `s1` TO u2\n"
|
||||
)
|
||||
|
||||
check()
|
||||
|
@ -308,7 +308,7 @@ def test_inheritance():
|
||||
)
|
||||
assert (
|
||||
instance.query("SHOW CREATE SETTINGS PROFILE alpha")
|
||||
== "CREATE SETTINGS PROFILE `alpha` SETTINGS INHERIT xyz TO robin\n"
|
||||
== "CREATE SETTINGS PROFILE `alpha` SETTINGS INHERIT `xyz` TO robin\n"
|
||||
)
|
||||
assert (
|
||||
instance.query(
|
||||
@ -456,8 +456,8 @@ def test_show_profiles():
|
||||
assert instance.query("SHOW CREATE PROFILE xyz") == "CREATE SETTINGS PROFILE `xyz`\n"
|
||||
|
||||
query_possible_response = [
|
||||
"CREATE SETTINGS PROFILE default\n",
|
||||
"CREATE SETTINGS PROFILE default SETTINGS allow_experimental_analyzer = true\n",
|
||||
"CREATE SETTINGS PROFILE `default`\n",
|
||||
"CREATE SETTINGS PROFILE `default` SETTINGS allow_experimental_analyzer = true\n",
|
||||
]
|
||||
assert (
|
||||
instance.query("SHOW CREATE SETTINGS PROFILE default")
|
||||
|
Loading…
Reference in New Issue
Block a user