From 503f4ab1c19046cc3191203653147e0d80b790ea Mon Sep 17 00:00:00 2001 From: del-zhenwu <56623710+del-zhenwu@users.noreply.github.com> Date: Mon, 8 Jun 2020 19:36:55 +0800 Subject: [PATCH] Add http (#2505) * enable cron test on 0.10.0 Signed-off-by: zw * fix merge result Signed-off-by: shengjun.li * import test_during_creating_index_restart Signed-off-by: zw * add http test stage Signed-off-by: zw * remove Signed-off-by: zw Co-authored-by: zw Co-authored-by: shengjun.li --- ci/jenkins/step/singleDevNightlyTest.groovy | 1 + tests/milvus_python_test/{ => stability}/test_restart.py | 0 tests/milvus_python_test/test_index.py | 2 ++ 3 files changed, 3 insertions(+) rename tests/milvus_python_test/{ => stability}/test_restart.py (100%) diff --git a/ci/jenkins/step/singleDevNightlyTest.groovy b/ci/jenkins/step/singleDevNightlyTest.groovy index a5e3d17c..9ea5fd38 100644 --- a/ci/jenkins/step/singleDevNightlyTest.groovy +++ b/ci/jenkins/step/singleDevNightlyTest.groovy @@ -49,5 +49,6 @@ timeout(time: 180, unit: 'MINUTES') { } dir ("tests/milvus_python_test") { sh "pytest . --level=2 --alluredir=\"test_out/dev/single/sqlite\" --ip ${env.HELM_RELEASE_NAME}.milvus.svc.cluster.local" + sh "pytest . --level=1 --ip ${env.HELM_RELEASE_NAME}.milvus.svc.cluster.local --port=19121 --handler=HTTP" } } diff --git a/tests/milvus_python_test/test_restart.py b/tests/milvus_python_test/stability/test_restart.py similarity index 100% rename from tests/milvus_python_test/test_restart.py rename to tests/milvus_python_test/stability/test_restart.py diff --git a/tests/milvus_python_test/test_index.py b/tests/milvus_python_test/test_index.py index 238640bb..ca0b7dce 100644 --- a/tests/milvus_python_test/test_index.py +++ b/tests/milvus_python_test/test_index.py @@ -755,9 +755,11 @@ class TestIndexIP: index_param = get_simple_index["index_param"] index_type = get_simple_index["index_type"] logging.getLogger().info(get_simple_index) + logging.getLogger().info(connect.get_collection_info(ip_collection)) status, ids = connect.insert(ip_collection, vectors) status = connect.create_index(ip_collection, index_type, index_param) logging.getLogger().info(connect.get_index_info(ip_collection)) + logging.getLogger().info(connect.get_collection_stats(ip_collection)) query_vecs = [vectors[0], vectors[1], vectors[2]] top_k = 5 search_param = get_search_param(index_type) -- GitLab