Skip to content

Commit

Permalink
test/e2e: skip libvirt tests for CRI-O
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
wainersm committed Nov 27, 2024
1 parent 4887c2b commit 4ce0ac0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/cloud-api-adaptor/test/e2e/libvirt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -114,13 +117,19 @@ 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)
}

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)
}
Expand All @@ -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)
}
Expand Down

0 comments on commit 4ce0ac0

Please sign in to comment.