Skip to content

Commit

Permalink
test(integration): support v2 volume test in test_snapshot.py
Browse files Browse the repository at this point in the history
ref longhorn/longhorn-9760

Signed-off-by: Chris Chien <[email protected]>
(cherry picked from commit 5b6c376)
  • Loading branch information
chriscchien authored and mergify[bot] committed Feb 25, 2025
1 parent e1b4500 commit 20b97a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions manager/integration/tests/test_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def test_snapshot_hash_global_fast_check_without_immediate_hash(client, volume_n
SNAPSHOT_DATA_INTEGRITY_IGNORED) # NOQA


@pytest.mark.v2_volume_test # NOQA
def test_snapshot_hash_global_disabled_with_immediate_hash(client, volume_name, settings_reset): # NOQA
"""
Check snapshots' checksums are not calculated when
Expand All @@ -112,6 +113,7 @@ def test_snapshot_hash_global_disabled_with_immediate_hash(client, volume_name,
SNAPSHOT_DATA_INTEGRITY_IGNORED)


@pytest.mark.v2_volume_test # NOQA
def test_snapshot_hash_global_disabled_without_immediate_hash(client, volume_name, settings_reset): # NOQA
"""
Check snapshots' checksums are not calculated when
Expand Down Expand Up @@ -191,6 +193,7 @@ def test_snapshot_hash_global_disabled_and_per_volume_fast_check_and_without_imm
SNAPSHOT_DATA_INTEGRITY_FAST_CHECK)


@pytest.mark.v2_volume_test # NOQA
def test_snapshot_hash_global_enabled_and_per_volume_disable_and_with_immediate_hash(client, volume_name, settings_reset): # NOQA
"""
Check snapshots' checksums are not calculated
Expand All @@ -206,6 +209,7 @@ def test_snapshot_hash_global_enabled_and_per_volume_disable_and_with_immediate_
SNAPSHOT_DATA_INTEGRITY_DISABLED)


@pytest.mark.v2_volume_test # NOQA
def test_snapshot_hash_global_enabled_and_per_volume_disable_and_without_immediate_hash(client, volume_name, settings_reset): # NOQA
"""
Check snapshots' checksums are not calculated
Expand All @@ -221,6 +225,7 @@ def test_snapshot_hash_global_enabled_and_per_volume_disable_and_without_immedia
SNAPSHOT_DATA_INTEGRITY_DISABLED)


@pytest.mark.v2_volume_test # NOQA
def test_snapshot_hash_global_fast_check_and_per_volume_disable_and_with_immediate_hash(client, volume_name, settings_reset): # NOQA
"""
Check snapshots' checksums are not calculated
Expand All @@ -236,6 +241,7 @@ def test_snapshot_hash_global_fast_check_and_per_volume_disable_and_with_immedia
SNAPSHOT_DATA_INTEGRITY_DISABLED)


@pytest.mark.v2_volume_test # NOQA
def test_snapshot_hash_global_fast_check_and_per_volume_disable_and_without_immediate_hash(client, volume_name, settings_reset): # NOQA
"""
Check snapshots' checksums are not calculated
Expand Down Expand Up @@ -683,6 +689,7 @@ def wait_for_snapshot_checksums_generate(volume_name): # NOQA
return count


@pytest.mark.v2_volume_test # NOQA
def test_snapshot_cr(client, volume_name, settings_reset): # NOQA
"""
GitHub ticket: https://github.com/longhorn/longhorn/issues/6298
Expand Down

0 comments on commit 20b97a8

Please sign in to comment.