From 0aa76f7206ff507e9ccab55435bb16cced7ac4a3 Mon Sep 17 00:00:00 2001 From: Hyounggyu Choi Date: Mon, 24 Mar 2025 18:44:32 +0100 Subject: [PATCH] tests: Enable sealed secrets for TEEs Fixes: #11011 This commit allows all TEEs to run the sealed secret test. Signed-off-by: Hyounggyu Choi --- tests/integration/kubernetes/k8s-sealed-secret.bats | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/integration/kubernetes/k8s-sealed-secret.bats b/tests/integration/kubernetes/k8s-sealed-secret.bats index 311f1baf57..c5644c4d77 100644 --- a/tests/integration/kubernetes/k8s-sealed-secret.bats +++ b/tests/integration/kubernetes/k8s-sealed-secret.bats @@ -15,7 +15,9 @@ export KATA_HYPERVISOR="${KATA_HYPERVISOR:-qemu}" export AA_KBC="${AA_KBC:-cc_kbc}" setup() { - [ "${KATA_HYPERVISOR}" = "qemu-coco-dev" ] || skip "Test not ready yet for ${KATA_HYPERVISOR}" + if ! is_confidential_runtime_class; then + skip "Test not supported for ${KATA_HYPERVISOR}." + fi if [ "${KBS}" = "false" ]; then skip "Test skipped as KBS not setup" @@ -105,7 +107,9 @@ setup() { } teardown() { - [ "${KATA_HYPERVISOR}" = "qemu-coco-dev" ] || skip "Test not ready yet for ${KATA_HYPERVISOR}" + if ! is_confidential_runtime_class; then + skip "Test not supported for ${KATA_HYPERVISOR}." + fi if [ "${KBS}" = "false" ]; then skip "Test skipped as KBS not setup"