Skip to content

Commit 47a6a78

Browse files
committed
fix: milvus standalone test
Addded cleanup to remove etcd pvc not removed after a previous test run.
1 parent a469832 commit 47a6a78

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tests/kind/milvus_standalone_test.ipy

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,19 @@ from nuvolaris.milvus_simple_client import MilvusSimpleClient as MilvusClient
2828
from nuvolaris.user_config import UserConfig
2929
from nuvolaris.user_metadata import UserMetadata
3030

31-
# tu.enable_debug_logging()
31+
32+
#tu.enable_debug_logging()
33+
### Initial cleanup
34+
!kubectl -n nuvolaris delete all --all
35+
!kubectl -n nuvolaris delete pvc --all
36+
3237
# test
3338
assert(cfg.configure(tu.load_sample_config()))
3439
assert(cfg.detect_storage()["nuvolaris.storageclass"])
3540

3641
# for this test minioClient and Milvus should see this env variable
3742
os.environ['MINIO_API_HOST']='localhost'
3843
os.environ['MILVUS_API_HOST']='localhost'
39-
os.environ['MILVUS_ROOT_PASSWORD']='An0therPa55'
4044

4145
assert(etcd.create())
4246
assert(minio.create())
@@ -88,3 +92,8 @@ assert(milvus.delete_ow_milvus(ucfg))
8892
assert(milvus.delete())
8993
assert(etcd.delete())
9094
assert(minio.delete())
95+
96+
# final cleanup
97+
!kubectl -n nuvolaris delete all --all
98+
# etcd pvc in particular
99+
!kubectl -n nuvolaris delete pvc --all

0 commit comments

Comments
 (0)