Skip to content

Commit

Permalink
ci: add test case for granted_admin
Browse files Browse the repository at this point in the history
  • Loading branch information
lutengda authored and roseboy-liu committed Jan 9, 2024
1 parent 5fb9cb4 commit 968b17f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions query_server/test/cases/dcl/alter_user.result
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
{"error_code":"030008","error_message":"The user test_au_u2 not found"}
-- ERROR: --

-- EXECUTE SQL: alter user root set granted_admin = true; --
422 Unprocessable Entity
{"error_code":"010024","error_message":"Invalid parameter : The root user does not support changing granted_admin"}

-- EXECUTE SQL: alter user root set granted_admin = false; --
422 Unprocessable Entity
{"error_code":"010024","error_message":"Invalid parameter : The root user does not support changing granted_admin"}

-- EXECUTE SQL: create user if not exists test_au_u1; --
200 OK

Expand Down
3 changes: 3 additions & 0 deletions query_server/test/cases/dcl/alter_user.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ drop user root;
drop user test_au_u1;
drop user test_au_u2;

alter user root set granted_admin = true;
alter user root set granted_admin = false;

create user if not exists test_au_u1;
create user if not exists test_au_u2;

Expand Down

0 comments on commit 968b17f

Please sign in to comment.