From 8a8a7ea0e5972bf2febe044f6ae38586b6eab436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Mon, 27 May 2024 05:04:13 +0200 Subject: [PATCH] tests: kata-deploy: Show more logs in the setup() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will also help us to better understand possible failures with the CI. Signed-off-by: Fabiano FidĂȘncio --- tests/functional/kata-deploy/kata-deploy.bats | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/functional/kata-deploy/kata-deploy.bats b/tests/functional/kata-deploy/kata-deploy.bats index b0b6ffc612..35d3d9e821 100644 --- a/tests/functional/kata-deploy/kata-deploy.bats +++ b/tests/functional/kata-deploy/kata-deploy.bats @@ -85,6 +85,14 @@ setup() { # Give some time for the pod to finish what's doing and have the # runtimeclasses properly created sleep 30s + + echo "::group::kata-deploy logs" + kubectl -n kube-system logs --tail=100 -l name=kata-deploy + echo "::endgroup::" + + echo "::group::Runtime classes" + kubectl get runtimeclass + echo "::endgroup::" } @test "Test runtimeclasses are being properly created and container runtime not broken" { @@ -113,8 +121,6 @@ setup() { } teardown() { - kubectl get runtimeclasses -o name | grep -v "kata-mshv-vm-isolation" - if [ "${KUBERNETES}" = "k0s" ]; then deploy_spec="-k \"${repo_root_dir}/tools/packaging/kata-deploy/kata-deploy/overlays/k0s\"" cleanup_spec="-k \"${repo_root_dir}/tools/packaging/kata-deploy/kata-cleanup/overlays/k0s\""