Skip to content

Commit

Permalink
test/e2e: Skip s390x encrypted image test
Browse files Browse the repository at this point in the history
The current encrypted image seems to only be amd64 and
the kata CI's multi-arch image has a decryption key that is
44 bytes and our code rejects it as it only works with 32 byte keys

Signed-off-by: stevenhorsman <[email protected]>
  • Loading branch information
stevenhorsman authored and bpradipt committed Dec 4, 2024
1 parent 746b8d7 commit 1a76163
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cloud-api-adaptor/test/e2e/common_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"fmt"
"math/rand"
"os"
"runtime"
"strconv"
"strings"
"testing"
Expand Down Expand Up @@ -501,6 +502,11 @@ func DoTestPodsMTLSCommunication(t *testing.T, e env.Environment, assert CloudAs
}

func DoTestImageDecryption(t *testing.T, e env.Environment, assert CloudAssert, kbs *pv.KeyBrokerService) {
// TODO create a multi-arch encrypted image. Note the Kata CI version doesn't work as the key length is 44, not 32 which is wanted
if runtime.GOARCH == "s390x" {
t.Skip("Encrypted image test not currently support on s390x")
}

image := "ghcr.io/confidential-containers/cloud-api-adaptor/nginx-encrypted:20240123"
var kbsEndpoint string
if ep := os.Getenv("KBS_ENDPOINT"); ep != "" {
Expand Down

0 comments on commit 1a76163

Please sign in to comment.