mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Add graph QL alias test
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user