From 7f1723b52bebb30838fab7fefc10460248648431 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Fri, 6 Aug 2021 12:17:57 -0400 Subject: [PATCH] Test federation. --- tests/msc2946_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/msc2946_test.go b/tests/msc2946_test.go index 4ef8f400..e0248fed 100644 --- a/tests/msc2946_test.go +++ b/tests/msc2946_test.go @@ -758,4 +758,14 @@ func TestFederatedClientSpaces(t *testing.T) { }, nil), }, }) + res = alice.MustDo(t, "GET", []string{"_matrix", "client", "unstable", "org.matrix.msc2946", "rooms", root, "hierarchy"}, nil) + must.MatchResponse(t, res, match.HTTPResponse{ + JSON: []match.JSON{ + match.JSONCheckOff("rooms", []interface{}{ + root, r1, r2, r3, r4, ss1, ss2, + }, func(r gjson.Result) interface{} { + return r.Get("room_id").Str + }, nil), + }, + }) }