e2e: set an expose service check in connect e2e testcase

Make sure exposed checks work in e2e by setting an expose
check on the e2e connect test.
This commit is contained in:
Seth Hoenig
2020-05-07 14:40:03 -06:00
parent f421afcb65
commit e54698ed1c

View File

@@ -18,13 +18,22 @@ job "countdash" {
connect {
sidecar_service {}
}
check {
expose = true
name = "api-health"
type = "http"
path = "/health"
interval = "5s"
timeout = "3s"
}
}
task "web" {
driver = "docker"
config {
image = "hashicorpnomad/counter-api:v1"
image = "hashicorpnomad/counter-api:v2"
}
}
}
@@ -63,7 +72,7 @@ job "countdash" {
}
config {
image = "hashicorpnomad/counter-dashboard:v1"
image = "hashicorpnomad/counter-dashboard:v2"
}
}
}