From 0cd6e0d89fae5201442e4df8a543ecc14c4387bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Mon, 2 Oct 2023 11:49:29 +0200 Subject: [PATCH] Fix logs queue tests --- tests/e2e/Services/GraphQL/Base.php | 8 ++++---- tests/e2e/Services/GraphQL/HealthTest.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/e2e/Services/GraphQL/Base.php b/tests/e2e/Services/GraphQL/Base.php index 3a4b88e2c2..c0d2ae8c00 100644 --- a/tests/e2e/Services/GraphQL/Base.php +++ b/tests/e2e/Services/GraphQL/Base.php @@ -173,7 +173,7 @@ trait Base public static string $GET_CACHE_HEALTH = 'get_cache_health'; public static string $GET_TIME_HEALTH = 'get_time_health'; public static string $GET_WEBHOOKS_QUEUE_HEALTH = 'get_webhooks_queue_health'; - public static string $GET_LOGS_QUEUE_HEALTH = 'get_logs_queue_health'; + public static string $GET_AUDITS_QUEUE_HEALTH = 'get_audits_queue_health'; public static string $GET_CERTIFICATES_QUEUE_HEALTH = 'get_certificates_queue_health'; public static string $GET_FUNCTION_QUEUE_HEALTH = 'get_functions_queue_health'; public static string $GET_LOCAL_STORAGE_HEALTH = 'get_local_storage_health'; @@ -1654,9 +1654,9 @@ trait Base size } }'; - case self::$GET_LOGS_QUEUE_HEALTH: - return 'query getLogsQueueHealth { - healthGetQueueLogs { + case self::$GET_AUDITS_QUEUE_HEALTH: + return 'query getAuditsQueueHealth { + healthGetQueueAudits { size } }'; diff --git a/tests/e2e/Services/GraphQL/HealthTest.php b/tests/e2e/Services/GraphQL/HealthTest.php index 76153a751c..c4ca542f8d 100644 --- a/tests/e2e/Services/GraphQL/HealthTest.php +++ b/tests/e2e/Services/GraphQL/HealthTest.php @@ -121,7 +121,7 @@ class HealthTest extends Scope public function testGetLogsQueueHealth() { $projectId = $this->getProject()['$id']; - $query = $this->getQuery(self::$GET_LOGS_QUEUE_HEALTH); + $query = $this->getQuery(self::$GET_AUDITS_QUEUE_HEALTH); $graphQLPayload = [ 'query' => $query, ];