Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

fix MainIT to work on Docker for Mac #14

Merged
merged 1 commit into from
Jun 1, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import com.google.common.io.Resources;
import com.google.common.net.HostAndPort;

import com.spotify.helios.common.descriptors.HealthCheck;
import com.spotify.helios.testing.HeliosDeploymentResource;
import com.spotify.helios.testing.HeliosSoloDeployment;
import com.spotify.helios.testing.TemporaryJob;
Expand Down Expand Up @@ -76,6 +77,11 @@ public void setUp() throws Exception {
Resources.getResource("META-INF/docker/com.spotify.it/backend/image-name"),
Charsets.UTF_8).trim())
.port("http", 1337)
.healthCheck(HealthCheck.newHttpHealthCheck()
.setPath("/api/version")
.setPort("http")
.build()
)
.deploy();
HostAndPort backendAddress = backendJob.address("http");
backend = httpUri(backendAddress);
Expand All @@ -85,6 +91,11 @@ public void setUp() throws Exception {
Charsets.UTF_8))
.command(backend.toString())
.port("http", 1338)
.healthCheck(HealthCheck.newHttpHealthCheck()
.setPath("/")
.setPort("http")
.build()
)
.deploy();
HostAndPort frontendAddress = frontendJob.address("http");
frontend = httpUri(frontendAddress);
Expand Down