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

Fix postgres tests #194

Merged
merged 1 commit into from
Mar 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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