mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
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:
parent
90809d1d86
commit
898e6d6e94
@ -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
|
||||
|
||||
|
||||
@ -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)",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user