From cb471f5a8eadf6ac2ca8977df795c104e4facb85 Mon Sep 17 00:00:00 2001 From: dettlaff Date: Fri, 20 Sep 2024 01:07:09 +0400 Subject: [PATCH] tests: add for swap --- tests/test_graphql/test_api_monitoring.py | 38 +++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/tests/test_graphql/test_api_monitoring.py b/tests/test_graphql/test_api_monitoring.py index b9c098f..2c34003 100644 --- a/tests/test_graphql/test_api_monitoring.py +++ b/tests/test_graphql/test_api_monitoring.py @@ -170,6 +170,17 @@ query Query { error } } + swapUsageOverall { + ... on MonitoringValues { + values { + timestamp + value + } + } + ... on MonitoringQueryError { + error + } + } start step } @@ -221,6 +232,17 @@ query Query($end: DateTime, $start: DateTime, $step: Int) { error } } + swapUsageOverall { + ... on MonitoringValues { + values { + timestamp + value + } + } + ... on MonitoringQueryError { + error + } + } start step } @@ -499,6 +521,14 @@ def test_graphql_get_memory_usage( }, ], }, + "swapUsageOverall": { + "values": [ + { + "timestamp": "1970-01-01T00:00:00", + "value": "zero", + }, + ], + }, "start": None, "step": 60, }, @@ -584,6 +614,14 @@ def test_graphql_get_memory_usage_with_options( }, ], }, + "swapUsageOverall": { + "values": [ + { + "timestamp": "1970-01-01T00:00:00", + "value": "zero", + }, + ], + }, "start": "2024-07-04T23:35:08", "step": 90, },