From e0ff06be2f2024ce892922f7e1bada2b0e239c4d Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Fri, 16 Oct 2020 10:13:16 -0400 Subject: [PATCH] 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. --- e2e/networking/inputs/basic.nomad | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/e2e/networking/inputs/basic.nomad b/e2e/networking/inputs/basic.nomad index 7f51742bf..5f6650026 100644 --- a/e2e/networking/inputs/basic.nomad +++ b/e2e/networking/inputs/basic.nomad @@ -1,6 +1,12 @@ //e2e:service script=validate.sh job "networking" { - datacenters = ["dc1"] + datacenters = ["dc1", "dc2"] + + constraint { + attribute = "${attr.kernel.name}" + value = "linux" + } + group "basic" { network { mode = "bridge" @@ -11,8 +17,8 @@ job "networking" { config { image = "busybox:1" command = "/bin/sleep" - args = ["5"] + args = ["300"] } } } -} \ No newline at end of file +}