forked from TrueCloudLab/frostfs-testlib
Adding timeout for more cli actions
Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
parent
8ed26cef7d
commit
f2ecce44bf
6 changed files with 57 additions and 19 deletions
|
@ -16,6 +16,7 @@ class FrostfsCliStorageGroup(CliCommand):
|
|||
lifetime: Optional[int] = None,
|
||||
address: Optional[str] = None,
|
||||
xhdr: Optional[dict] = None,
|
||||
timeout: Optional[str] = None,
|
||||
) -> CommandResult:
|
||||
"""
|
||||
Put storage group to FrostFS.
|
||||
|
@ -30,6 +31,7 @@ class FrostfsCliStorageGroup(CliCommand):
|
|||
ttl: TTL value in request meta header.
|
||||
wallet: WIF (NEP-2) string or path to the wallet or binary key.
|
||||
xhdr: Dict with request X-Headers.
|
||||
timeout: Timeout for an operation (default 15s).
|
||||
|
||||
Returns:
|
||||
Command's result.
|
||||
|
@ -52,6 +54,7 @@ class FrostfsCliStorageGroup(CliCommand):
|
|||
lifetime: Optional[int] = None,
|
||||
address: Optional[str] = None,
|
||||
xhdr: Optional[dict] = None,
|
||||
timeout: Optional[str] = None,
|
||||
) -> CommandResult:
|
||||
"""
|
||||
Get storage group from FrostFS.
|
||||
|
@ -67,6 +70,7 @@ class FrostfsCliStorageGroup(CliCommand):
|
|||
ttl: TTL value in request meta header.
|
||||
wallet: WIF (NEP-2) string or path to the wallet or binary key.
|
||||
xhdr: Dict with request X-Headers.
|
||||
timeout: Timeout for an operation (default 15s).
|
||||
|
||||
Returns:
|
||||
Command's result.
|
||||
|
@ -87,6 +91,7 @@ class FrostfsCliStorageGroup(CliCommand):
|
|||
lifetime: Optional[int] = None,
|
||||
address: Optional[str] = None,
|
||||
xhdr: Optional[dict] = None,
|
||||
timeout: Optional[str] = None,
|
||||
) -> CommandResult:
|
||||
"""
|
||||
List storage groups in FrostFS container.
|
||||
|
@ -101,6 +106,7 @@ class FrostfsCliStorageGroup(CliCommand):
|
|||
ttl: TTL value in request meta header.
|
||||
wallet: WIF (NEP-2) string or path to the wallet or binary key.
|
||||
xhdr: Dict with request X-Headers.
|
||||
timeout: Timeout for an operation (default 15s).
|
||||
|
||||
Returns:
|
||||
Command's result.
|
||||
|
@ -122,6 +128,7 @@ class FrostfsCliStorageGroup(CliCommand):
|
|||
lifetime: Optional[int] = None,
|
||||
address: Optional[str] = None,
|
||||
xhdr: Optional[dict] = None,
|
||||
timeout: Optional[str] = None,
|
||||
) -> CommandResult:
|
||||
"""
|
||||
Delete storage group from FrostFS.
|
||||
|
@ -137,6 +144,7 @@ class FrostfsCliStorageGroup(CliCommand):
|
|||
ttl: TTL value in request meta header.
|
||||
wallet: WIF (NEP-2) string or path to the wallet or binary key.
|
||||
xhdr: Dict with request X-Headers.
|
||||
timeout: Timeout for an operation (default 15s).
|
||||
|
||||
Returns:
|
||||
Command's result.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue