mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
disable ldap tests for arm (#23118)
This commit is contained in:
parent
464aeebddc
commit
6e5bd7abd9
2 changed files with 11 additions and 0 deletions
3
changelog/23118.txt
Normal file
3
changelog/23118.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
ldaputil: Disable tests for ARM64
|
||||
```
|
||||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue