[test]Add drop and compact operation in chaos test (#23719)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
zhuwenxing 2023-04-27 09:18:45 +08:00 committed by GitHub
parent ed8836cd15
commit 979119362e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -4,10 +4,10 @@ import json
from time import sleep
from pymilvus import connections
from chaos.checker import (InsertChecker,
FlushChecker,
FlushChecker,
CompactChecker,
SearchChecker,
QueryChecker,
IndexChecker,
DeleteChecker,
Op)
from common.cus_resource_opts import CustomResourceOperations as CusResource
@ -53,7 +53,7 @@ class TestBase:
expect_create = constants.SUCC
expect_insert = constants.SUCC
expect_flush = constants.SUCC
expect_index = constants.SUCC
expect_compact = constants.SUCC
expect_search = constants.SUCC
expect_query = constants.SUCC
host = '127.0.0.1'
@ -84,9 +84,9 @@ class TestOperations(TestBase):
checkers = {
Op.insert: InsertChecker(collection_name=c_name),
Op.flush: FlushChecker(collection_name=c_name),
# Op.index: IndexChecker(collection_name=c_name),
Op.search: SearchChecker(collection_name=c_name),
Op.query: QueryChecker(collection_name=c_name),
Op.compact:CompactChecker(collection_name=c_name),
Op.delete: DeleteChecker(collection_name=c_name),
}
self.health_checkers = checkers

View File

@ -8,6 +8,7 @@ from chaos.checker import (CreateChecker,
QueryChecker,
IndexChecker,
DeleteChecker,
DropChecker,
Op)
from utils.util_log import test_log as log
from chaos import chaos_commons as cc
@ -56,6 +57,7 @@ class TestOperations(TestBase):
Op.search: SearchChecker(collection_name=c_name),
Op.query: QueryChecker(collection_name=c_name),
Op.delete: DeleteChecker(collection_name=c_name),
Op.drop:DropChecker(collection_name=c_name)
}
self.health_checkers = checkers