From 5621407cef42755ca6bd8e24c6258642f9010b8b Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Wed, 30 Sep 2020 09:43:30 -0400 Subject: [PATCH] e2e: ensure tests are constrained to Linux (#8990) Until we have LCOW support in the E2E environment (which requires a Windows 2019 test target), we need to constrain E2E tests to the appropriate kernel --- e2e/lifecycle/inputs/batch.nomad | 5 +++++ e2e/lifecycle/inputs/service.nomad | 5 +++++ e2e/podman/input/redis.nomad | 5 +++++ e2e/volumes/input/volumes.nomad | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/e2e/lifecycle/inputs/batch.nomad b/e2e/lifecycle/inputs/batch.nomad index 744bcf7b621..47326f1d7b1 100644 --- a/e2e/lifecycle/inputs/batch.nomad +++ b/e2e/lifecycle/inputs/batch.nomad @@ -9,6 +9,11 @@ job "batch-lifecycle" { type = "batch" + constraint { + attribute = "${attr.kernel.name}" + value = "linux" + } + group "test" { task "init" { diff --git a/e2e/lifecycle/inputs/service.nomad b/e2e/lifecycle/inputs/service.nomad index 5a35fc86ac0..5e5baf59cff 100644 --- a/e2e/lifecycle/inputs/service.nomad +++ b/e2e/lifecycle/inputs/service.nomad @@ -10,6 +10,11 @@ job "service-lifecycle" { type = "service" + constraint { + attribute = "${attr.kernel.name}" + value = "linux" + } + group "test" { task "init" { diff --git a/e2e/podman/input/redis.nomad b/e2e/podman/input/redis.nomad index 587731377f4..afa1c9b6f58 100644 --- a/e2e/podman/input/redis.nomad +++ b/e2e/podman/input/redis.nomad @@ -2,6 +2,11 @@ job "podman-redis" { datacenters = ["dc1"] type = "service" + constraint { + attribute = "${attr.kernel.name}" + value = "linux" + } + group "redis" { task "redis" { driver = "podman" diff --git a/e2e/volumes/input/volumes.nomad b/e2e/volumes/input/volumes.nomad index 77319d1d4cf..95f304f8ce8 100644 --- a/e2e/volumes/input/volumes.nomad +++ b/e2e/volumes/input/volumes.nomad @@ -1,6 +1,11 @@ job "volumes" { datacenters = ["dc1", "dc2"] + constraint { + attribute = "${attr.kernel.name}" + value = "linux" + } + group "group" { volume "data" {