You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: APIError: ResponseError with 1063: Permission denied: privilege [Alter] is required on *.* for user 'testuser1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage.
4
-
Error: APIError: ResponseError with 1063: Permission denied: privilege [Alter] is required on *.* for user 'testuser1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage.
5
-
Error: APIError: ResponseError with 1063: Permission denied: privilege [Alter] is required on *.* for user 'testuser1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage.
6
-
Error: APIError: RequestError: Query Page failed with status 401 Unauthorized: {"error":{"code":5100,"message":"wrong password"}}
7
-
Error: APIError: RequestError: Start Query failed with status 401 Unauthorized: {"error":{"code":5100,"message":"wrong password"}}
Copy file name to clipboardExpand all lines: tests/suites/0_stateless/18_rbac/18_0011_alter_own_username.sh
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -14,18 +14,18 @@ echo "DROP USER IF EXISTS 'testuser2'" | $BENDSQL_CLIENT_CONNECT
14
14
echo'-- prepare user and tables for tests'
15
15
echo"CREATE USER 'testuser1' IDENTIFIED BY '$TEST_USER_PASSWORD'"|$BENDSQL_CLIENT_CONNECT
16
16
echo"CREATE USER 'testuser2' IDENTIFIED BY '$TEST_USER_PASSWORD'"|$BENDSQL_CLIENT_CONNECT
17
-
echo"alter user 'testuser2' identified by '123'"|$TEST_USER_CONNECT
18
-
echo"alter user 'testuser1' identified by '123' with default_role='role1'"|$TEST_USER_CONNECT
19
-
echo"alter user 'testuser1' identified by '123' with disabled=true"|$TEST_USER_CONNECT
17
+
echo"alter user 'testuser2' identified by '123'"|$TEST_USER_CONNECT2>&1| grep 'Permission denied: privilege \[Alter\]'|wc -l
18
+
echo"alter user 'testuser1' identified by '123' with default_role='role1'"|$TEST_USER_CONNECT2>&1| grep 'Permission denied: privilege \[Alter\]'|wc -l
19
+
echo"alter user 'testuser1' identified by '123' with disabled=true"|$TEST_USER_CONNECT2>&1| grep 'Permission denied: privilege \[Alter\]'|wc -l
20
20
21
21
# Note: this query in bendsql will return err, because bendsql will call auth in poll, after password modified, in next poll the auth failed, it will return err.
22
22
# testuser1@localhost:8000/default> alter user 'testuser1' identified by '123';
23
23
# error: APIError: RequestError: Query Page failed with status 401 Unauthorized: {"error":{"code":"401","message":"wrong password"}}
24
-
echo"alter user 'testuser1' identified by '123'"|$TEST_USER_CONNECT
24
+
echo"alter user 'testuser1' identified by '123'"|$TEST_USER_CONNECT2>&1| grep 'wrong password'| wc -l
0 commit comments