From dfb53895eb582c8891de826afd44995a92fdec35 Mon Sep 17 00:00:00 2001 From: Hemachandar Date: Tue, 16 Dec 2025 12:40:42 +0530 Subject: [PATCH] tiny --- .env | 6 +++--- .../Platform/Modules/Proxy/Http/Rules/API/Create.php | 2 -- tests/e2e/Services/Proxy/ProxyCustomServerTest.php | 2 +- tests/unit/Network/Validators/DNSTest.php | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.env b/.env index 3a0c4a50cb..64fc7ef10f 100644 --- a/.env +++ b/.env @@ -21,13 +21,13 @@ _APP_OPTIONS_ROUTER_PROTECTION=disabled _APP_OPTIONS_FORCE_HTTPS=disabled _APP_OPTIONS_ROUTER_FORCE_HTTPS=disabled _APP_OPENSSL_KEY_V1=your-secret-key -_APP_DNS=8.8.8.8 +_APP_DNS=172.16.238.100 # CoreDNS _APP_DOMAIN=appwrite.test _APP_CONSOLE_DOMAIN=localhost _APP_DOMAIN_FUNCTIONS=functions.localhost _APP_DOMAIN_SITES=sites.localhost -_APP_DOMAIN_TARGET_CNAME=test.localhost -_APP_DOMAIN_TARGET_A=127.0.0.1 +_APP_DOMAIN_TARGET_CNAME=cname.localhost +_APP_DOMAIN_TARGET_A=203.0.0.1 _APP_DOMAIN_TARGET_AAAA=::1 _APP_DOMAIN_TARGET_CAA=digicert.com _APP_RULES_FORMAT=md5 diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php index e5bb447ee0..a187622422 100644 --- a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php @@ -113,8 +113,6 @@ class Create extends Action } } - \var_dump($rule); - try { $rule = $dbForPlatform->createDocument('rules', $rule); } catch (Duplicate $e) { diff --git a/tests/e2e/Services/Proxy/ProxyCustomServerTest.php b/tests/e2e/Services/Proxy/ProxyCustomServerTest.php index ead6be8084..dc2f5c72a3 100644 --- a/tests/e2e/Services/Proxy/ProxyCustomServerTest.php +++ b/tests/e2e/Services/Proxy/ProxyCustomServerTest.php @@ -36,7 +36,7 @@ class ProxyCustomServerTest extends Scope $rules = $this->listRules([ 'queries' => [ Query::endsWith('domain', 'webapp.com')->toString(), - Query::limit(1) + Query::limit(1)->toString() ] ]); $this->assertEquals(200, $rules['headers']['status-code']); diff --git a/tests/unit/Network/Validators/DNSTest.php b/tests/unit/Network/Validators/DNSTest.php index 4a07098a31..6e4a78022f 100644 --- a/tests/unit/Network/Validators/DNSTest.php +++ b/tests/unit/Network/Validators/DNSTest.php @@ -50,4 +50,4 @@ class DNSTest extends TestCase $result = $validator->isValid('stage-wrong-cname.webapp.com'); $this->assertEquals(false, $result); } -} \ No newline at end of file +}