Skip to content

Commit eea3801

Browse files
eddumelendeztzolov
authored andcommitted
Remove @testcontainers from HanaDB Tests
HanaDB tests don't rely on Testcontainers.
1 parent 656d238 commit eea3801

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

spring-ai-spring-boot-autoconfigure/src/test/java/org/springframework/ai/autoconfigure/vectorstore/hanadb/HanaCloudVectorStoreAutoConfigurationIT.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@
2727
import org.springframework.boot.autoconfigure.data.jdbc.JdbcRepositoriesAutoConfiguration;
2828
import org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration;
2929
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
30-
import org.testcontainers.junit.jupiter.Testcontainers;
3130

3231
import java.util.List;
3332

34-
@Testcontainers
3533
@EnabledIfEnvironmentVariable(named = "OPENAI_API_KEY", matches = ".+")
3634
@EnabledIfEnvironmentVariable(named = "HANA_DATASOURCE_URL", matches = ".+")
3735
@EnabledIfEnvironmentVariable(named = "HANA_DATASOURCE_USERNAME", matches = ".+")

vector-stores/spring-ai-hanadb-store/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,5 @@
7272
<scope>test</scope>
7373
</dependency>
7474

75-
<dependency>
76-
<groupId>org.testcontainers</groupId>
77-
<artifactId>junit-jupiter</artifactId>
78-
<scope>test</scope>
79-
</dependency>
8075
</dependencies>
8176
</project>

vector-stores/spring-ai-hanadb-store/src/test/java/org/springframework/ai/vectorstore/HanaCloudVectorStoreIT.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
2727
import org.slf4j.Logger;
2828
import org.slf4j.LoggerFactory;
29-
import org.testcontainers.junit.jupiter.Testcontainers;
3029

3130
import org.springframework.ai.document.Document;
3231
import org.springframework.ai.embedding.EmbeddingClient;
@@ -47,7 +46,6 @@
4746
* @author Rahul Mittal
4847
* @since 1.0.0
4948
*/
50-
@Testcontainers
5149
@EnabledIfEnvironmentVariable(named = "OPENAI_API_KEY", matches = ".+")
5250
@EnabledIfEnvironmentVariable(named = "HANA_DATASOURCE_URL", matches = ".+")
5351
@EnabledIfEnvironmentVariable(named = "HANA_DATASOURCE_USERNAME", matches = ".+")

0 commit comments

Comments
 (0)