open-vault/physical/inmem/inmem_ha_test.go

20 lines
396 B
Go

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