Skip to content

Commit

Permalink
Fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
codehackerr committed Nov 22, 2024
1 parent 5b9437c commit 9886fdb
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import org.junit.Before;
import org.junit.Test;
import org.springframework.test.context.TestPropertySource;

import com.netflix.conductor.common.metadata.tasks.TaskType;
import com.netflix.conductor.common.metadata.workflow.WorkflowDef;
Expand All @@ -33,6 +34,7 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

@TestPropertySource(properties = "conductor.app.workflow.name-validation.enabled=true")
public class WorkflowDefValidatorTest {

@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
@TestPropertySource(
properties = {
"conductor.workflow-execution-lock.type=postgres",
"spring.flyway.clean-disabled=false"
"spring.flyway.clean-disabled=false",
"conductor.app.workflow.name-validation.enabled=true"
})
@SpringBootTest
public class PostgresLockDAOTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"spring.datasource.password=postgres",
"spring.datasource.hikari.maximum-pool-size=8",
"spring.datasource.hikari.minimum-idle=300000",
"spring.flyway.clean-disabled=true"
"spring.flyway.clean-disabled=true",
"conductor.app.workflow.name-validation.enabled=true"
})
public class PostgresGrpcEndToEndTest extends AbstractGrpcEndToEndTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ package com.netflix.conductor.test.resiliency

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.http.HttpStatus
import org.springframework.test.context.TestPropertySource

import com.netflix.conductor.common.metadata.tasks.Task
import com.netflix.conductor.common.metadata.tasks.TaskResult
Expand All @@ -36,6 +37,7 @@ import com.netflix.conductor.test.base.AbstractResiliencySpecification
* 2. Succeeds
* 3. Doesn't involve QueueDAO
*/
@TestPropertySource(properties = "conductor.app.workflow.name-validation.enabled=true")
class QueueResiliencySpec extends AbstractResiliencySpecification {

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
package com.netflix.conductor.test.resiliency

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.test.context.TestPropertySource

import com.netflix.conductor.common.metadata.tasks.Task
import com.netflix.conductor.common.run.Workflow
Expand All @@ -22,7 +23,7 @@ import com.netflix.conductor.test.base.AbstractResiliencySpecification
import spock.lang.Shared

import static com.netflix.conductor.test.util.WorkflowTestUtil.verifyPolledAndAcknowledgedTask

@TestPropertySource(properties = "conductor.app.workflow.name-validation.enabled=true")
class TaskResiliencySpec extends AbstractResiliencySpecification {

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ conductor.workflow-reconciler.enabled=true
conductor.workflow-repair-service.enabled=false

conductor.app.workflow-execution-lock-enabled=false
conductor.app.workflow.name-validation.enabled=true

conductor.app.workflow-input-payload-size-threshold=10KB
conductor.app.max-workflow-input-payload-size-threshold=10240KB
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"conductor.workflow-status-listener.type=queue_publisher",
"conductor.workflow-status-listener.queue-publisher.successQueue=dummy",
"conductor.workflow-status-listener.queue-publisher.failureQueue=dummy",
"conductor.workflow-status-listener.queue-publisher.finalizeQueue=final"
"conductor.workflow-status-listener.queue-publisher.finalizeQueue=final",
"conductor.app.workflow.name-validation.enabled=true"
})
@TestPropertySource(locations = "classpath:application-integrationtest.properties")
public class WorkflowStatusPublisherIntegrationTest {
Expand Down

0 comments on commit 9886fdb

Please sign in to comment.