mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
Skip Aerospike test on 32-bits, warn users it's unsupported. (#20825)
This commit is contained in:
3
changelog/20825.txt
Normal file
3
changelog/20825.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
```release-note:change
|
||||||
|
storage/aerospike: Aerospike storage shouldn't be used on 32-bit architectures and is now unsupported on them.
|
||||||
|
```
|
||||||
@@ -5,6 +5,7 @@ package aerospike
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"math/bits"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -16,6 +17,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestAerospikeBackend(t *testing.T) {
|
func TestAerospikeBackend(t *testing.T) {
|
||||||
|
if bits.UintSize == 32 {
|
||||||
|
t.Skip("Aerospike storage is only supported on 64-bit architectures")
|
||||||
|
}
|
||||||
cleanup, config := prepareAerospikeContainer(t)
|
cleanup, config := prepareAerospikeContainer(t)
|
||||||
defer cleanup()
|
defer cleanup()
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,9 @@ The Aerospike storage backend is used to persist Vault's data in an
|
|||||||
be as knowledgeable about the technology. If you encounter problems with them,
|
be as knowledgeable about the technology. If you encounter problems with them,
|
||||||
you may be referred to the original author.
|
you may be referred to the original author.
|
||||||
|
|
||||||
|
- **64-bit only** - the Aerospike storage backend is not supported when Vault runs
|
||||||
|
on a 32-bit architecture, because the Aerospike Go client doesn't support 32-bits.
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
storage "aerospike" {
|
storage "aerospike" {
|
||||||
hostname = "localhost"
|
hostname = "localhost"
|
||||||
|
|||||||
Reference in New Issue
Block a user