From 4ce0ac0f8743cca40f80549b411ac8b4516ef303 Mon Sep 17 00:00:00 2001 From: Wainer dos Santos Moschetta Date: Tue, 8 Oct 2024 18:12:09 -0300 Subject: [PATCH] test/e2e: skip libvirt tests for CRI-O Some tests are already skipped on CI, also disabled them when running locally because they fail as well. The TestLibvirtImageDecryption test has failed on CI because it is not supported with CRI-O. Related-to: #2100 Signed-off-by: Wainer dos Santos Moschetta --- src/cloud-api-adaptor/test/e2e/libvirt_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/cloud-api-adaptor/test/e2e/libvirt_test.go b/src/cloud-api-adaptor/test/e2e/libvirt_test.go index d4b64d217..0f08ec288 100644 --- a/src/cloud-api-adaptor/test/e2e/libvirt_test.go +++ b/src/cloud-api-adaptor/test/e2e/libvirt_test.go @@ -31,6 +31,9 @@ func TestLibvirtCreatePodWithSecret(t *testing.T) { func TestLibvirtCreatePeerPodContainerWithExternalIPAccess(t *testing.T) { SkipTestOnCI(t) + if isTestOnCrio() { + t.Skip("Fails with CRI-O (confidential-containers/cloud-api-adaptor#2100)") + } assert := LibvirtAssert{} DoTestCreatePeerPodContainerWithExternalIPAccess(t, testEnv, assert) @@ -114,6 +117,9 @@ func TestLibvirtDeletePod(t *testing.T) { func TestLibvirtPodToServiceCommunication(t *testing.T) { // This test is causing issues on CI with instability, so skip until we can resolve this. SkipTestOnCI(t) + if isTestOnCrio() { + t.Skip("Fails with CRI-O (confidential-containers/cloud-api-adaptor#2100)") + } assert := LibvirtAssert{} DoTestPodToServiceCommunication(t, testEnv, assert) } @@ -121,6 +127,9 @@ func TestLibvirtPodToServiceCommunication(t *testing.T) { func TestLibvirtPodsMTLSCommunication(t *testing.T) { // This test is causing issues on CI with instability, so skip until we can resolve this. SkipTestOnCI(t) + if isTestOnCrio() { + t.Skip("Fails with CRI-O (confidential-containers/cloud-api-adaptor#2100)") + } assert := LibvirtAssert{} DoTestPodsMTLSCommunication(t, testEnv, assert) } @@ -130,6 +139,10 @@ func TestLibvirtImageDecryption(t *testing.T) { t.Skip("Skipping kbs related test as kbs is not deployed") } + if isTestOnCrio() { + t.Skip("Image decryption not supported with CRI-O") + } + assert := LibvirtAssert{} DoTestImageDecryption(t, testEnv, assert, keyBrokerService) }