mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 09:25:46 +03:00
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:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user