Skip to content

Commit b6f775f

Browse files
/api/auth-attempts/ => /api/auth/attempts
1 parent 2947906 commit b6f775f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

deps/rabbitmq_management/priv/www/api/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ <h2>Reference</h2>
10721072
<td></td>
10731073
<td>X</td>
10741074
<td></td>
1075-
<td class="path">/api/auth-attempts/<i>node</i>/source</td>
1075+
<td class="path">/api/auth/attempts/<i>node</i>/source</td>
10761076
<td>
10771077
A list of authentication attempts by remote address and username.
10781078
</td>

deps/rabbitmq_management/src/rabbit_mgmt_dispatcher.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ dispatcher() ->
179179
{"/reset/:node", rabbit_mgmt_wm_reset, []},
180180
{"/rebalance/queues", rabbit_mgmt_wm_rebalance_queues, [{queues, all}]},
181181
{"/auth", rabbit_mgmt_wm_auth, []},
182-
{"/auth-attempts/:node", rabbit_mgmt_wm_auth_attempts, [all]},
183-
{"/auth-attempts/:node/source", rabbit_mgmt_wm_auth_attempts, [by_source]},
182+
{"/auth/attempts/:node", rabbit_mgmt_wm_auth_attempts, [all]},
183+
{"/auth/attempts/:node/source", rabbit_mgmt_wm_auth_attempts, [by_source]},
184184
{"/login", rabbit_mgmt_wm_login, []}
185185
].

deps/rabbitmq_management/test/rabbit_mgmt_http_SUITE.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3393,7 +3393,7 @@ auth_attempts_test(Config) ->
33933393
close_connection(Conn),
33943394
[NodeData] = http_get(Config, "/nodes"),
33953395
Node = binary_to_atom(maps:get(name, NodeData), utf8),
3396-
Map = http_get(Config, "/auth-attempts/" ++ atom_to_list(Node), ?OK),
3396+
Map = http_get(Config, "/auth/attempts/" ++ atom_to_list(Node), ?OK),
33973397
Http = get_auth_attempts(<<"http">>, Map),
33983398
Amqp091 = get_auth_attempts(<<"amqp091">>, Map),
33993399
?assertEqual(false, maps:is_key(remote_address, Amqp091)),
@@ -3411,8 +3411,8 @@ auth_attempts_test(Config) ->
34113411
[rabbit, track_auth_attempt_source, true]),
34123412
{Conn2, _Ch2} = open_connection_and_channel(Config),
34133413
close_connection(Conn2),
3414-
Map2 = http_get(Config, "/auth-attempts/" ++ atom_to_list(Node) ++ "/source", ?OK),
3415-
Map3 = http_get(Config, "/auth-attempts/" ++ atom_to_list(Node), ?OK),
3414+
Map2 = http_get(Config, "/auth/attempts/" ++ atom_to_list(Node) ++ "/source", ?OK),
3415+
Map3 = http_get(Config, "/auth/attempts/" ++ atom_to_list(Node), ?OK),
34163416
Http2 = get_auth_attempts(<<"http">>, Map2),
34173417
Http3 = get_auth_attempts(<<"http">>, Map3),
34183418
Amqp091_2 = get_auth_attempts(<<"amqp091">>, Map2),

0 commit comments

Comments
 (0)