From 9aedecc2438cd363effa84dda24ba940c048074c Mon Sep 17 00:00:00 2001 From: Khushboo Verma Date: Mon, 28 Apr 2025 18:48:52 +0530 Subject: [PATCH] Pass deployment id as param --- .../Services/Functions/FunctionsCustomServerTest.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index 0faecafeb4..40fa8fb233 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -676,20 +676,17 @@ class FunctionsCustomServerTest extends Scope */ public function testUpdateDeployment($data): array { - var_dump("data"); - var_dump($data); /** * Test for SUCCESS */ $dateValidator = new DatetimeValidator(); - $response = $this->client->call(Client::METHOD_PATCH, '/functions/' . $data['functionId'] . '/deployments/' . $data['deploymentId'], array_merge([ + $response = $this->client->call(Client::METHOD_PATCH, '/functions/' . $data['functionId'] . '/deployments', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - var_dump("response"); - var_dump($response); + ], $this->getHeaders()), [ + 'deploymentId' => $data['deploymentId'], + ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertNotEmpty($response['body']['$id']);