From 0fb2c500fdad9c008ebd3523bb22896d42e9e259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Mon, 2 Feb 2026 17:04:10 +0100 Subject: [PATCH] tests: kata-deploy: Merge E2E tests to avoid timing issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Merge the two E2E tests ("Custom RuntimeClass exists with correct properties" and "Custom runtime can run a pod") into a single test, as those 2 are very much dependent of each other. Signed-off-by: Fabiano FidĂȘncio --- .../kata-deploy/kata-deploy-custom-runtimes.bats | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/tests/functional/kata-deploy/kata-deploy-custom-runtimes.bats b/tests/functional/kata-deploy/kata-deploy-custom-runtimes.bats index c288f336ae..41bc66caf1 100644 --- a/tests/functional/kata-deploy/kata-deploy-custom-runtimes.bats +++ b/tests/functional/kata-deploy/kata-deploy-custom-runtimes.bats @@ -155,7 +155,7 @@ EOF # End-to-End Tests (require cluster with kata-deploy) # ============================================================================= -@test "E2E: Custom RuntimeClass exists with correct properties" { +@test "E2E: Custom RuntimeClass exists and can run a pod" { # Check RuntimeClass exists run kubectl get runtimeclass "${CUSTOM_RUNTIME_HANDLER}" -o name if [[ "${status}" -ne 0 ]]; then @@ -195,15 +195,6 @@ EOF echo "# Label app.kubernetes.io/managed-by: ${label}" >&3 [[ "${label}" == "Helm" ]] - BATS_TEST_COMPLETED=1 -} - -@test "E2E: Custom runtime can run a pod" { - # Check if the custom RuntimeClass exists - if ! kubectl get runtimeclass "${CUSTOM_RUNTIME_HANDLER}" &>/dev/null; then - skip "Custom RuntimeClass ${CUSTOM_RUNTIME_HANDLER} not found" - fi - # Create a test pod using the custom runtime cat <