Update test cases about maximum field number 64 (#21239)

Signed-off-by: nico <cheng.yuan@zilliz.com>

Signed-off-by: nico <cheng.yuan@zilliz.com>
pull/21242/head
NicoYuan1986 2022-12-14 19:31:23 +08:00 committed by GitHub
parent 2c95411e0f
commit 7ecdee9398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -986,6 +986,7 @@ class TestCollectionParams(TestcaseBase):
check_items={exp_name: c_name, exp_schema: schema})
@pytest.mark.tags(CaseLabel.L2)
@pytest.mark.xfail(reason="issue #21238")
def test_create_collection_over_maximum_fields(self):
"""
target: Test create collection with more than the maximum fields
@ -1003,7 +1004,7 @@ class TestCollectionParams(TestcaseBase):
int_fields.append(cf.gen_float_vec_field())
int_fields.append(cf.gen_int64_field(is_primary=True))
schema = cf.gen_collection_schema(fields=int_fields)
error = {ct.err_code: 1, ct.err_msg: "maximum field's number should be limited to 256"}
error = {ct.err_code: 1, ct.err_msg: "maximum field's number should be limited to 64"}
self.collection_wrap.init_collection(c_name, schema=schema, check_task=CheckTasks.err_res, check_items=error)
@ -1689,6 +1690,7 @@ class TestCreateCollectionInvalid(TestcaseBase):
"""
@pytest.mark.tags(CaseLabel.L2)
@pytest.mark.xfail(reason="issue #21238")
def test_create_collection_limit_fields(self):
"""
target: test create collection with maximum fields
@ -1708,7 +1710,7 @@ class TestCreateCollectionInvalid(TestcaseBase):
field_name_tmp = gen_unique_str("field_name")
field_schema_temp = cf.gen_int64_field(field_name_tmp)
field_schema_list.append(field_schema_temp)
error = {ct.err_code: 1, ct.err_msg: "'maximum field\'s number should be limited to 256'"}
error = {ct.err_code: 1, ct.err_msg: "'maximum field\'s number should be limited to 64'"}
schema, _ = self.collection_schema_wrap.init_collection_schema(fields=field_schema_list)
self.init_collection_wrap(name=c_name, schema=schema, check_task=CheckTasks.err_res, check_items=error)