Skip to content

Commit

Permalink
Test federation.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Aug 10, 2021
1 parent 2574030 commit 7f1723b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/msc2946_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
})
}

0 comments on commit 7f1723b

Please sign in to comment.