mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 08:35:22 +00:00
added Status field to SQL "SHOW TABLES" result.
This commit is contained in:
parent
37a868c226
commit
cb91ce4506
@ -752,11 +752,11 @@ with_security_when_user_is_given_permissions_user_can_show_tables_test(Ctx) ->
|
||||
{ok, {Columns, Rows}} = riakc_ts:query(Pid, "SHOW TABLES"),
|
||||
{_Saver, TableList} = ?config(saved_config, Ctx),
|
||||
?assertEqual(
|
||||
[<<"Table">>],
|
||||
[<<"Table">>, <<"Status">>],
|
||||
Columns
|
||||
),
|
||||
?assertEqual(
|
||||
lists:sort(Rows),
|
||||
lists:sort(TableList)
|
||||
),
|
||||
ActualRows = lists:sort(Rows),
|
||||
ExpectedRows = [{TableName, <<"Active">>} ||
|
||||
{TableName} <- lists:sort(TableList) ],
|
||||
?assertEqual(ExpectedRows, ActualRows),
|
||||
add_no_table_to_list(Ctx).
|
||||
|
@ -50,8 +50,10 @@ confirm() ->
|
||||
end,
|
||||
Tables),
|
||||
Got1 = ts_ops:query(Cluster, "SHOW TABLES"),
|
||||
ExpectedRows = [{TableName, <<"Active">>} ||
|
||||
{TableName} <- lists:sort(Tables) ],
|
||||
?assertEqual(
|
||||
{ok, {[<<"Table">>], lists:usort(Tables)}},
|
||||
{ok, {[<<"Table">>, <<"Status">>], ExpectedRows}},
|
||||
Got1
|
||||
),
|
||||
pass.
|
||||
|
Loading…
Reference in New Issue
Block a user