From e68bee0f55cf5fcc61447feaabecbb1f6b28de25 Mon Sep 17 00:00:00 2001 From: Dmitriy Zayakin Date: Tue, 17 Dec 2024 13:02:02 +0300 Subject: [PATCH] [#345] Add new args for ContainerRequest Signed-off-by: Dmitriy Zayakin --- pytest_tests/helpers/container_creation.py | 10 +++++++++- pytest_tests/helpers/container_request.py | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pytest_tests/helpers/container_creation.py b/pytest_tests/helpers/container_creation.py index 5b4bcdd..e075846 100644 --- a/pytest_tests/helpers/container_creation.py +++ b/pytest_tests/helpers/container_creation.py @@ -63,7 +63,15 @@ def _create_container_by_spec( cluster: Cluster, endpoint: str, ) -> str: - return create_container(wallet, shell, endpoint, container_request.parsed_rule(cluster), wait_for_creation=False) + return create_container( + wallet, + shell, + endpoint, + container_request.parsed_rule(cluster), + wait_for_creation=False, + nns_zone=container_request.ns_zone, + nns_name=container_request.ns_name, + ) def _apply_ape_rules(cid: str, frostfs_cli: FrostfsCli, endpoint: str, ape_rules: list[ape.Rule]): diff --git a/pytest_tests/helpers/container_request.py b/pytest_tests/helpers/container_request.py index f45ec20..70886ff 100644 --- a/pytest_tests/helpers/container_request.py +++ b/pytest_tests/helpers/container_request.py @@ -21,6 +21,9 @@ class ContainerRequest: short_name: str | None = None + ns_name: str = None + ns_zone: str = None + def __post_init__(self): if self.ape_rules is None: self.ape_rules = []