Update sdk's testrequest with connection value

This commit is contained in:
Jeff Mitchell 2019-07-02 20:59:48 -04:00
parent 24282d452d
commit e4d280665d

View file

@ -9,15 +9,17 @@ import (
log "github.com/hashicorp/go-hclog"
"github.com/hashicorp/vault/sdk/helper/logging"
"github.com/hashicorp/vault/sdk/logical"
)
// TestRequest is a helper to create a purely in-memory Request struct.
func TestRequest(t testing.T, op Operation, path string) *Request {
return &Request{
Operation: op,
Path: path,
Data: make(map[string]interface{}),
Storage: new(InmemStorage),
Operation: op,
Path: path,
Data: make(map[string]interface{}),
Storage: new(InmemStorage),
Connection: &logical.Connection{},
}
}