Skip to content

Commit

Permalink
fix postgres tests (Netflix#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1r3n authored and JumasJM committed Nov 6, 2023
1 parent 145e19d commit 7c31632
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,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

0 comments on commit 7c31632

Please sign in to comment.