Skip to content
Snippets Groups Projects
Commit e5849866 authored by Egor Ivkov's avatar Egor Ivkov Committed by Егор Ивков
Browse files

test: create user with sql in test_cli_connect

parent a683192b
No related branches found
No related tags found
1 merge request!851fix: panic after revoke login
...@@ -12,13 +12,8 @@ from dataclasses import dataclass ...@@ -12,13 +12,8 @@ from dataclasses import dataclass
@pytest.fixture @pytest.fixture
def i1(cluster: Cluster) -> Instance: def i1(cluster: Cluster) -> Instance:
[i1] = cluster.deploy(instance_count=1) [i1] = cluster.deploy(instance_count=1)
i1.eval( acl = i1.sudo_sql("create user \"testuser\" with password 'testpass'")
""" assert acl["row_count"] == 1
box.session.su("admin")
box.schema.user.create('testuser', { password = 'testpass' })
box.schema.user.grant('testuser', 'read,execute', 'universe')
"""
)
return i1 return i1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment