From 7208fe90d438e0cd8c44f13b9a924d1b0d7fb3e4 Mon Sep 17 00:00:00 2001 From: Egor Ivkov <e.o.ivkov@gmail.com> Date: Wed, 17 Jan 2024 15:42:07 +0300 Subject: [PATCH] test: enable test_sql_alter_login --- test/int/test_sql.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/test/int/test_sql.py b/test/int/test_sql.py index 38fe0db1bd..9c1a0a33f4 100644 --- a/test/int/test_sql.py +++ b/test/int/test_sql.py @@ -1468,9 +1468,6 @@ def test_sql_acl_users_roles(cluster: Cluster): assert acl["row_count"] == 1 -@pytest.mark.skip( - reason="session privilege is not automatically given during user creation" -) def test_sql_alter_login(cluster: Cluster): cluster.deploy(instance_count=2) i1, i2 = cluster.instances @@ -1478,17 +1475,17 @@ def test_sql_alter_login(cluster: Cluster): username = "USER" password = "PASSWORD" # Create user. - acl = i1.sql(f"create user {username} with password '{password}'") + acl = i1.sudo_sql(f"create user {username} with password '{password}'") assert acl["row_count"] == 1 # Alter user with LOGIN option do nothing. - acl = i1.sql(f""" alter user {username} with login """) + acl = i1.sudo_sql(f""" alter user {username} with login """) assert acl["row_count"] == 0 # * Alter user with NOLOGIN option. - acl = i1.sql(f""" alter user {username} with nologin """) + acl = i1.sudo_sql(f""" alter user {username} with nologin """) assert acl["row_count"] == 1 # * Alter user with NOLOGIN again do nothing. - acl = i1.sql(f""" alter user {username} with nologin """) + acl = i1.sudo_sql(f""" alter user {username} with nologin """) assert acl["row_count"] == 0 # * TODO: Check SESSION privilege is removed. -- GitLab