From ab5a7f423562479aa400ff9b60cce03acf82be14 Mon Sep 17 00:00:00 2001 From: ThreadDao Date: Tue, 9 Nov 2021 19:48:36 +0800 Subject: [PATCH] [skip ci] Add skipped compaction cases (#11502) Signed-off-by: ThreadDao --- .../testcases/test_compaction.py | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/tests/python_client/testcases/test_compaction.py b/tests/python_client/testcases/test_compaction.py index 3387272de3..48ef1b9655 100644 --- a/tests/python_client/testcases/test_compaction.py +++ b/tests/python_client/testcases/test_compaction.py @@ -16,6 +16,34 @@ class TestCompactionParams(TestcaseBase): """ pass + @pytest.mark.tags(CaseLabel.L2) + def test_compact_twice(self): + """ + target: test compact twice + method: compact twice + expected: No exception + """ + pass + + @pytest.mark.tags(CaseLabel.L2) + def test_compact_partition(self): + """ + target: test compact partition + method: compact partition + expected: Verify partition segments merged + """ + pass + + @pytest.mark.tags(CaseLabel.L2) + def test_compact_growing_segment(self): + """ + target: test compact growing data + method: 1.insert into multi segments without flush + 2.compact + expected: No compaction (compact just for sealed data) + """ + pass + @pytest.mark.tags(CaseLabel.L2) def test_compact_empty_collection(self): """ @@ -25,6 +53,40 @@ class TestCompactionParams(TestcaseBase): """ pass + @pytest.mark.tags(CaseLabel.L2) + def test_compact_after_delete_single(self): + """ + target: test delete one entity and compact + method: 1.create with shard_num=1 + 2.delete one sealed entity + 2.compact + expected: Verify compact result todo + """ + pass + + @pytest.mark.tags(CaseLabel.L2) + def test_compact_after_delete_half(self): + """ + target: test delete half entity and compact + method: 1.create with shard_num=1 + 2.insert and flush + 3.delete half of nb + 4.compact + expected: collection num_entities decrease + """ + pass + + @pytest.mark.tags(CaseLabel.L2) + def test_compact_after_delete_all(self): + """ + target: test delete all and compact + method: 1.create with shard_num=1 + 2.delete all sealed data + 3.compact + expected: collection num_entities is close to 0 + """ + pass + @pytest.mark.skip(reason="Waiting for development") class TestCompactionOperation(TestcaseBase):