e2e: networking test job needs to outlast assert (#9113)
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.
This commit is contained in:
parent
f05d4cc93a
commit
e0ff06be2f
|
@ -1,6 +1,12 @@
|
||||||
//e2e:service script=validate.sh
|
//e2e:service script=validate.sh
|
||||||
job "networking" {
|
job "networking" {
|
||||||
datacenters = ["dc1"]
|
datacenters = ["dc1", "dc2"]
|
||||||
|
|
||||||
|
constraint {
|
||||||
|
attribute = "${attr.kernel.name}"
|
||||||
|
value = "linux"
|
||||||
|
}
|
||||||
|
|
||||||
group "basic" {
|
group "basic" {
|
||||||
network {
|
network {
|
||||||
mode = "bridge"
|
mode = "bridge"
|
||||||
|
@ -11,8 +17,8 @@ job "networking" {
|
||||||
config {
|
config {
|
||||||
image = "busybox:1"
|
image = "busybox:1"
|
||||||
command = "/bin/sleep"
|
command = "/bin/sleep"
|
||||||
args = ["5"]
|
args = ["300"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue