Skip to content

Commit

Permalink
Update tests for changes to MSC3083. (#129)
Browse files Browse the repository at this point in the history
Adds a "type" parameter and generalizes "space" to "room_id".
  • Loading branch information
clokep authored Jun 17, 2021
1 parent 4c56cb0 commit 1babb4a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tests/msc3083_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ func setupRestrictedRoom(t *testing.T, deployment *docker.Deployment) (*client.C
"join_rule": "restricted",
"allow": []map[string]interface{}{
{
"space": &space,
"via": []string{"hs1"},
"type": "m.room_membership",
"room_id": &space,
"via": []string{"hs1"},
},
},
},
Expand Down Expand Up @@ -219,8 +220,9 @@ func TestRestrictedRoomsSpacesSummary(t *testing.T) {
"join_rule": "restricted",
"allow": []map[string]interface{}{
{
"space": &space,
"via": []string{"hs1"},
"type": "m.room_membership",
"room_id": &space,
"via": []string{"hs1"},
},
},
},
Expand Down Expand Up @@ -298,8 +300,9 @@ func TestRestrictedRoomsSpacesSummaryFederation(t *testing.T) {
"join_rule": "restricted",
"allow": []map[string]interface{}{
{
"space": &space,
"via": []string{"hs1"},
"type": "m.room_membership",
"room_id": &space,
"via": []string{"hs1"},
},
},
},
Expand Down

0 comments on commit 1babb4a

Please sign in to comment.