提交 f4a9eab6 编写于 作者: P peng.xu

Merge branch 'branch-0.5.0' into 'branch-0.5.0'

Branch 0.5.0

See merge request megasearch/milvus!593

Former-commit-id: 816c8478abe931599572e54738192265df75092b
...@@ -146,7 +146,7 @@ std::string CurrentTmDate(int64_t offset_day = 0) { ...@@ -146,7 +146,7 @@ std::string CurrentTmDate(int64_t offset_day = 0) {
} }
TEST_F(RpcHandlerTest, HasTableTest) { TEST_F(RpcHandlerTest, HAS_TABLE_TEST) {
::grpc::ServerContext context; ::grpc::ServerContext context;
::milvus::grpc::TableName request; ::milvus::grpc::TableName request;
::milvus::grpc::BoolReply reply; ::milvus::grpc::BoolReply reply;
...@@ -158,7 +158,7 @@ TEST_F(RpcHandlerTest, HasTableTest) { ...@@ -158,7 +158,7 @@ TEST_F(RpcHandlerTest, HasTableTest) {
ASSERT_EQ(error_code, ::milvus::grpc::ErrorCode::SUCCESS); ASSERT_EQ(error_code, ::milvus::grpc::ErrorCode::SUCCESS);
} }
TEST_F(RpcHandlerTest, IndexTest) { TEST_F(RpcHandlerTest, INDEX_TEST) {
::grpc::ServerContext context; ::grpc::ServerContext context;
::milvus::grpc::IndexParam request; ::milvus::grpc::IndexParam request;
::milvus::grpc::Status response; ::milvus::grpc::Status response;
...@@ -194,7 +194,7 @@ TEST_F(RpcHandlerTest, IndexTest) { ...@@ -194,7 +194,7 @@ TEST_F(RpcHandlerTest, IndexTest) {
handler->DropIndex(&context, &table_name, &status); handler->DropIndex(&context, &table_name, &status);
} }
TEST_F(RpcHandlerTest, InsertTest) { TEST_F(RpcHandlerTest, INSERT_TEST) {
::grpc::ServerContext context; ::grpc::ServerContext context;
::milvus::grpc::InsertParam request; ::milvus::grpc::InsertParam request;
::milvus::grpc::Status response; ::milvus::grpc::Status response;
...@@ -213,7 +213,7 @@ TEST_F(RpcHandlerTest, InsertTest) { ...@@ -213,7 +213,7 @@ TEST_F(RpcHandlerTest, InsertTest) {
ASSERT_EQ(vector_ids.vector_id_array_size(), VECTOR_COUNT); ASSERT_EQ(vector_ids.vector_id_array_size(), VECTOR_COUNT);
} }
TEST_F(RpcHandlerTest, SearchTest) { TEST_F(RpcHandlerTest, SEARCH_TEST) {
::grpc::ServerContext context; ::grpc::ServerContext context;
::milvus::grpc::SearchParam request; ::milvus::grpc::SearchParam request;
::milvus::grpc::TopKQueryResultList response; ::milvus::grpc::TopKQueryResultList response;
...@@ -281,7 +281,7 @@ TEST_F(RpcHandlerTest, SearchTest) { ...@@ -281,7 +281,7 @@ TEST_F(RpcHandlerTest, SearchTest) {
handler->SearchInFiles(&context, &search_in_files_param, &response); handler->SearchInFiles(&context, &search_in_files_param, &response);
} }
TEST_F(RpcHandlerTest, TablesTest) { TEST_F(RpcHandlerTest, TABLES_TEST) {
::grpc::ServerContext context; ::grpc::ServerContext context;
::milvus::grpc::TableSchema tableschema; ::milvus::grpc::TableSchema tableschema;
::milvus::grpc::Status response; ::milvus::grpc::Status response;
...@@ -387,7 +387,7 @@ TEST_F(RpcHandlerTest, TablesTest) { ...@@ -387,7 +387,7 @@ TEST_F(RpcHandlerTest, TablesTest) {
ASSERT_EQ(error_code, ::milvus::grpc::ErrorCode::SUCCESS); ASSERT_EQ(error_code, ::milvus::grpc::ErrorCode::SUCCESS);
} }
TEST_F(RpcHandlerTest, CmdTest) { TEST_F(RpcHandlerTest, CMD_TEST) {
::grpc::ServerContext context; ::grpc::ServerContext context;
::milvus::grpc::Command command; ::milvus::grpc::Command command;
command.set_cmd("version"); command.set_cmd("version");
...@@ -401,7 +401,7 @@ TEST_F(RpcHandlerTest, CmdTest) { ...@@ -401,7 +401,7 @@ TEST_F(RpcHandlerTest, CmdTest) {
handler->Cmd(&context, &command, &reply); handler->Cmd(&context, &command, &reply);
} }
TEST_F(RpcHandlerTest, DeleteByRangeTest) { TEST_F(RpcHandlerTest, DELETE_BY_RANGE_TEST) {
::grpc::ServerContext context; ::grpc::ServerContext context;
::milvus::grpc::DeleteByRangeParam request; ::milvus::grpc::DeleteByRangeParam request;
::milvus::grpc::Status status; ::milvus::grpc::Status status;
...@@ -459,7 +459,7 @@ protected: ...@@ -459,7 +459,7 @@ protected:
} }
TEST_F(RpcSchedulerTest, BaseTaskTest){ TEST_F(RpcSchedulerTest, BASE_TASK_TEST){
auto status = task_ptr->Execute(); auto status = task_ptr->Execute();
ASSERT_TRUE(status.ok()); ASSERT_TRUE(status.ok());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册