test: query bad node

This commit is contained in:
Stefan Strigler 2023-02-13 16:09:04 +01:00
parent 0c87d238e9
commit 89630a8a74
1 changed files with 6 additions and 0 deletions

View File

@ -145,6 +145,12 @@ t_cluster_query(_Config) ->
query_clients(Node1, #{<<"node">> => Node1, <<"page">> => -1})
),
%% Query bad node
?assertMatch(
{500, #{code := <<"NODE_DOWN">>}},
query_clients(Node1, #{<<"node">> => 'nonode@nohost'})
),
%% exact match can return non-zero total
{200, ClientsNode1} = query_clients(Node2, #{<<"username">> => <<"corenode1@127.0.0.1">>}),
?assertMatch(