open-vault/sdk/physical/inmem/inmem_ha_test.go
2019-04-12 17:54:35 -04:00

22 lines
469 B
Go

package inmem
import (
"testing"
log "github.com/hashicorp/go-hclog"
"github.com/hashicorp/vault/sdk/helper/logging"
"github.com/hashicorp/vault/sdk/physical"
)
func TestInmemHA(t *testing.T) {
logger := logging.NewVaultLogger(log.Debug)
inm, err := NewInmemHA(nil, logger)
if err != nil {
t.Fatal(err)
}
// Use the same inmem backend to acquire the same set of locks
physical.ExerciseHABackend(t, inm.(physical.HABackend), inm.(physical.HABackend))
}