Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
fix postgres tests
Browse files Browse the repository at this point in the history
  • Loading branch information
v1r3n committed Mar 20, 2023
1 parent 7d8c9ec commit d1b2c6d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public PostgresQueueDAO postgresQueueDAO(

@Bean
@DependsOn({"flywayForPrimaryDb"})
@Conditional(PostgresIndexConditions.PostgresIndexingEnabled.class)
@ConditionalOnProperty(name = "conductor.indexing.type", havingValue = "postgres")
public PostgresIndexDAO postgresIndexDAO(
@Qualifier("postgresRetryTemplate") RetryTemplate retryTemplate,
ObjectMapper objectMapper) {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringRunner;

import com.netflix.conductor.common.config.TestObjectMapperConfiguration;
Expand All @@ -53,6 +54,12 @@
FlywayAutoConfiguration.class
})
@RunWith(SpringRunner.class)
@TestPropertySource(
properties = {
"conductor.app.asyncIndexingEnabled=false",
"conductor.elasticsearch.version=0",
"conductor.indexing.type=postgres"
})
@SpringBootTest
public class PostgresIndexDAOTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
@TestPropertySource(
properties = {
"conductor.db.type=postgres",
"conductor.app.asyncIndexingEnabled=false",
"conductor.elasticsearch.version=6",
"conductor.grpc-server.port=8098",
"conductor.indexing.type=elasticsearch",
"spring.datasource.url=jdbc:tc:postgresql:11.15-alpine:///conductor", // "tc" prefix
// starts the
// Postgres container
Expand Down

0 comments on commit d1b2c6d

Please sign in to comment.