From 24a17a2e1b016da2406b75ba78b91aacc44fb74b Mon Sep 17 00:00:00 2001 From: Dan Mihai Date: Thu, 1 Feb 2024 23:27:26 +0000 Subject: [PATCH] tests: k8s: output the names of test files Output the names of test files, for easier search through logs. Signed-off-by: Dan Mihai --- tests/integration/kubernetes/run_kubernetes_tests.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/integration/kubernetes/run_kubernetes_tests.sh b/tests/integration/kubernetes/run_kubernetes_tests.sh index 6df7ffc886..6959f49621 100755 --- a/tests/integration/kubernetes/run_kubernetes_tests.sh +++ b/tests/integration/kubernetes/run_kubernetes_tests.sh @@ -139,14 +139,18 @@ test_successful_actions() { for K8S_TEST_ENTRY in ${K8S_TEST_UNION[@]} do info "$(kubectl get pods --all-namespaces 2>&1)" + info "Executing ${K8S_TEST_ENTRY}" bats --show-output-of-passing-tests "${K8S_TEST_ENTRY}" done } run_policy_specific_tests() { info "$(kubectl get pods --all-namespaces 2>&1)" + info "Executing k8s-exec-rejected.bats" bats --show-output-of-passing-tests k8s-exec-rejected.bats + info "$(kubectl get pods --all-namespaces 2>&1)" + info "Executing k8s-policy-set-keys.bats" bats --show-output-of-passing-tests k8s-policy-set-keys.bats }