Revert "Assert empty execution logs in CE tests"

This reverts commit 1de158a146.
This commit is contained in:
Chirag Aggarwal committed 2026-05-29 16:14:15 +05:30
1 parent 1de158a146
commit c6eaedc4c9
4 files changed
-18

No files matched your search

@@ -603,8 +603,6 @@ class FunctionsCustomClientTest extends Scope
$lastExecution = $executions['body']['executions'][0];
$this->assertEquals('completed', $lastExecution['status']);
$this->assertEquals(204, $lastExecution['responseStatusCode']);
$this->assertEmpty($lastExecution['logs']);
$this->assertEmpty($lastExecution['errors']);
}, 20000, 500);
$this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, [
@@ -752,8 +752,6 @@ class FunctionsCustomServerTest extends Scope
$this->assertEquals(200, $execution['body']['responseStatusCode']);
$this->assertEquals('completed', $execution['body']['status']);
$this->assertEmpty($execution['body']['responseBody']);
$this->assertEmpty($execution['body']['errors']);
$this->assertEmpty($execution['body']['logs']);
}, 10000, 500);
$deployment = $this->getDeployment($functionId, $deployment['body']['$id']);
@@ -2123,8 +2121,6 @@ class FunctionsCustomServerTest extends Scope
$this->assertGreaterThan(2, $execution['body']['duration']);
$this->assertLessThan(20, $execution['body']['duration']);
$this->assertEquals('', $execution['body']['responseBody']);
$this->assertEquals('', $execution['body']['logs']);
$this->assertEquals('', $execution['body']['errors']);
}, 10000, 500);
$this->cleanupFunction($functionId);
@@ -2357,8 +2353,6 @@ class FunctionsCustomServerTest extends Scope
$this->assertEquals('completed', $lastExecution['status']);
$this->assertEquals(204, $lastExecution['responseStatusCode']);
$this->assertEmpty($lastExecution['logs']);
$this->assertEmpty($lastExecution['errors']);
$this->assertNotEmpty($lastExecution['$id']);
$headers = array_column($lastExecution['requestHeaders'] ?? [], 'value', 'name');
$this->assertEmpty($headers['x-appwrite-client-ip'] ?? '');
@@ -2426,8 +2420,6 @@ class FunctionsCustomServerTest extends Scope
$this->assertEquals('completed', $execution['body']['status']);
$this->assertEquals(200, $execution['body']['responseStatusCode']);
$this->assertGreaterThan(0, $execution['body']['duration']);
$this->assertEmpty($execution['body']['logs']);
$this->assertEmpty($execution['body']['errors']);
}, 10000, 500);
$this->cleanupFunction($functionId);
@@ -58,8 +58,6 @@ class FunctionsScheduleTest extends Scope
$this->assertEquals('completed', $asyncExecution['status']);
$this->assertEquals(200, $asyncExecution['responseStatusCode']);
$this->assertEquals('', $asyncExecution['responseBody']);
$this->assertEmpty($asyncExecution['logs']);
$this->assertEmpty($asyncExecution['errors']);
$this->assertGreaterThan(0, $asyncExecution['duration']);
$this->assertNotEmpty($asyncExecution['$id']);
$headers = array_column($asyncExecution['requestHeaders'] ?? [], 'value', 'name');
@@ -132,8 +130,6 @@ class FunctionsScheduleTest extends Scope
$this->assertEquals('completed', $execution['body']['status']);
$this->assertEquals('/custom-path', $execution['body']['requestPath']);
$this->assertEquals('PATCH', $execution['body']['requestMethod']);
$this->assertEmpty($execution['body']['logs']);
$this->assertEmpty($execution['body']['errors']);
$this->assertGreaterThan(0, $execution['body']['duration']);
}, 120000, 500);
@@ -2791,8 +2791,6 @@ class SitesCustomServerTest extends Scope
$this->assertStringContainsString($deploymentId, $logs['body']['executions'][0]['deploymentId']);
$this->assertStringContainsString("GET", $logs['body']['executions'][0]['requestMethod']);
$this->assertStringContainsString("/logs-inline", $logs['body']['executions'][0]['requestPath']);
$this->assertEmpty($logs['body']['executions'][0]['logs']);
$this->assertEmpty($logs['body']['executions'][0]['errors']);
$log1Id = $logs['body']['executions'][0]['$id'];
$this->assertNotEmpty($log1Id);
@@ -2836,8 +2834,6 @@ class SitesCustomServerTest extends Scope
$this->assertStringContainsString($deploymentId, $logs['body']['executions'][0]['deploymentId']);
$this->assertStringContainsString("GET", $logs['body']['executions'][0]['requestMethod']);
$this->assertStringContainsString("/logs-action", $logs['body']['executions'][0]['requestPath']);
$this->assertEmpty($logs['body']['executions'][0]['logs']);
$this->assertEmpty($logs['body']['executions'][0]['errors']);
$log2Id = $logs['body']['executions'][0]['$id'];
$this->assertNotEmpty($log2Id);