mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-24 10:17:21 +00:00
tests: confidential: Ensure those only run on TEEs
Running those with the non-TEE runtime classes will simply fail. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
@@ -10,8 +10,8 @@ load "${BATS_TEST_DIRNAME}/confidential_common.sh"
|
|||||||
load "${BATS_TEST_DIRNAME}/tests_common.sh"
|
load "${BATS_TEST_DIRNAME}/tests_common.sh"
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
if ! is_confidential_runtime_class; then
|
if ! is_confidential_hardware; then
|
||||||
skip "Test not supported for ${KATA_HYPERVISOR}."
|
skip "Test is supported only on confidential hardware (which ${KATA_HYPERVISOR} is not)"
|
||||||
fi
|
fi
|
||||||
setup_unencrypted_confidential_pod
|
setup_unencrypted_confidential_pod
|
||||||
}
|
}
|
||||||
@@ -43,8 +43,8 @@ setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
teardown() {
|
teardown() {
|
||||||
if ! is_confidential_runtime_class; then
|
if ! is_confidential_hardware; then
|
||||||
skip "Test not supported for ${KATA_HYPERVISOR}."
|
skip "Test is supported only on confidential hardware (which ${KATA_HYPERVISOR} is not)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
kubectl describe "pod/${pod_name}" || true
|
kubectl describe "pod/${pod_name}" || true
|
||||||
|
Reference in New Issue
Block a user