mirror of https://github.com/milvus-io/milvus.git
Fix describe_index test cases
Signed-off-by: XuanYang-cn <xuan.yang@zilliz.com>pull/4973/head^2
parent
ae227cfce8
commit
403212c5fa
|
@ -518,7 +518,7 @@ func (node *ProxyNode) DescribeIndex(ctx context.Context, request *milvuspb.Desc
|
|||
if err != nil {
|
||||
return &milvuspb.DescribeIndexResponse{
|
||||
Status: &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR,
|
||||
ErrorCode: dit.result.Status.GetErrorCode(),
|
||||
Reason: err.Error(),
|
||||
},
|
||||
}, nil
|
||||
|
|
|
@ -2,7 +2,7 @@ grpcio==1.26.0
|
|||
grpcio-tools==1.26.0
|
||||
numpy==1.18.1
|
||||
pytest-cov==2.8.1
|
||||
pymilvus-distributed==0.0.36
|
||||
pymilvus-distributed==0.0.37
|
||||
sklearn==0.0
|
||||
pytest==4.5.0
|
||||
pytest-timeout==1.3.3
|
||||
|
|
|
@ -419,6 +419,7 @@ class TestIndexBase:
|
|||
The following cases are used to test `drop_index` function
|
||||
******************************************************************
|
||||
"""
|
||||
@pytest.mark.tags("0331")
|
||||
def test_drop_index(self, connect, collection, get_simple_index):
|
||||
'''
|
||||
target: test drop index interface
|
||||
|
@ -432,6 +433,7 @@ class TestIndexBase:
|
|||
assert not index
|
||||
|
||||
@pytest.mark.level(2)
|
||||
@pytest.mark.tags("0331")
|
||||
def test_drop_index_repeatedly(self, connect, collection, get_simple_index):
|
||||
'''
|
||||
target: test drop index repeatedly
|
||||
|
@ -489,6 +491,7 @@ class TestIndexBase:
|
|||
connect.create_index(collection, field_name, get_simple_index)
|
||||
connect.drop_index(collection, field_name)
|
||||
|
||||
@pytest.mark.tags("0331")
|
||||
def test_drop_index_ip(self, connect, collection, get_simple_index):
|
||||
'''
|
||||
target: test drop index interface
|
||||
|
@ -503,6 +506,7 @@ class TestIndexBase:
|
|||
assert not index
|
||||
|
||||
@pytest.mark.level(2)
|
||||
@pytest.mark.tags("0331")
|
||||
def test_drop_index_repeatedly_ip(self, connect, collection, get_simple_index):
|
||||
'''
|
||||
target: test drop index repeatedly
|
||||
|
@ -714,6 +718,7 @@ class TestIndexBinary:
|
|||
The following cases are used to test `drop_index` function
|
||||
******************************************************************
|
||||
"""
|
||||
@pytest.mark.tags("0331")
|
||||
def test_drop_index(self, connect, binary_collection, get_jaccard_index):
|
||||
'''
|
||||
target: test drop index interface
|
||||
|
@ -727,6 +732,7 @@ class TestIndexBinary:
|
|||
binary_index = connect.describe_index(binary_collection, binary_field_name)
|
||||
assert not binary_index
|
||||
|
||||
@pytest.mark.tags("0331")
|
||||
def test_drop_index_partition(self, connect, binary_collection, get_jaccard_index):
|
||||
'''
|
||||
target: test drop index interface
|
||||
|
|
Loading…
Reference in New Issue