Fix integration tests

This commit is contained in:
ANDREI STAROVEROV 2021-07-21 16:04:52 +03:00
parent 1c99253c6a
commit c3461ce99a
2 changed files with 2 additions and 2 deletions

View File

@ -42,5 +42,5 @@ def test_access_rights_for_funtion():
instance.query("DROP FUNCTION MySum", user = 'B')
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')

View File

@ -2,7 +2,7 @@ import pytest
from helpers.cluster import ClickHouseCluster
cluster = ClickHouseCluster(__file__)
instance = cluster.add_instance('instance')
instance = cluster.add_instance('instance', stay_alive=True)
@pytest.fixture(scope="module", autouse=True)