From c118ea4e33c7660deda4859532c94d78d1d7efa9 Mon Sep 17 00:00:00 2001 From: famfo Date: Mon, 3 Mar 2025 13:17:45 +0100 Subject: [PATCH] fixup: activitypub: verify application public key caching --- tests/integration/api_federation_httpsig_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/api_federation_httpsig_test.go b/tests/integration/api_federation_httpsig_test.go index 0fe647ac4a..9d66f25102 100644 --- a/tests/integration/api_federation_httpsig_test.go +++ b/tests/integration/api_federation_httpsig_test.go @@ -54,8 +54,8 @@ func TestFederationHttpSigValidation(t *testing.T) { // HACK HACK HACK: the host part of the URL gets set to which IP forgejo is // listening on, NOT localhost, which is the Domain given to forgejo which // is then used for eg. the keyID all requests - applicationKeyID := fmt.Sprintf("http://%s/api/v1/activitypub/actor#main-key", setting.AppURL) - actorKeyID := fmt.Sprintf("http://%s/api/v1/activitypub/user-id/1#main-key", setting.AppURL) + applicationKeyID := fmt.Sprintf("%sapi/v1/activitypub/actor#main-key", setting.AppURL) + actorKeyID := fmt.Sprintf("%sapi/v1/activitypub/user-id/1#main-key", setting.AppURL) // Check for cached public keys t.Run("ValidateCaches", func(t *testing.T) {