Skip to content

Commit

Permalink
Revert "back to original default"
Browse files Browse the repository at this point in the history
This reverts commit 47d133e.
  • Loading branch information
mswintermeyer committed Mar 24, 2023
1 parent 47d133e commit 2dc3580
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void canReachDockerContainerByHostnameAndDomainNameWithProjectSpecified() throws
@Test
void canReachDockerContainerByContainerNameWithNetworkSpecified() throws IOException, InterruptedException {
DockerProxyExtension dockerProxyExtension = DockerProxyExtension.fromNetworkName(
DOCKER_COMPOSE_EXTENSION.projectName().asString() + "_default", DockerProxyExtensionTest.class);
DOCKER_COMPOSE_EXTENSION.projectName().asString() + "-default", DockerProxyExtensionTest.class);
try {
dockerProxyExtension.before();
URLConnection urlConnection = new URL("http://webserver").openConnection();
Expand All @@ -90,7 +90,7 @@ void canReachDockerContainerByContainerNameWithNetworkSpecified() throws IOExcep
@Test
void canReachDockerContainerByHostnameWithNetworkSpecified() throws IOException, InterruptedException {
DockerProxyExtension dockerProxyExtension = DockerProxyExtension.fromNetworkName(
DOCKER_COMPOSE_EXTENSION.projectName().asString() + "_default", DockerProxyExtensionTest.class);
DOCKER_COMPOSE_EXTENSION.projectName().asString() + "-default", DockerProxyExtensionTest.class);
try {
dockerProxyExtension.before();
URLConnection urlConnection = new URL("http://web").openConnection();
Expand All @@ -103,7 +103,7 @@ void canReachDockerContainerByHostnameWithNetworkSpecified() throws IOException,
@Test
void canReachDockerContainerByHostnameAndDomainNameWithNetworkSpecified() throws IOException, InterruptedException {
DockerProxyExtension dockerProxyExtension = DockerProxyExtension.fromNetworkName(
DOCKER_COMPOSE_EXTENSION.projectName().asString() + "_default", DockerProxyExtensionTest.class);
DOCKER_COMPOSE_EXTENSION.projectName().asString() + "-default", DockerProxyExtensionTest.class);
try {
dockerProxyExtension.before();
URLConnection urlConnection = new URL("http://web.server.here").openConnection();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public Optional<String> getHostForIp(String ip) {

@Override
public String getNetworkName() {
return networkNameOverride.orElseGet(() -> projectName.asString() + "_default");
return networkNameOverride.orElseGet(() -> projectName.asString() + "-default");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void canReachDockerContainerByHostnameAndDomainNameWithProjectSpecified()
@Test
public void canReachDockerContainerByContainerNameWithNetworkSpecified() throws IOException, InterruptedException {
DockerProxyRule dockerProxyRule = DockerProxyRule.fromNetworkName(
DOCKER_COMPOSE_RULE.projectName().asString() + "_default", DockerProxyRuleTest.class);
DOCKER_COMPOSE_RULE.projectName().asString() + "-default", DockerProxyRuleTest.class);
try {
dockerProxyRule.before();
URLConnection urlConnection = new URL("http://webserver").openConnection();
Expand All @@ -88,7 +88,7 @@ public void canReachDockerContainerByContainerNameWithNetworkSpecified() throws
@Test
public void canReachDockerContainerByHostnameWithNetworkSpecified() throws IOException, InterruptedException {
DockerProxyRule dockerProxyRule = DockerProxyRule.fromNetworkName(
DOCKER_COMPOSE_RULE.projectName().asString() + "_default", DockerProxyRuleTest.class);
DOCKER_COMPOSE_RULE.projectName().asString() + "-default", DockerProxyRuleTest.class);
try {
dockerProxyRule.before();
URLConnection urlConnection = new URL("http://web").openConnection();
Expand All @@ -102,7 +102,7 @@ public void canReachDockerContainerByHostnameWithNetworkSpecified() throws IOExc
public void canReachDockerContainerByHostnameAndDomainNameWithNetworkSpecified()
throws IOException, InterruptedException {
DockerProxyRule dockerProxyRule = DockerProxyRule.fromNetworkName(
DOCKER_COMPOSE_RULE.projectName().asString() + "_default", DockerProxyRuleTest.class);
DOCKER_COMPOSE_RULE.projectName().asString() + "-default", DockerProxyRuleTest.class);
try {
dockerProxyRule.before();
URLConnection urlConnection = new URL("http://web.server.here").openConnection();
Expand Down

0 comments on commit 2dc3580

Please sign in to comment.