Skip to content

Commit

Permalink
remove tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmyagkov committed Jan 14, 2025
1 parent 47b8069 commit 69a8967
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions cloud/blockstore/tests/csi_driver/e2e_tests_part1/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,30 +152,8 @@ def test_publish_volume_twice_on_the_same_node(access_type, vm_mode):
csi.cleanup_after_test(env, volume_name, access_type, [pod_id1, pod_id2])


# test can be removed after migration of all endpoints to the new format
@pytest.mark.parametrize('access_type', ["mount", "block"])
def test_restart_kubelet_with_old_format_endpoint(access_type):
env, run = csi.init()
try:
volume_name = "example-disk"
volume_size = 1024 ** 3
pod_name1 = "example-pod-1"
pod_id1 = "deadbeef1"
env.csi.create_volume(name=volume_name, size=volume_size)
# skip stage to create endpoint with old format
env.csi.publish_volume(pod_id1, volume_name, pod_name1, access_type)
# run stage/publish again to simulate kubelet restart
env.csi.stage_volume(volume_name, access_type)
env.csi.publish_volume(pod_id1, volume_name, pod_name1, access_type)
except subprocess.CalledProcessError as e:
csi.log_called_process_error(e)
raise
finally:
csi.cleanup_after_test(env, volume_name, access_type, [pod_id1])


@pytest.mark.parametrize('access_type', ["mount", "block"])
def test_restart_kubelet_with_new_format_endpoint(access_type):
def test_kubelet_restart(access_type):
env, run = csi.init()
try:
volume_name = "example-disk"
Expand Down

0 comments on commit 69a8967

Please sign in to comment.