From 45cf28852bdc4971fdd33a631a9dd386ee07008e Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 30 Jul 2021 15:03:13 +0545 Subject: [PATCH] fix remaining tests --- tests/e2e/Services/Functions/FunctionsCustomServerTest.php | 2 ++ tests/e2e/Services/Workers/WebhooksTest.php | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index 1863c90a4d..7273866afe 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -481,6 +481,7 @@ class FunctionsCustomServerTest extends Scope 'content-type' => 'multipart/form-data', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ + 'tagId' => 'unique()', 'command' => $command, 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), ]); @@ -501,6 +502,7 @@ class FunctionsCustomServerTest extends Scope 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ + 'executionId' => 'unique()', 'async' => 1, ]); diff --git a/tests/e2e/Services/Workers/WebhooksTest.php b/tests/e2e/Services/Workers/WebhooksTest.php index 5bfa3d4ae8..813294bccc 100644 --- a/tests/e2e/Services/Workers/WebhooksTest.php +++ b/tests/e2e/Services/Workers/WebhooksTest.php @@ -23,7 +23,7 @@ class WebhooksTest extends Scope 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'projectId' => 'unique()', + 'teamId' => 'unique()', 'name' => 'Project Test', ]); @@ -35,6 +35,7 @@ class WebhooksTest extends Scope 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ + 'projectId' => 'unique()', 'name' => 'Project Test', 'teamId' => $team['body']['$id'], ]); @@ -57,6 +58,7 @@ class WebhooksTest extends Scope 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ + 'projectId' => 'unique()', 'name' => '', 'teamId' => $team['body']['$id'], ]); @@ -86,6 +88,7 @@ class WebhooksTest extends Scope 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ + 'webhookId' => 'unique()', 'name' => 'Webhook Worker Test', 'events' => ['account.create', 'account.update.email'], 'url' => 'http://request-catcher:5000/webhook',