[test]Fix deploy test (#21486)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/21489/head
zhuwenxing 2023-01-03 14:51:36 +08:00 committed by GitHub
parent e735485bb8
commit c3b57498db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
release=${1:-"milvs-chaos"}
milvus_mode=${2:-"cluster"}
ns=${2:-"chaos-testing"}
ns=${3:-"chaos-testing"}
bash uninstall_milvus.sh ${release} ${ns}|| true
helm repo add milvus https://milvus-io.github.io/milvus-helm/
@ -14,4 +14,4 @@ fi
if [[ ${milvus_mode} == "standalone" ]];
then
helm install --wait --timeout 360s ${release} milvus/milvus -f ../standalone-values.yaml --set metrics.serviceMonitor.enabled=true -n=${ns}
fi
fi

View File

@ -104,7 +104,7 @@ class TestActionFirstDeployment(TestDeployBase):
# init collection and insert with small size data without flush to get growing segment
collection_w = self.init_collection_general(insert_data=True, is_binary=is_binary, nb=3000,
is_flush=False, is_index=True, name=name)[0]
is_flush=False, is_index=False, name=name)[0]
# params for creating index
if is_binary:
default_index_field = ct.default_binary_vec_field_name
@ -155,7 +155,7 @@ class TestActionFirstDeployment(TestDeployBase):
# insert with flush multiple times to generate multiple sealed segment
for i in range(5):
self.init_collection_general(insert_data=True, is_binary=is_binary, nb=data_size,
is_flush=False, is_index=True, name=name)
is_flush=False, is_index=False, name=name)
# at this step, all segment are sealed
if pymilvus_version >= "2.2.0":
collection_w.flush()
@ -175,7 +175,7 @@ class TestActionFirstDeployment(TestDeployBase):
# get growing segment before reload
if segment_status == "all":
self.init_collection_general(insert_data=True, is_binary=is_binary, nb=3000,
is_flush=False, is_index=True, name=name)
is_flush=False, is_index=False, name=name)
# reload after flush and creating index
if replica_number > 0:
collection_w.release()
@ -185,7 +185,7 @@ class TestActionFirstDeployment(TestDeployBase):
# insert data to get growing segment after reload
if segment_status == "all":
self.init_collection_general(insert_data=True, is_binary=is_binary, nb=3000,
is_flush=False, is_index=True, name=name)
is_flush=False, is_index=False, name=name)
# search and query for sealed and growing segment
if replica_number > 0: