Move meta into its own package

This commit is contained in:
Jeff Mitchell
2016-04-01 13:16:05 -04:00
parent da00982529
commit 33326b30c3
79 changed files with 326 additions and 233 deletions

View File

@@ -11,6 +11,7 @@ import (
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/http"
"github.com/hashicorp/vault/meta"
"github.com/hashicorp/vault/vault"
"github.com/mitchellh/cli"
)
@@ -24,7 +25,7 @@ func TestAuth_methods(t *testing.T) {
ui := new(cli.MockUi)
c := &AuthCommand{
Meta: Meta{
Meta: meta.Meta{
ClientToken: token,
Ui: ui,
},
@@ -53,7 +54,7 @@ func TestAuth_token(t *testing.T) {
ui := new(cli.MockUi)
c := &AuthCommand{
Meta: Meta{
Meta: meta.Meta{
Ui: ui,
},
}
@@ -91,7 +92,7 @@ func TestAuth_stdin(t *testing.T) {
stdinR, stdinW := io.Pipe()
ui := new(cli.MockUi)
c := &AuthCommand{
Meta: Meta{
Meta: meta.Meta{
Ui: ui,
},
testStdin: stdinR,
@@ -120,7 +121,7 @@ func TestAuth_badToken(t *testing.T) {
ui := new(cli.MockUi)
c := &AuthCommand{
Meta: Meta{
Meta: meta.Meta{
Ui: ui,
},
}
@@ -146,7 +147,7 @@ func TestAuth_method(t *testing.T) {
Handlers: map[string]AuthHandler{
"test": &testAuthHandler{},
},
Meta: Meta{
Meta: meta.Meta{
Ui: ui,
},
}