test: query bad node
This commit is contained in:
parent
0c87d238e9
commit
89630a8a74
|
@ -145,6 +145,12 @@ t_cluster_query(_Config) ->
|
||||||
query_clients(Node1, #{<<"node">> => Node1, <<"page">> => -1})
|
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
|
%% exact match can return non-zero total
|
||||||
{200, ClientsNode1} = query_clients(Node2, #{<<"username">> => <<"corenode1@127.0.0.1">>}),
|
{200, ClientsNode1} = query_clients(Node2, #{<<"username">> => <<"corenode1@127.0.0.1">>}),
|
||||||
?assertMatch(
|
?assertMatch(
|
||||||
|
|
Loading…
Reference in New Issue