fix remaining tests

This commit is contained in:
Damodar Lohani
2021-07-30 15:03:13 +05:45
parent 6254c58ae1
commit 45cf28852b
2 changed files with 6 additions and 1 deletions
@@ -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,
]);
+4 -1
View File
@@ -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',