forked from TrueCloudLab/frostfs-testcases
Add await to delete container
Signed-off-by: anikeev-yadro <a.anikeev@yadro.com>
This commit is contained in:
parent
d9474b9bc9
commit
2151f0e446
2 changed files with 9 additions and 1 deletions
|
@ -25,6 +25,7 @@ from steps.cluster_test_base import ClusterTestBase
|
|||
from steps.session_token import ContainerVerb, get_container_signed_token
|
||||
|
||||
|
||||
@pytest.mark.static_session_container
|
||||
class TestSessionTokenContainer(ClusterTestBase):
|
||||
@pytest.fixture(scope="module")
|
||||
def static_sessions(
|
||||
|
@ -136,6 +137,7 @@ class TestSessionTokenContainer(ClusterTestBase):
|
|||
session_token=static_sessions[ContainerVerb.DELETE],
|
||||
shell=self.shell,
|
||||
endpoint=self.cluster.default_rpc_endpoint,
|
||||
await_mode=True,
|
||||
)
|
||||
|
||||
assert cid not in list_containers(
|
||||
|
|
|
@ -178,6 +178,7 @@ def delete_container(
|
|||
endpoint: str,
|
||||
force: bool = False,
|
||||
session_token: Optional[str] = None,
|
||||
await_mode: bool = False,
|
||||
) -> None:
|
||||
"""
|
||||
A wrapper for `neofs-cli container delete` call.
|
||||
|
@ -193,7 +194,12 @@ def delete_container(
|
|||
|
||||
cli = NeofsCli(shell, NEOFS_CLI_EXEC, WALLET_CONFIG)
|
||||
cli.container.delete(
|
||||
wallet=wallet, cid=cid, rpc_endpoint=endpoint, force=force, session=session_token
|
||||
wallet=wallet,
|
||||
cid=cid,
|
||||
rpc_endpoint=endpoint,
|
||||
force=force,
|
||||
session=session_token,
|
||||
await_mode=await_mode,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue