open-nomad/e2e/overlap/testdata/overlap.nomad
Michael Schurter 6161b417f3
test: add e2e for non-overlapping placements (#14646)
* test: add e2e for non-overlapping placements

Followup to #10446

Fails (as expected) against 1.3.x at the wait for blocked eval (because
the allocs are allowed to overlap).

Passes against 1.4.0-beta.1 (as expected).

* Update e2e/overlap/overlap_test.go

Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
2022-09-22 13:06:17 -07:00

38 lines
617 B
HCL

job "overlap" {
datacenters = ["dc1"]
type = "service"
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
constraint {
attribute = "${node.unique.id}"
value = "<<Must be filled in by test>>"
}
group "overlap" {
count = 1
task "test" {
driver = "raw_exec"
# Delay shutdown to delay next placement
shutdown_delay = "10s"
config {
command = "bash"
args = ["-c", "sleep 15000"]
}
resources {
# Must be filled in by test
cpu = "0"
memory = "50"
}
}
}
}