From 2ea18c4761d7f7a558d524507c9ca3f9a09d2c8b Mon Sep 17 00:00:00 2001 From: Khushboo Verma <43381712+vermakhushboo@users.noreply.github.com> Date: Mon, 17 Feb 2025 18:12:29 +0530 Subject: [PATCH] Fix domain generation --- tests/e2e/Services/Functions/FunctionsBase.php | 2 +- tests/e2e/Services/Sites/SitesBase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/Services/Functions/FunctionsBase.php b/tests/e2e/Services/Functions/FunctionsBase.php index fab6bd4027..bbdcbf3d67 100644 --- a/tests/e2e/Services/Functions/FunctionsBase.php +++ b/tests/e2e/Services/Functions/FunctionsBase.php @@ -266,7 +266,7 @@ trait FunctionsBase 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'domain' => $subdomain . System::getEnv('_APP_DOMAIN_FUNCTIONS', ''), + 'domain' => $subdomain . '.' . System::getEnv('_APP_DOMAIN_FUNCTIONS', ''), 'resourceType' => 'function', 'resourceId' => $functionId, ]); diff --git a/tests/e2e/Services/Sites/SitesBase.php b/tests/e2e/Services/Sites/SitesBase.php index 371e36955e..72448898f5 100644 --- a/tests/e2e/Services/Sites/SitesBase.php +++ b/tests/e2e/Services/Sites/SitesBase.php @@ -276,7 +276,7 @@ trait SitesBase 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'domain' => $subdomain . System::getEnv('_APP_DOMAIN_SITES', ''), + 'domain' => $subdomain . '.' . System::getEnv('_APP_DOMAIN_SITES', ''), 'resourceType' => 'site', 'resourceId' => $siteId, ]);