summaryrefslogtreecommitdiff
path: root/test/kpod_stop.bats
diff options
context:
space:
mode:
Diffstat (limited to 'test/kpod_stop.bats')
-rw-r--r--test/kpod_stop.bats9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/kpod_stop.bats b/test/kpod_stop.bats
index 0c1bd329c..3804147fd 100644
--- a/test/kpod_stop.bats
+++ b/test/kpod_stop.bats
@@ -38,3 +38,12 @@ function setup() {
run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} ps"
[ "$status" -eq 0 ]
}
+
+@test "stop all containers" {
+ run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run --name test1 -d ${ALPINE} sleep 9999"
+ run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run --name test2 -d ${ALPINE} sleep 9999"
+ run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run --name test3 -d ${ALPINE} sleep 9999"
+ run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} stop -a -t 1"
+ echo "$output"
+ [ "$status" -eq 0 ]
+}