From 3333f8ddfd35b037a9fc3c0c545f67604c2b568c Mon Sep 17 00:00:00 2001 From: Wainer dos Santos Moschetta Date: Thu, 30 May 2024 18:04:49 -0300 Subject: [PATCH] tests/k8s: enable policy tests for qemu-coco-dev So qemu-coco-dev is on pair with the TEE configurations. Fixes: #9753 Signed-off-by: Wainer dos Santos Moschetta --- tests/integration/kubernetes/tests_common.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/integration/kubernetes/tests_common.sh b/tests/integration/kubernetes/tests_common.sh index 5e631f5c3b..b82a15a829 100644 --- a/tests/integration/kubernetes/tests_common.sh +++ b/tests/integration/kubernetes/tests_common.sh @@ -266,8 +266,9 @@ set_namespace_to_policy_settings() { policy_tests_enabled() { # The Guest images for these platforms have been built using AGENT_POLICY=yes - # see kata-deploy-binaries.sh. - [ "${KATA_HYPERVISOR}" == "qemu-sev" ] || [ "${KATA_HYPERVISOR}" == "qemu-snp" ] || \ - [ "${KATA_HYPERVISOR}" == "qemu-tdx" ] || [ "${KATA_HOST_OS}" == "cbl-mariner" ] + local enabled_hypervisors="qemu-coco-dev qemu-sev qemu-snp qemu-tdx" + [[ " $enabled_hypervisors " =~ " ${KATA_HYPERVISOR} " ]] || \ + [ "${KATA_HOST_OS}" == "cbl-mariner" ] } add_allow_all_policy_to_yaml() {