Skip to content

Commit

Permalink
add or modify testcases for 2.4 (#875) (#876)
Browse files Browse the repository at this point in the history
Signed-off-by: yongpengli-z <[email protected]>
  • Loading branch information
yongpengli-z authored Apr 23, 2024
1 parent 1d6f1f3 commit 64e42bf
Show file tree
Hide file tree
Showing 24 changed files with 3,964 additions and 1,952 deletions.
10 changes: 5 additions & 5 deletions tests/milvustest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.19.6</version>
<version>3.24.0</version>
</dependency>
<!--Allure-->
<dependency>
Expand All @@ -106,10 +106,10 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.apache.logging.log4j</groupId>-->
<!-- <artifactId>log4j-slf4j-impl</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@SpringBootTest(classes = MilvustestApplication.class)
@WebAppConfiguration
public class BaseCloudTest extends AbstractTestNGSpringContextTests {
public static final Logger logger= LoggerFactory.getLogger(BaseCloudTest.class);
// public static final Logger logger= LoggerFactory.getLogger(BaseCloudTest.class);
public static final MilvusServiceClient milvusCloudClient =
new MilvusServiceClient(
ConnectParam.newBuilder()
Expand All @@ -47,7 +47,7 @@ public class BaseCloudTest extends AbstractTestNGSpringContextTests {
.withSecure(true)
.build());

@BeforeSuite(alwaysRun = true)
// @BeforeSuite(alwaysRun = true)
public void initCollection() {
logger.info(
"**************************************************BeforeSuit**********************");
Expand All @@ -67,7 +67,7 @@ public void initCollection() {
milvusCloudClient.createDatabase(CreateDatabaseParam.newBuilder().withDatabaseName(CommonData.databaseName1).build());
}

@AfterSuite(alwaysRun = true)
// @AfterSuite(alwaysRun = true)
public void cleanTestData() {
logger.info(
"**************************************************AfterSuit**********************");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ public class CommonData {
public static String defaultVectorField = "book_intro";
public static String defaultPartitionField="book_name";
public static String defaultBinaryVectorField = "BinaryVectorFieldAutoTest";
public static String defaultFloat16VectorField = "Float16VectorField";
public static String defaultBF16VectorField = "BF16VectorField";
public static String defaultSparseVectorField = "SparseFloatVectorField";
public static String defaultIndex = "FloatVectorIndex";

public static String defaultBinaryIndex = "BinaryVectorIndex";
Expand All @@ -33,5 +36,7 @@ public class CommonData {
public static String defaultRoleName2 = "roleTest2";
public static String databaseName1="db1";
public static String databaseName2="db2";

public static int dim=128;
}

Loading

0 comments on commit 64e42bf

Please sign in to comment.