Skip to content

Commit

Permalink
e2e: ensure tests are constrained to Linux (#8990)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tgross authored Sep 30, 2020
1 parent 8cf583f commit 5621407
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions e2e/lifecycle/inputs/batch.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ job "batch-lifecycle" {

type = "batch"

constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}

group "test" {

task "init" {
Expand Down
5 changes: 5 additions & 0 deletions e2e/lifecycle/inputs/service.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ job "service-lifecycle" {

type = "service"

constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}

group "test" {

task "init" {
Expand Down
5 changes: 5 additions & 0 deletions e2e/podman/input/redis.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ job "podman-redis" {
datacenters = ["dc1"]
type = "service"

constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}

group "redis" {
task "redis" {
driver = "podman"
Expand Down
5 changes: 5 additions & 0 deletions e2e/volumes/input/volumes.nomad
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
job "volumes" {
datacenters = ["dc1", "dc2"]

constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}

group "group" {

volume "data" {
Expand Down

0 comments on commit 5621407

Please sign in to comment.