From be16b40a37f6d359ff6370a8e211274e48d0feac Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Tue, 25 Jan 2022 17:45:38 +0400 Subject: [PATCH 1/2] feat: update docs --- docs/references/functions/create-deployment.md | 2 +- docs/references/functions/update-function-deployment.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/references/functions/create-deployment.md b/docs/references/functions/create-deployment.md index 35dfe89322..7cae5989ae 100644 --- a/docs/references/functions/create-deployment.md +++ b/docs/references/functions/create-deployment.md @@ -1,4 +1,4 @@ -Create a new function deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID. +Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID. This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](/docs/functions). diff --git a/docs/references/functions/update-function-deployment.md b/docs/references/functions/update-function-deployment.md index e91bebc20d..7a85188842 100644 --- a/docs/references/functions/update-function-deployment.md +++ b/docs/references/functions/update-function-deployment.md @@ -1 +1 @@ -Update the function deployment ID using the unique function ID. Use this endpoint to switch the deployment that should be executed by the execution endpoint. \ No newline at end of file +Update the function code deployment ID using the unique function ID. Use this endpoint to switch the code deployment that should be executed by the execution endpoint. \ No newline at end of file From cf0a84c476a5156a9c8064af8453c280a17b6c76 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Tue, 25 Jan 2022 20:49:41 +0400 Subject: [PATCH 2/2] feat: add sleep for webhooks test --- tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php b/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php index f165c88d52..4f930ed6b5 100644 --- a/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php +++ b/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php @@ -421,9 +421,7 @@ class WebhooksCustomServerTest extends Scope $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - /** - * Test for FAILURE - */ + sleep(5); return array_merge($data, ['deploymentId' => $deploymentId]); }