Skip to content

Commit

Permalink
Add support for experimental MSC2260 room version (#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh authored Jan 28, 2020
1 parent 1d6e511 commit 2d7804b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/SyTest/Federation/Client.pm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ use SyTest::Assertions qw( :all );

use URI::Escape qw( uri_escape );

use constant SUPPORTED_ROOM_VERSIONS => [1, 2, 3, 4, 5];
use constant SUPPORTED_ROOM_VERSIONS => [qw(
1 2 3 4 5
org.matrix.msc2260
)];

sub configure
{
Expand Down
4 changes: 3 additions & 1 deletion tests/50federation/50server-acl-endpoints.pl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# the test routines should behave as similarly as they can for the expect_ban
# case and the control case.

use SyTest::Federation::Client;

my @TESTS = (
[ "send events", *can_send_event ],
[ "/make_join", *can_make_join ],
Expand Down Expand Up @@ -72,7 +74,7 @@ sub can_make_join {
method => "GET",
hostname => $params{dest_server},
uri => "/v1/make_join/$room_id/$sytest_user_id",
params => { "ver" => [1, 2, 3, 4, 5] },
params => { "ver" => SyTest::Federation::Client::SUPPORTED_ROOM_VERSIONS, },
), $params{expect_ban}, "/make_join",
);
}
Expand Down

0 comments on commit 2d7804b

Please sign in to comment.