Fix functions tests

This commit is contained in:
Khushboo Verma
2025-02-11 18:42:18 +05:30
parent 11477d67c9
commit c440a3933b
@@ -352,6 +352,7 @@ class FunctionsConsoleClientTest extends Scope
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), [
'key' => 'APP_TEST_UPDATE',
'secret' => false
]);
@@ -493,7 +494,7 @@ class FunctionsConsoleClientTest extends Scope
$this->assertEmpty($execution['body']['logs']);
$this->assertEmpty($execution['body']['errors']);
$body = json_decode($execution['body']['responseBody']);
$this->assertEquals('a_secret_value', $body['CUSTOM_VARIABLE']);
$this->assertEquals('a_secret_value', $body->CUSTOM_VARIABLE);
$this->cleanupFunction($functionId);
}