e2e: fix tests

Use basic sleeps in busybox images. busybox are very light, and ping has
permissions complications, and it may fail for network related
issues.
This commit is contained in:
Mahmood Ali 2021-08-03 11:35:00 -04:00
parent 3371214431
commit 28bc234e84
6 changed files with 16 additions and 16 deletions

View File

@ -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"]
}
}
}

View File

@ -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"]
}
}
}

View File

@ -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"]
}
}
}

View File

@ -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"]
}
}
}

View File

@ -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"]
}

View File

@ -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"]
}