Skip to content

Commit

Permalink
Update Spring Boot version in tests for Spring AI
Browse files Browse the repository at this point in the history
  • Loading branch information
mhalbritter committed Nov 22, 2024
1 parent 56fb2b7 commit cb4e7d0
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import io.spring.initializr.generator.test.project.ProjectStructure;
import io.spring.initializr.web.project.ProjectRequest;
import io.spring.start.site.SupportedBootVersion;
import io.spring.start.site.extension.AbstractExtensionTests;
import org.junit.jupiter.api.Test;

Expand Down Expand Up @@ -55,8 +54,7 @@ void createsCassandraServiceWhenReactive() {

@Test
void createsCassandraServiceWhenSpringAiIsSelected() {
ProjectRequest request = createProjectRequest(SupportedBootVersion.V3_3, "docker-compose",
"spring-ai-vectordb-cassandra");
ProjectRequest request = createProjectRequest("docker-compose", "spring-ai-vectordb-cassandra");
assertThat(composeFile(request)).hasSameContentAs(new ClassPathResource("compose/cassandra.yaml"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import io.spring.initializr.generator.test.project.ProjectStructure;
import io.spring.initializr.web.project.ProjectRequest;
import io.spring.start.site.SupportedBootVersion;
import io.spring.start.site.extension.AbstractExtensionTests;
import org.junit.jupiter.api.Test;

Expand Down Expand Up @@ -49,8 +48,7 @@ void createsElasticsearchService() {

@Test
void createsElasticsearchServiceWhenSpringAiModuleIsSelected() {
ProjectRequest request = createProjectRequest(SupportedBootVersion.V3_3, "docker-compose",
"spring-ai-vectordb-elasticsearch");
ProjectRequest request = createProjectRequest("docker-compose", "spring-ai-vectordb-elasticsearch");
assertThat(composeFile(request)).hasSameContentAs(new ClassPathResource("compose/elasticsearch.yaml"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import io.spring.initializr.generator.test.project.ProjectStructure;
import io.spring.initializr.web.project.ProjectRequest;
import io.spring.start.site.SupportedBootVersion;
import io.spring.start.site.extension.AbstractExtensionTests;
import org.junit.jupiter.api.Test;

Expand Down Expand Up @@ -49,8 +48,7 @@ void createsOracleFreeService() {

@Test
void createsOracleFreeServiceSpringAi() {
ProjectRequest request = createProjectRequest(SupportedBootVersion.V3_3, "docker-compose",
"spring-ai-vectordb-oracle");
ProjectRequest request = createProjectRequest("docker-compose", "spring-ai-vectordb-oracle");
assertThat(composeFile(request)).hasSameContentAs(new ClassPathResource("compose/oracle-free.yaml"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*/
class PgVectorProjectGenerationConfigurationTests extends AbstractExtensionTests {

private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.V3_3;
private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.latest();

@Test
void doesNothingWithoutDockerCompose() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*/
class RedisStackProjectGenerationConfigurationTests extends AbstractExtensionTests {

private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.V3_3;
private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.latest();

@Test
void doesNothingWithoutDockerCompose() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*/
class SpringAiChromaProjectGenerationConfigurationTests extends AbstractExtensionTests {

private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.V3_3;
private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.latest();

@Test
void doesNothingWithoutDockerCompose() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*/
class SpringAiDockerComposeProjectGenerationConfigurationTests extends AbstractExtensionTests {

private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.V3_3;
private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.latest();

@ParameterizedTest
@MethodSource("supportedDockerComposeSpringAiEntriesBuild")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*/
class SpringAiOllamaProjectGenerationConfigurationTests extends AbstractExtensionTests {

private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.V3_3;
private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.latest();

@Test
void doesNothingWithoutDockerCompose() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*/
class SpringAiQdrantProjectGenerationConfigurationTests extends AbstractExtensionTests {

private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.V3_3;
private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.latest();

@Test
void doesNothingWithoutDockerCompose() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*/
class SpringAiTestcontainersProjectGenerationConfigurationTests extends AbstractExtensionTests {

private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.V3_3;
private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.latest();

@ParameterizedTest
@MethodSource("supportedTestcontainersSpringAiEntriesBuild")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*/
class SpringAiWeaviateProjectGenerationConfigurationTests extends AbstractExtensionTests {

private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.V3_3;
private static final SupportedBootVersion BOOT_VERSION = SupportedBootVersion.latest();

@Test
void doesNothingWithoutDockerCompose() {
Expand Down

0 comments on commit cb4e7d0

Please sign in to comment.