forked from TrueCloudLab/frostfs-testcases
[#343] Add new args for ContainerRequest
Signed-off-by: Dmitriy Zayakin <d.zayakin@yadro.com>
This commit is contained in:
parent
29aca20956
commit
e9c6b8c65c
2 changed files with 12 additions and 1 deletions
|
@ -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]):
|
||||
|
|
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue