Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove tests that call query_auth endpoint. #827

Merged
merged 1 commit into from
Mar 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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