mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
VAULT-14847 Skip cetain tests on ARM (#20990)
This commit is contained in:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user