forked from TrueCloudLab/frostfs-testcases
[#345] Add new args for ContainerRequest
Signed-off-by: Dmitriy Zayakin <d.zayakin@yadro.com>
This commit is contained in:
parent
29aca20956
commit
e68bee0f55
2 changed files with 12 additions and 1 deletions
|
@ -63,7 +63,15 @@ def _create_container_by_spec(
|
||||||
cluster: Cluster,
|
cluster: Cluster,
|
||||||
endpoint: str,
|
endpoint: str,
|
||||||
) -> 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]):
|
def _apply_ape_rules(cid: str, frostfs_cli: FrostfsCli, endpoint: str, ape_rules: list[ape.Rule]):
|
||||||
|
|
|
@ -21,6 +21,9 @@ class ContainerRequest:
|
||||||
|
|
||||||
short_name: str | None = None
|
short_name: str | None = None
|
||||||
|
|
||||||
|
ns_name: str = None
|
||||||
|
ns_zone: str = None
|
||||||
|
|
||||||
def __post_init__(self):
|
def __post_init__(self):
|
||||||
if self.ape_rules is None:
|
if self.ape_rules is None:
|
||||||
self.ape_rules = []
|
self.ape_rules = []
|
||||||
|
|
Loading…
Reference in a new issue