From 34b17f363d5474d83fba72ab9997e02fafb6b52f Mon Sep 17 00:00:00 2001 From: Phan Le Date: Wed, 12 Jul 2023 16:24:23 -0700 Subject: [PATCH] Add test skeleton test_snapshot_cr Longhorn-6298 Signed-off-by: Phan Le --- manager/integration/tests/test_snapshot.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/manager/integration/tests/test_snapshot.py b/manager/integration/tests/test_snapshot.py index 573c8f1ec0..41d831f00e 100644 --- a/manager/integration/tests/test_snapshot.py +++ b/manager/integration/tests/test_snapshot.py @@ -659,3 +659,16 @@ def wait_for_snapshot_checksums_generate(volume_name): # NOQA assert snapshot_checksums_generate return count + +@pytest.mark.skip(reason="TODO") # NOQA +def test_snapshot_cr(): # NOQA + """ + GitHub ticket: https://github.com/longhorn/longhorn/issues/6298 + + 1. set auto-cleanup-system-generated-snapshots to true + 2. Create and attach a volume with 3 replicas + 3. Delete one of the volumes replicas. + 4. Wait for the replica to rebuild and volume become healthy + 5. Verify that there is one Longhorn snapshot CR of this volume + 6. Repeat steps 3-5 about 10 times + """