Skip to content

Commit 9e152b4

Browse files
committed
Use FQDN helper on m.room.server_acl events
Follow-up to #780
1 parent 6c854fc commit 9e152b4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/federation_acl_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ func TestACLs(t *testing.T) {
5959
Content: map[string]interface{}{
6060
"allow": []string{"*"},
6161
"allow_ip_literals": true,
62-
"deny": []string{"hs2"},
62+
"deny": []string{
63+
string(deployment.GetFullyQualifiedHomeserverName(t, "hs2")),
64+
},
6365
},
6466
})
6567
// wait for the ACL to show up on hs2
@@ -111,7 +113,9 @@ func TestACLs(t *testing.T) {
111113
content := user.MustGetStateEventContent(t, roomID, "m.room.server_acl", "")
112114
must.MatchGJSON(t, content,
113115
match.JSONKeyEqual("allow", []string{"*"}),
114-
match.JSONKeyEqual("deny", []string{"hs2"}),
116+
match.JSONKeyEqual("deny", []string{
117+
string(deployment.GetFullyQualifiedHomeserverName(t, "hs2")),
118+
}),
115119
match.JSONKeyEqual("allow_ip_literals", true),
116120
)
117121
}

0 commit comments

Comments
 (0)