From fed50cb96dc99ea23ca974bbb4714b5ef12a26f1 Mon Sep 17 00:00:00 2001 From: anikeev-yadro Date: Tue, 27 Sep 2022 11:56:01 +0300 Subject: [PATCH] Set limit to 1000 in GET VM details query to sbercloud By default sbercloud API returns only first 25 VMs per query Signed-off-by: anikeev-yadro --- pytest_tests/helpers/sbercloud_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_tests/helpers/sbercloud_helper.py b/pytest_tests/helpers/sbercloud_helper.py index 4dee59b..2441a7e 100644 --- a/pytest_tests/helpers/sbercloud_helper.py +++ b/pytest_tests/helpers/sbercloud_helper.py @@ -209,7 +209,7 @@ class SberCloud: return nodes_by_ip[0]['id'] def get_ecs_nodes(self) -> list[dict]: - response = self.ecs_requests.get("/detail").json() + response = self.ecs_requests.get("/detail", {"limit": "1000"}).json() return response["servers"] def start_node(self, node_id: Optional[str] = None, node_ip: Optional[str] = None) -> None: