From f248f93bea074df1f6aecdb50aa79ca780e17161 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 30 Jul 2021 11:47:59 +0545 Subject: [PATCH] fix webhooks and functions test --- tests/e2e/Services/Functions/FunctionsCustomClientTest.php | 2 +- tests/e2e/Services/Functions/FunctionsCustomServerTest.php | 1 + tests/e2e/Services/Workers/WebhooksTest.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php index 2fa581adce..fa85048ac2 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php @@ -53,7 +53,7 @@ class FunctionsCustomClientTest extends Scope 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], ], [ - 'executionId' => 'unique()', + 'functionId' => 'unique()', 'name' => 'Test', 'execute' => ['user:'.$this->getUser()['$id']], 'runtime' => 'php-8.0', diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index 4e4ffe7683..1863c90a4d 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -464,6 +464,7 @@ class FunctionsCustomServerTest extends Scope 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ + 'functionId' => 'unique()', 'name' => 'Test '.$name, 'runtime' => $name, 'vars' => [], diff --git a/tests/e2e/Services/Workers/WebhooksTest.php b/tests/e2e/Services/Workers/WebhooksTest.php index 12154c9b0f..5bfa3d4ae8 100644 --- a/tests/e2e/Services/Workers/WebhooksTest.php +++ b/tests/e2e/Services/Workers/WebhooksTest.php @@ -23,6 +23,7 @@ class WebhooksTest extends Scope 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ + 'projectId' => 'unique()', 'name' => 'Project Test', ]);