disable ldap tests for arm (#23118)

This commit is contained in:
Raymond Ho
2023-09-18 08:48:03 -07:00
committed by GitHub
parent 464aeebddc
commit 6e5bd7abd9
2 changed files with 11 additions and 0 deletions

3
changelog/23118.txt Normal file
View File

@@ -0,0 +1,3 @@
```release-note:bug
ldaputil: Disable tests for ARM64
```

View File

@@ -6,6 +6,8 @@ package ldap
import (
"context"
"fmt"
"runtime"
"strings"
"testing"
"github.com/hashicorp/cap/ldap"
@@ -15,6 +17,12 @@ import (
)
func PrepareTestContainer(t *testing.T, version string) (cleanup func(), cfg *ldaputil.ConfigEntry) {
// note: this image isn't supported on arm64 architecture in CI.
// but if you're running on Apple Silicon, feel free to comment out the code below locally.
if strings.Contains(runtime.GOARCH, "arm") {
t.Skip("Skipping, as this image is not supported on ARM architectures")
}
runner, err := docker.NewServiceRunner(docker.RunOptions{
// Currently set to "michelvocks" until https://github.com/rroemhild/docker-test-openldap/pull/14
// has been merged.