From 9e152b488d52c3d51782092e059bfb27869d14fa Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Wed, 10 Sep 2025 12:05:16 -0500 Subject: [PATCH] Use FQDN helper on `m.room.server_acl` events Follow-up to https://github.com/matrix-org/complement/pull/780 --- tests/federation_acl_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/federation_acl_test.go b/tests/federation_acl_test.go index c6112cd5..c7f4dae5 100644 --- a/tests/federation_acl_test.go +++ b/tests/federation_acl_test.go @@ -59,7 +59,9 @@ func TestACLs(t *testing.T) { Content: map[string]interface{}{ "allow": []string{"*"}, "allow_ip_literals": true, - "deny": []string{"hs2"}, + "deny": []string{ + string(deployment.GetFullyQualifiedHomeserverName(t, "hs2")), + }, }, }) // wait for the ACL to show up on hs2 @@ -111,7 +113,9 @@ func TestACLs(t *testing.T) { content := user.MustGetStateEventContent(t, roomID, "m.room.server_acl", "") must.MatchGJSON(t, content, match.JSONKeyEqual("allow", []string{"*"}), - match.JSONKeyEqual("deny", []string{"hs2"}), + match.JSONKeyEqual("deny", []string{ + string(deployment.GetFullyQualifiedHomeserverName(t, "hs2")), + }), match.JSONKeyEqual("allow_ip_literals", true), ) }