From d2ba4e12c8b02d166e458fc798acfee0d9d6396e Mon Sep 17 00:00:00 2001 From: Daniel Milchev Date: Wed, 20 Dec 2023 09:49:17 +0200 Subject: [PATCH] [#213] Used quiet to remove multiple containers at once in the list integration tests. --- integration/testdata/list-test.yaml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/integration/testdata/list-test.yaml b/integration/testdata/list-test.yaml index 7038de9..a7e685f 100644 --- a/integration/testdata/list-test.yaml +++ b/integration/testdata/list-test.yaml @@ -44,11 +44,7 @@ onExit: - binary: "kanto-cm" args: ["stop", "--host", "$KANTO_HOST", "-s", "SIGKILL", "-n", "list_containers_with_state_running"] - binary: "kanto-cm" - args: ["remove", "--host", "$KANTO_HOST", "-n", "list_containers_with_state_running", "-f"] - - binary: "kanto-cm" - args: ["remove", "--host", "$KANTO_HOST", "-n", "list_containers_with_state_stopped", "-f"] - - binary: "kanto-cm" - args: ["remove", "--host", "$KANTO_HOST", "-n", "list_containers_with_state_created", "-f"] + args: ["remove", "--host", "$KANTO_HOST", "$(kanto-cm list --quiet)"] --- name: list_containers_with_quiet setupCmd: @@ -66,9 +62,7 @@ customResult: args: ["[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"] onExit: - binary: "kanto-cm" - args: ["remove", "--host", "$KANTO_HOST", "-n", "list_containers_with_quiet_one", "-f"] - - binary: "kanto-cm" - args: ["remove", "--host", "$KANTO_HOST", "-n", "list_containers_with_quiet_two", "-f"] + args: ["remove", "--host", "$KANTO_HOST", "$(kanto-cm list --quiet)"] --- name: list_containers_with_filter setupCmd: @@ -89,9 +83,7 @@ customResult: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12} |list_containers_with_filter_two |docker.io/library/influxdb:1.8.4 |Created | |0 |"] onExit: - binary: "kanto-cm" - args: ["remove", "--host", "$KANTO_HOST", "-n", "list_containers_with_filter_one", "-f"] - - binary: "kanto-cm" - args: ["remove", "--host", "$KANTO_HOST", "-n", "list_containers_with_filter_two", "-f"] + args: ["remove", "--host", "$KANTO_HOST", "$(kanto-cm list --quiet)"] --- name: list_existing_container setupCmd: @@ -112,9 +104,7 @@ customResult: ] onExit: - binary: "kanto-cm" - args: ["remove", "--host", "$KANTO_HOST", "-n", "list_containers_ctr0", "-f"] - - binary: "kanto-cm" - args: ["remove", "--host", "$KANTO_HOST", "-n", "list_containers_ctr1", "-f"] + args: ["remove", "--host", "$KANTO_HOST", "$(kanto-cm list --quiet)"] --- name: list_not_existing_container command: