Skip to content

Commit

Permalink
Change tests to set default with hyphen
Browse files Browse the repository at this point in the history
  • Loading branch information
mswintermeyer committed Mar 24, 2023
1 parent 2dc3580 commit 35f2a59
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;

import com.palantir.docker.compose.DockerComposeExtension;
import com.palantir.docker.compose.configuration.ProjectName;
import com.palantir.docker.compose.connection.Container;
import com.palantir.docker.compose.logging.LogDirectory;
import java.io.IOException;
Expand All @@ -30,6 +31,7 @@
class DockerProxyExtensionTest {
@RegisterExtension
static final DockerComposeExtension DOCKER_COMPOSE_EXTENSION = DockerComposeExtension.builder()
.projectName(ProjectName.fromString("dockerproxyextensiontest"))
.file("src/integrationTest/resources/DockerProxyExtensionTest-services.yml")
.saveLogsTo(LogDirectory.circleAwareLogDirectory(DockerProxyExtensionTest.class))
.waitingForService("webserver", Container::areAllPortsOpen)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
version: '2'
version: '2.1'

services:
webserver:
hostname: web
domainname: server.here
image: 1science/nginx
networks:
default:
name: dockerproxyextensiontest-default
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package com.palantir.docker.proxy;

import com.palantir.docker.compose.DockerComposeRule;
import com.palantir.docker.compose.configuration.ProjectName;
import com.palantir.docker.compose.connection.Container;
import com.palantir.docker.compose.logging.LogDirectory;
import java.io.IOException;
Expand All @@ -27,6 +28,7 @@
public class DockerProxyRuleTest {
@ClassRule
public static final DockerComposeRule DOCKER_COMPOSE_RULE = DockerComposeRule.builder()
.projectName(ProjectName.fromString("dockerproxyruletest"))
.file("src/integrationTest/resources/DockerProxyRuleTest-services.yml")
.saveLogsTo(LogDirectory.circleAwareLogDirectory(DockerProxyRuleTest.class))
.waitingForService("webserver", Container::areAllPortsOpen)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
version: '2'
version: '2.1'

services:
webserver:
hostname: web
domainname: server.here
image: 1science/nginx
networks:
default:
name: dockerproxyruletest-default

0 comments on commit 35f2a59

Please sign in to comment.