fix: [master]update ngram test error codes to match actual server responses (#46675)

- Updates e2e test error code and message after pymilvus update

see #46677

Signed-off-by: silas.jiang <silas.jiang@zilliz.com>
Co-authored-by: silas.jiang <silas.jiang@zilliz.com>
This commit is contained in:
jac 2025-12-30 13:07:20 +08:00 committed by GitHub
parent 90809d1d86
commit 898e6d6e94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -28,8 +28,8 @@ pytest-parallel
pytest-random-order
# pymilvus
pymilvus==2.7.0rc95
pymilvus[bulk_writer]==2.7.0rc95
pymilvus==2.7.0rc97
pymilvus[bulk_writer]==2.7.0rc97
# for protobuf
protobuf>=5.29.5

View File

@ -94,18 +94,18 @@ class NGRAM:
{
"description": "min_gram greater than max_gram",
"params": {"min_gram": 5, "max_gram": 3},
"expected": {"err_code": 999, "err_msg": "invalid min_gram or max_gram value for Ngram index"}
"expected": {"err_code": 1100, "err_msg": "invalid min_gram or max_gram value for Ngram index"}
},
# min_gram invalid with both specified
{
"description": "Invalid min_gram - negative value (both specified)",
"params": {"min_gram": -1, "max_gram": 3},
"expected": {"err_code": 999, "err_msg": "invalid min_gram or max_gram value for Ngram index"}
"expected": {"err_code": 1100, "err_msg": "invalid min_gram or max_gram value for Ngram index"}
},
{
"description": "Invalid min_gram - zero value (both specified)",
"params": {"min_gram": 0, "max_gram": 3},
"expected": {"err_code": 999, "err_msg": "Ngram index must specify both min_gram and max_gram"}
"expected": {"err_code": 1100, "err_msg": "invalid min_gram or max_gram value for Ngram index"}
},
{
"description": "Invalid min_gram - string type (both specified)",