From 921311e91eb177bca71f4b4c921815fe238449c2 Mon Sep 17 00:00:00 2001 From: Khushboo Verma <43381712+vermakhushboo@users.noreply.github.com> Date: Wed, 9 Apr 2025 11:58:54 +0530 Subject: [PATCH] Fix tests --- app/config/errors.php | 2 +- tests/e2e/Services/Sites/SitesCustomServerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/config/errors.php b/app/config/errors.php index 0aed627dda..e6c9830a30 100644 --- a/app/config/errors.php +++ b/app/config/errors.php @@ -549,7 +549,7 @@ return [ Exception::FUNCTION_EXECUTE_PERMISSION_DENIED => [ 'name' => Exception::FUNCTION_EXECUTE_PERMISSION_DENIED, 'description' => 'To execute function using domain, execute permissions must include "any" or "guests".', - 'code' => 403, + 'code' => 401, ], /** Sites */ diff --git a/tests/e2e/Services/Sites/SitesCustomServerTest.php b/tests/e2e/Services/Sites/SitesCustomServerTest.php index 1f0b0b7be6..a67af33392 100644 --- a/tests/e2e/Services/Sites/SitesCustomServerTest.php +++ b/tests/e2e/Services/Sites/SitesCustomServerTest.php @@ -1654,7 +1654,7 @@ class SitesCustomServerTest extends Scope $response = $proxyClient->call(Client::METHOD_GET, '/'); - $this->assertEquals(401, $response['headers']['status-code']); + $this->assertEquals(404, $response['headers']['status-code']); $this->assertStringContainsString("This domain is not connected to any Appwrite resource yet", $response['body']); $site = $this->createSite([