Skip to content

Commit 7f3771f

Browse files
committed
Remove tests that call query_auth endpoint.
1 parent 9113b56 commit 7f3771f

File tree

2 files changed

+0
-61
lines changed

2 files changed

+0
-61
lines changed

tests/50federation/42query-auth.pl

Lines changed: 0 additions & 42 deletions
This file was deleted.

tests/50federation/50server-acl-endpoints.pl

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
[ "get room state ids", *can_get_state_ids ],
2929
[ "backfill", *can_backfill ],
3030
[ "/event_auth", *can_event_auth ],
31-
[ "query auth", *can_query_auth ],
3231
[ "get missing events", *can_get_missing_events ],
3332
);
3433

@@ -240,24 +239,6 @@ sub can_event_auth {
240239
);
241240
}
242241

243-
sub can_query_auth {
244-
my ( %params ) = @_;
245-
my $room = $params{room};
246-
my $room_id = $room->{room_id};
247-
my $event_id = $room->id_for_event($room->{prev_events}[-1]);
248-
249-
maybe_expect_forbidden(
250-
$params{outbound_client}->do_request_json(
251-
method => "POST",
252-
hostname => $params{dest_server},
253-
uri => "/v1/query_auth/$room_id/$event_id",
254-
content => {
255-
auth_chain => [],
256-
},
257-
), $params{expect_ban}, "/query_auth",
258-
);
259-
}
260-
261242
sub can_get_missing_events {
262243
my ( %params ) = @_;
263244
my $room = $params{room};

0 commit comments

Comments
 (0)