forked from TrueCloudLab/frostfs-testcases
[OBJECT-5670] test_container_creation_deletion_parallel extended
test_container_creation_deletion_parallel extended Signed-off-by: Mikhail Kadilov m.kadilov@yadro.com
This commit is contained in:
parent
6ee9b70d50
commit
d327e8149b
1 changed files with 26 additions and 25 deletions
|
@ -86,7 +86,9 @@ class TestContainer(ClusterTestBase):
|
||||||
containers_count = 3
|
containers_count = 3
|
||||||
wallet = default_wallet
|
wallet = default_wallet
|
||||||
placement_rule = "REP 2 IN X CBF 1 SELECT 2 FROM * AS X"
|
placement_rule = "REP 2 IN X CBF 1 SELECT 2 FROM * AS X"
|
||||||
|
iteration_count = 10
|
||||||
|
|
||||||
|
for iteration in range(iteration_count):
|
||||||
cids: list[str] = []
|
cids: list[str] = []
|
||||||
with reporter.step(f"Create {containers_count} containers"):
|
with reporter.step(f"Create {containers_count} containers"):
|
||||||
for _ in range(containers_count):
|
for _ in range(containers_count):
|
||||||
|
@ -113,7 +115,6 @@ class TestContainer(ClusterTestBase):
|
||||||
|
|
||||||
with reporter.step("Delete containers and check they were deleted"):
|
with reporter.step("Delete containers and check they were deleted"):
|
||||||
for cid in cids:
|
for cid in cids:
|
||||||
delete_container(wallet, cid, shell=self.shell, endpoint=self.cluster.default_rpc_endpoint)
|
delete_container(wallet, cid, shell=self.shell, endpoint=self.cluster.default_rpc_endpoint, await_mode=True)
|
||||||
self.tick_epoch()
|
containers_list = list_containers(wallet, shell=self.shell, endpoint=self.cluster.default_rpc_endpoint)
|
||||||
for cid in cids:
|
assert cid not in containers_list, "Container not deleted"
|
||||||
wait_for_container_deletion(wallet, cid, shell=self.shell, endpoint=self.cluster.default_rpc_endpoint)
|
|
||||||
|
|
Loading…
Reference in a new issue