e0ff06be2f
The `e2ejob` utility asserts that a job is running for 5s, but with a sleep time of 5s, the networking job can race with that check. Sleeping for a longer period should guarantee that we're running long enough to pass the assert. Also constrains the job to Linux because our Windows test targets don't yet support Docker (LCOW), and expand the set of DCs we can safely land on.
25 lines
392 B
HCL
25 lines
392 B
HCL
//e2e:service script=validate.sh
|
|
job "networking" {
|
|
datacenters = ["dc1", "dc2"]
|
|
|
|
constraint {
|
|
attribute = "${attr.kernel.name}"
|
|
value = "linux"
|
|
}
|
|
|
|
group "basic" {
|
|
network {
|
|
mode = "bridge"
|
|
}
|
|
|
|
task "sleep" {
|
|
driver = "docker"
|
|
config {
|
|
image = "busybox:1"
|
|
command = "/bin/sleep"
|
|
args = ["300"]
|
|
}
|
|
}
|
|
}
|
|
}
|