Skip to content

Commit

Permalink
- Fixing job-service integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akumar074 committed Dec 8, 2022
1 parent 3d16dfb commit 929dd94
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public void setPostgreSqlURL(String postgreSqlURL, String username, String passw
addEnv("QUARKUS_DATASOURCE_PASSWORD", password);
addEnv("QUARKUS_FLYWAY_MIGRATE_AT_START", "true");
addEnv("QUARKUS_FLYWAY_BASELINE_ON_MIGRATE", "true");
addEnv("QUARKUS_FLYWAY_CLEAN_AT_START", "true");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ protected void configurePostgreSQLToService(Collection<GenericContainer<?>> cont
service.addEnv("QUARKUS_DATASOURCE_USERNAME", username);
service.addEnv("QUARKUS_DATASOURCE_PASSWORD", password);
service.addEnv("QUARKUS_DATASOURCE_DB-KIND", "postgresql");
service.addEnv("QUARKUS_FLYWAY_MIGRATE_AT_START", "true");
service.addEnv("QUARKUS_FLYWAY_BASELINE_ON_MIGRATE", "true");
service.addEnv("QUARKUS_FLYWAY_CLEAN_AT_START", "false");
});
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void init(JobServiceTestResource annotation) {
if (annotation.dataIndexEnabled()) {
DataIndexPostgreSqlContainer container = new DataIndexPostgreSqlContainer();
container.addProtoFileFolder();
KogitoPostgreSqlContainer postgresql = new KogitoPostgreSqlContainer().withInitScript("data_index_postgresql_create.sql");
KogitoPostgreSqlContainer postgresql = new KogitoPostgreSqlContainer();
resource.withServiceContainer("data-index", container, postgresql);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,24 +65,6 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>com.coderplus.maven.plugins</groupId>
<artifactId>copy-rename-maven-plugin</artifactId>
<executions>
<execution>
<id>copy-postgresql-file</id>
<phase>generate-sources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<sourceFile>${project.root.dir}/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/data_index_create.sql</sourceFile>
<destinationFile>${project.basedir}/target/classes/data_index_postgresql_create.sql</destinationFile>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 929dd94

Please sign in to comment.