Skip to content

Commit

Permalink
add show accounts bvt case (#12714)
Browse files Browse the repository at this point in the history
add a show accounts case to bvt cases
  • Loading branch information
aressu1985 committed Nov 13, 2023
1 parent 90dac68 commit 6d1f96e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions test/distributed/cases/tenant/tenant.result
Expand Up @@ -6,6 +6,10 @@ internal error: the tenant tenant_test exists
create account if not exists tenant_test admin_name = 'root' identified by '111' open comment 'tenant_test';
create account tenant_test admin_name = 'root' open comment 'tenant_test';
SQL parser error: You have an error in your SQL syntax; check the manual that corresponds to your MatrixOne server version for the right syntax to use. syntax error at line 1 column 51 near " open comment 'tenant_test';";
show accounts;
account_name admin_name created status suspended_time db_count table_count row_count size comment
sys root 2023-11-13 12:32:32 open null 6 75 3818 1.513 system account
tenant_test root 2023-11-13 12:33:06 open null 5 48 1157 0.066 tenant_test
drop account if exists tenant_test;
select account_id,relname,relkind from mo_catalog.mo_tables where reldatabase = 'mo_catalog' and relname not like '__mo_index_unique__%' order by relname;
account_id relname relkind
Expand Down
4 changes: 3 additions & 1 deletion test/distributed/cases/tenant/tenant.test
Expand Up @@ -4,6 +4,8 @@ create account tenant_test admin_name = 'root' identified by '111' open comment
create account tenant_test admin_name = 'root' identified by '111' open comment 'tenant_test';
create account if not exists tenant_test admin_name = 'root' identified by '111' open comment 'tenant_test';
create account tenant_test admin_name = 'root' open comment 'tenant_test';
-- @ignore:2,7,8
show accounts;
drop account if exists tenant_test;
select account_id,relname,relkind from mo_catalog.mo_tables where reldatabase = 'mo_catalog' and relname not like '__mo_index_unique__%' order by relname;
set global enable_privilege_cache = on;
set global enable_privilege_cache = on;

0 comments on commit 6d1f96e

Please sign in to comment.