mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
test: enable partition key isolatio testcases in ci (#39531)
related: https://github.com/milvus-io/milvus/issues/39407 Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
parent
e0b26260f2
commit
176ef631bc
@ -18,9 +18,9 @@ fake = faker.Faker()
|
|||||||
prefix = "par_key_isolation_"
|
prefix = "par_key_isolation_"
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.tags(CaseLabel.L1)
|
||||||
class TestPartitionKeyIsolation(TestcaseBase):
|
class TestPartitionKeyIsolation(TestcaseBase):
|
||||||
""" Test case of partition key isolation"""
|
""" Test case of partition key isolation"""
|
||||||
@pytest.mark.tags(CaseLabel.L3)
|
|
||||||
def test_par_key_isolation_with_valid_expr(self):
|
def test_par_key_isolation_with_valid_expr(self):
|
||||||
# create
|
# create
|
||||||
self._connect()
|
self._connect()
|
||||||
@ -123,7 +123,6 @@ class TestPartitionKeyIsolation(TestcaseBase):
|
|||||||
log.info(f"true res {true_res}")
|
log.info(f"true res {true_res}")
|
||||||
assert len(res[0]) == len(true_res)
|
assert len(res[0]) == len(true_res)
|
||||||
|
|
||||||
@pytest.mark.tags(CaseLabel.L3)
|
|
||||||
def test_par_key_isolation_with_unsupported_expr(self):
|
def test_par_key_isolation_with_unsupported_expr(self):
|
||||||
# create
|
# create
|
||||||
self._connect()
|
self._connect()
|
||||||
@ -229,7 +228,6 @@ class TestPartitionKeyIsolation(TestcaseBase):
|
|||||||
log.info(f"search with unsupported expr {false_result}, but not raise error\n")
|
log.info(f"search with unsupported expr {false_result}, but not raise error\n")
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
@pytest.mark.tags(CaseLabel.L3)
|
|
||||||
def test_par_key_isolation_without_partition_key(self):
|
def test_par_key_isolation_without_partition_key(self):
|
||||||
# create
|
# create
|
||||||
self._connect()
|
self._connect()
|
||||||
@ -263,7 +261,6 @@ class TestPartitionKeyIsolation(TestcaseBase):
|
|||||||
log.info(f"set_properties failed without partition key {e}")
|
log.info(f"set_properties failed without partition key {e}")
|
||||||
assert "partition key isolation mode is enabled but no partition key field is set" in str(e)
|
assert "partition key isolation mode is enabled but no partition key field is set" in str(e)
|
||||||
|
|
||||||
@pytest.mark.tags(CaseLabel.L3)
|
|
||||||
def test_set_par_key_isolation_after_vector_indexed(self):
|
def test_set_par_key_isolation_after_vector_indexed(self):
|
||||||
# create
|
# create
|
||||||
self._connect()
|
self._connect()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user