Skip to content

Commit

Permalink
Using "test" profile for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaprasadreddy committed Oct 30, 2023
1 parent 6a5ffe8 commit e52d2b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.web.server.LocalServerPort;
import org.springframework.context.annotation.Import;
import org.springframework.test.context.ActiveProfiles;

@SpringBootTest(
webEnvironment = RANDOM_PORT,
properties = {"spring.cloud.aws.region.static=us-east-1"})
@SpringBootTest(webEnvironment = RANDOM_PORT)
@ActiveProfiles("test")
@Import(ContainersConfig.class)
public abstract class BaseIntegrationTest {

Expand Down
2 changes: 2 additions & 0 deletions src/test/resources/application-test.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
spring.kafka.consumer.auto-offset-reset=earliest
spring.cloud.aws.region.static=us-east-1

0 comments on commit e52d2b9

Please sign in to comment.