VAULT-14847 Skip cetain tests on ARM (#20990)

This commit is contained in:
Violet Hynes
2023-06-05 14:02:39 -04:00
committed by GitHub
parent da5d0ca498
commit 9163a237c1
11 changed files with 74 additions and 0 deletions

View File

@@ -10,6 +10,8 @@ import (
"net/http"
"net/url"
"os"
"runtime"
"strings"
"testing"
"time"
@@ -373,6 +375,11 @@ type Config struct {
var _ docker.ServiceConfig = &Config{}
func prepareDynamoDBTestContainer(t *testing.T) (func(), *Config) {
// Skipping on ARM, as this image can't run on ARM architecture
if strings.Contains(runtime.GOARCH, "arm") {
t.Skip("Skipping, as this image is not supported on ARM architectures")
}
// If environment variable is set, assume caller wants to target a real
// DynamoDB.
if endpoint := os.Getenv("AWS_DYNAMODB_ENDPOINT"); endpoint != "" {