From 1cc6ed8fb69f7215876d5c8e0af47ed24f830f54 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Sat, 30 Mar 2024 19:22:29 +0530 Subject: [PATCH] chore: add trailing slash query test case for webfinger endpoint --- tests/integration/webfinger_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integration/webfinger_test.go b/tests/integration/webfinger_test.go index cdc7d94ebb..b789aae272 100644 --- a/tests/integration/webfinger_test.go +++ b/tests/integration/webfinger_test.go @@ -70,6 +70,9 @@ func TestWebfinger(t *testing.T) { req = NewRequest(t, "GET", fmt.Sprintf("/.well-known/webfinger?resource=http://%s/%s/foo", appURL.Host, user.Name)) session.MakeRequest(t, req, http.StatusOK) + req = NewRequest(t, "GET", fmt.Sprintf("/.well-known/webfinger?resource=https://%s/%s/", appURL.Host, user.Name)) + session.MakeRequest(t, req, http.StatusOK) + req = NewRequest(t, "GET", fmt.Sprintf("/.well-known/webfinger?resource=https://%s/%s", appURL.Host, user.Name)) session.MakeRequest(t, req, http.StatusOK)