diff --git a/tests/e2e/Services/GraphQL/HealthTest.php b/tests/e2e/Services/GraphQL/HealthTest.php index c4ca542f8d..851a24c3de 100644 --- a/tests/e2e/Services/GraphQL/HealthTest.php +++ b/tests/e2e/Services/GraphQL/HealthTest.php @@ -136,6 +136,24 @@ class HealthTest extends Scope $logsQueueHealth = $logsQueueHealth['body']['data']['healthGetQueueLogs']; $this->assertIsArray($logsQueueHealth); + // 1.x alias test + $graphQLPayload = [ + 'query' => 'query getLogsQueueHealth { + healthGetQueueLogs { + size + } + }' + ]; + $logsQueueHealth = $this->client->call(Client::METHOD_POST, '/graphql', \array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + ], $this->getHeaders()), $graphQLPayload); + + $this->assertIsArray($logsQueueHealth['body']['data']); + $this->assertArrayNotHasKey('errors', $logsQueueHealth['body']); + $logsQueueHealth = $logsQueueHealth['body']['data']['healthGetQueueLogs']; + $this->assertIsArray($logsQueueHealth); + return $logsQueueHealth; } diff --git a/tests/e2e/Services/Health/HealthCustomServerTest.php b/tests/e2e/Services/Health/HealthCustomServerTest.php index f30a041e33..ba90d3f74d 100644 --- a/tests/e2e/Services/Health/HealthCustomServerTest.php +++ b/tests/e2e/Services/Health/HealthCustomServerTest.php @@ -155,6 +155,7 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['size']); $this->assertLessThan(100, $response['body']['size']); + // 1.x alias test $response = $this->client->call(Client::METHOD_GET, '/health/queue/logs', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'],