-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update IT pass-core container config
- Loading branch information
Showing
6 changed files
with
52 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ | |
import org.testcontainers.junit.jupiter.Container; | ||
import org.testcontainers.junit.jupiter.Testcontainers; | ||
import org.testcontainers.utility.DockerImageName; | ||
import org.testcontainers.utility.MountableFile; | ||
|
||
/** | ||
* @author Russ Poetker ([email protected]) | ||
|
@@ -59,9 +60,11 @@ public abstract class AbstractIntegrationTest { | |
|
||
@Container | ||
protected static final GenericContainer<?> PASS_CORE_CONTAINER = new GenericContainer<>(PASS_CORE_IMG) | ||
.withEnv("PASS_CORE_BASE_URL", "http://localhost:8080") | ||
.withEnv("PASS_CORE_USER", "backend") | ||
.withEnv("PASS_CORE_PASSWORD", "backend") | ||
.withCopyFileToContainer( | ||
MountableFile.forHostPath("../pass-core-test-config/"), | ||
"/tmp/pass-core-test-config/" | ||
) | ||
.withEnv("PASS_CORE_JAVA_OPTS", "-Dspring.config.import=file:/tmp/pass-core-test-config/application-test.yml") | ||
.waitingFor(Wait.forHttp("/data/grant").forStatusCode(200).withBasicCredentials("backend", "backend")) | ||
.withExposedPorts(8080); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,7 @@ | |
import org.testcontainers.junit.jupiter.Container; | ||
import org.testcontainers.junit.jupiter.Testcontainers; | ||
import org.testcontainers.utility.DockerImageName; | ||
import org.testcontainers.utility.MountableFile; | ||
|
||
/** | ||
* @author Russ Poetker ([email protected]) | ||
|
@@ -88,9 +89,11 @@ public class NotificationServiceIT extends AbstractNotificationSpringIntegration | |
|
||
@Container | ||
static final GenericContainer<?> PASS_CORE_CONTAINER = new GenericContainer<>(PASS_CORE_IMG) | ||
.withEnv("PASS_CORE_BASE_URL", "http://localhost:8080") | ||
.withEnv("PASS_CORE_USER", "backend") | ||
.withEnv("PASS_CORE_PASSWORD", "backend") | ||
.withCopyFileToContainer( | ||
MountableFile.forHostPath("../pass-core-test-config/"), | ||
"/tmp/pass-core-test-config/" | ||
) | ||
.withEnv("PASS_CORE_JAVA_OPTS", "-Dspring.config.import=file:/tmp/pass-core-test-config/application-test.yml") | ||
.waitingFor(Wait.forHttp("/data/grant").forStatusCode(200).withBasicCredentials("backend", "backend")) | ||
.withExposedPorts(8080); | ||
|
||
|