Skip to content

Commit

Permalink
e2e: fix tests
Browse files Browse the repository at this point in the history
Use basic sleeps in busybox images. busybox are very light, and ping has
permissions complications, and it may fail for network related
issues.
  • Loading branch information
Mahmood Ali committed Aug 3, 2021
1 parent 61ee443 commit 141ea60
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions e2e/scheduler_sysbatch/input/sysbatch_dispatch.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ job "sysbatchjob" {
driver = "docker"

config {
image = "bash:5"
image = "busybox:1"

command = "bash"
args = ["-c", "ping -c 10 example.com"]
command = "/bin/sh"
args = ["-c", "echo hi; sleep 1"]
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions e2e/scheduler_sysbatch/input/sysbatch_job_fast.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ job "sysbatchjob" {
driver = "docker"

config {
image = "bash:5"
image = "busybox:1"

command = "bash"
args = ["-c", "ping -c 10 example.com"]
command = "/bin/sh"
args = ["-c", "echo hi; sleep 1"]
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions e2e/scheduler_sysbatch/input/sysbatch_job_slow.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ job "sysbatchjob" {
driver = "docker"

config {
image = "bash:5"
image = "busybox:1"

command = "bash"
args = ["-c", "ping -c 100000 example.com"]
command = "/bin/sh"
args = ["-c", "echo hi; sleep 1000000"]
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions e2e/scheduler_sysbatch/input/sysbatch_periodic.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ job "sysbatchjob" {
driver = "docker"

config {
image = "bash:5"
image = "busybox:1"

command = "bash"
args = ["-c", "ping -c 10 example.com"]
command = "/bin/sh"
args = ["-c", "echo hi; sleep 1"]
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions e2e/scheduler_system/input/system_job0.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ job "system_job" {
driver = "docker"

config {
image = "bash:latest"
image = "busybox:1"

command = "bash"
command = "/bin/sh"
args = ["-c", "sleep 15000"]
}

Expand Down
4 changes: 2 additions & 2 deletions e2e/scheduler_system/input/system_job1.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ job "system_job" {
driver = "docker"

config {
image = "bash:latest"
image = "busybox:1"

command = "bash"
command = "/bin/sh"
args = ["-c", "sleep 15000"]
}

Expand Down

0 comments on commit 141ea60

Please sign in to comment.