mirror of https://github.com/milvus-io/milvus.git
[test]Update the way to get collections of deploy test (#23077)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>pull/23096/head
parent
0d0dc95f9d
commit
c9ac005257
|
@ -46,7 +46,7 @@ def gen_search_param(index_type, metric_type="L2"):
|
|||
|
||||
def get_collections():
|
||||
try:
|
||||
with open("/tmp/ci_logs/all_collections.json", "r") as f:
|
||||
with open("/tmp/ci_logs/deploy_test_all_collections.json", "r") as f:
|
||||
data = json.load(f)
|
||||
collections = data["all"]
|
||||
except Exception as e:
|
||||
|
|
|
@ -22,6 +22,6 @@ class TestGetCollections(TestcaseBase):
|
|||
}
|
||||
with open("/tmp/ci_logs/all_collections.json", "w") as f:
|
||||
f.write(json.dumps(data))
|
||||
log.info(f"write {len(all_collections)} collections to /tmp/ci_logs/all_collections.json")
|
||||
log.info(f"write {len(all_collections)} collections to /tmp/ci_logs/deploy_test_all_collections.json")
|
||||
collections_in_json = get_collections()
|
||||
assert len(all_collections) == len(collections_in_json)
|
||||
|
|
Loading…
Reference in New Issue