-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lowercase identifier in DockerComposeContainer (#6944)
According to the [docs](https://docs.docker.com/compose/environment-variables/envvars/#compose_project_name), `COMPOSE_PROJECT_NAME` must be lowescase. Fixes #6943
- Loading branch information
1 parent
1a61543
commit 6442d27
Showing
2 changed files
with
22 additions
and
1 deletion.
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
21 changes: 21 additions & 0 deletions
21
core/src/test/java/org/testcontainers/junit/DockerComposeV2FormatWithIdentifierTest.java
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.testcontainers.junit; | ||
|
||
import org.junit.Rule; | ||
import org.testcontainers.containers.DockerComposeContainer; | ||
|
||
import java.io.File; | ||
|
||
public class DockerComposeV2FormatWithIdentifierTest extends BaseDockerComposeTest { | ||
|
||
@Rule | ||
public DockerComposeContainer environment = new DockerComposeContainer( | ||
"TEST", | ||
new File("src/test/resources/v2-compose-test.yml") | ||
) | ||
.withExposedService("redis_1", REDIS_PORT); | ||
|
||
@Override | ||
protected DockerComposeContainer getEnvironment() { | ||
return this.environment; | ||
} | ||
} |