[#345] Add new args for ContainerRequest #345

Merged
d.zayakin merged 1 commit from d.zayakin/frostfs-testcases:added-ns-args-for-container-request into master 2024-12-17 14:17:45 +00:00
2 changed files with 12 additions and 1 deletions

View file

@ -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]):

View file

@ -21,6 +21,9 @@ class ContainerRequest:
short_name: str | None = None
ns_name: str | None = None
d.zayakin marked this conversation as resolved Outdated

str | None

str | None

Done

Done
ns_zone: str | None = None
def __post_init__(self):
if self.ape_rules is None:
self.ape_rules = []