Skip to content

Commit

Permalink
Remove tests that call query_auth endpoint. (#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Mar 17, 2020
1 parent 7beff40 commit 51e6d2f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 61 deletions.
42 changes: 0 additions & 42 deletions tests/50federation/42query-auth.pl

This file was deleted.

19 changes: 0 additions & 19 deletions tests/50federation/50server-acl-endpoints.pl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
[ "get room state ids", *can_get_state_ids ],
[ "backfill", *can_backfill ],
[ "/event_auth", *can_event_auth ],
[ "query auth", *can_query_auth ],
[ "get missing events", *can_get_missing_events ],
);

Expand Down Expand Up @@ -240,24 +239,6 @@ sub can_event_auth {
);
}

sub can_query_auth {
my ( %params ) = @_;
my $room = $params{room};
my $room_id = $room->{room_id};
my $event_id = $room->id_for_event($room->{prev_events}[-1]);

maybe_expect_forbidden(
$params{outbound_client}->do_request_json(
method => "POST",
hostname => $params{dest_server},
uri => "/v1/query_auth/$room_id/$event_id",
content => {
auth_chain => [],
},
), $params{expect_ban}, "/query_auth",
);
}

sub can_get_missing_events {
my ( %params ) = @_;
my $room = $params{room};
Expand Down

0 comments on commit 51e6d2f

Please sign in to comment.