From 59afd193354bb9aefbf87f16cecce7b396ea91a4 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 22 Jan 2025 13:12:02 -0500 Subject: [PATCH] test: adjust webfinger test for updated 404 status code --- test/activitypub/webfinger.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/activitypub/webfinger.js b/test/activitypub/webfinger.js index c408000e9e..c59cb2c0e1 100644 --- a/test/activitypub/webfinger.js +++ b/test/activitypub/webfinger.js @@ -33,12 +33,12 @@ describe('WebFinger endpoint', () => { assert.strictEqual(response.statusCode, 400); }); - it('should return 403 Forbidden if the calling user is not allowed to view the user list/profiles', async () => { + it('should return 404 Not Found if the calling user is not allowed to view the user list/profiles', async () => { await privileges.global.rescind(['groups:view:users'], 'fediverse'); const { response } = await request.get(`${nconf.get('url')}/.well-known/webfinger?resource=acct%3a${slug}%40${host}`); assert(response); - assert.strictEqual(response.statusCode, 400); + assert.strictEqual(response.statusCode, 404); await privileges.global.give(['groups:view:users'], 'fediverse'); });