21 lines
393 B
Go
21 lines
393 B
Go
|
package inmem
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/hashicorp/vault/helper/logformat"
|
||
|
"github.com/hashicorp/vault/physical"
|
||
|
log "github.com/mgutz/logxi/v1"
|
||
|
)
|
||
|
|
||
|
func TestInmem(t *testing.T) {
|
||
|
logger := logformat.NewVaultLogger(log.LevelTrace)
|
||
|
|
||
|
inm, err := NewInmem(nil, logger)
|
||
|
if err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
physical.ExerciseBackend(t, inm)
|
||
|
physical.ExerciseBackend_ListPrefix(t, inm)
|
||
|
}
|