Skip to content

Commit

Permalink
call listendpoints to be sure that nbs is running & refactor arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmyagkov committed Nov 5, 2024
1 parent ffa0ecc commit 531be5a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions cloud/blockstore/tests/e2e-tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,11 @@ def test_resize_device(with_netlink, with_endpoint_proxy):
socket_path,
)

run(
*("destroyvolume", "--disk-id", volume_name),
**{"input": volume_name},
result = run(
"destroyvolume",
"--disk-id",
volume_name,
input=volume_name,
)

if mount_dir is not None:
Expand Down Expand Up @@ -287,8 +289,10 @@ def test_do_not_restore_endpoint_with_missing_volume():
assert result.returncode == 0

result = run(
*("destroyvolume", "--disk-id", volume_name),
**{"input": volume_name},
"destroyvolume",
"--disk-id",
volume_name,
input=volume_name,
)
assert result.returncode == 0

Expand All @@ -301,5 +305,7 @@ def test_do_not_restore_endpoint_with_missing_volume():
shutil.rmtree(endpoints_dir)
shutil.copytree(backup_endpoints_dir, endpoints_dir)
env, run = init()
result = run("listendpoints")
assert result.returncode == 0
assert not os.listdir(endpoints_dir)
cleanup_after_test(env)

0 comments on commit 531be5a

Please sign in to comment.