mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Fix integration tests
This commit is contained in:
parent
1c99253c6a
commit
c3461ce99a
@ -42,5 +42,5 @@ def test_access_rights_for_funtion():
|
|||||||
instance.query("DROP FUNCTION MySum", user = 'B')
|
instance.query("DROP FUNCTION MySum", user = 'B')
|
||||||
assert "Unknown function MySum" in instance.query_and_get_error("SELECT MySum(1, 2)")
|
assert "Unknown function MySum" in instance.query_and_get_error("SELECT MySum(1, 2)")
|
||||||
|
|
||||||
instance.query("REVOKE CREATE FUNCTION ON default FROM A")
|
instance.query("REVOKE CREATE FUNCTION ON *.* FROM A")
|
||||||
assert "it's necessary to have grant CREATE FUNCTION ON *.*" in instance.query_and_get_error(create_function_query, user = 'A')
|
assert "it's necessary to have grant CREATE FUNCTION ON *.*" in instance.query_and_get_error(create_function_query, user = 'A')
|
||||||
|
@ -2,7 +2,7 @@ import pytest
|
|||||||
from helpers.cluster import ClickHouseCluster
|
from helpers.cluster import ClickHouseCluster
|
||||||
|
|
||||||
cluster = ClickHouseCluster(__file__)
|
cluster = ClickHouseCluster(__file__)
|
||||||
instance = cluster.add_instance('instance')
|
instance = cluster.add_instance('instance', stay_alive=True)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="module", autouse=True)
|
@pytest.fixture(scope="module", autouse=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user