mirror of https://github.com/milvus-io/milvus.git
Remove test.template (#1129)
* Update framework * remove files * Remove files * Remove ann-acc cases && Update java-sdk cases * change cn to en * [skip ci] remove doc test * [skip ci] change cn to en * Case stability * Add mail notification when test failed * Add main notification * Add main notification * gen milvus instance from utils * Distable case with multiprocess * Add mail notification when nightly test failed * add milvus handler param * add http handler * Remove test.template Co-authored-by: quicksilver <zhifeng.zhang@zilliz.com>pull/1095/head
parent
829cb4bbec
commit
effb934d77
|
@ -1,41 +0,0 @@
|
|||
'''
|
||||
Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
|
||||
Unauthorized copying of this file, via any medium is strictly prohibited.
|
||||
Proprietary and confidential.
|
||||
'''
|
||||
|
||||
'''
|
||||
Test Description:
|
||||
|
||||
This document is only a template to show how to write a auto-test script
|
||||
|
||||
本文档仅仅是个展示如何编写自动化测试脚本的模板
|
||||
|
||||
'''
|
||||
|
||||
import pytest
|
||||
from milvus import Milvus
|
||||
|
||||
|
||||
class TestConnection:
|
||||
def test_connect_localhost(self):
|
||||
|
||||
"""
|
||||
TestCase1.1
|
||||
Test target: This case is to check if the server can be connected.
|
||||
Test method: Call API: milvus.connect to connect local milvus server, ip address: 127.0.0.1 and port: 19530, check the return status
|
||||
Expectation: Return status is OK.
|
||||
|
||||
测试目的:本用例测试客户端是否可以与服务器建立连接
|
||||
测试方法:调用SDK API: milvus.connect方法连接本地服务器,IP地址:127.0.0.1,端口:19530,检查调用返回状态
|
||||
期望结果:返回状态是:OK
|
||||
|
||||
"""
|
||||
|
||||
milvus = Milvus()
|
||||
milvus.connect(host='127.0.0.1', port='19530')
|
||||
assert milvus.connected
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue