From a8912e82d8b96411dc96790ea100a8d50cd5e436 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 1 Apr 2015 15:48:56 -0700 Subject: [PATCH] enable github --- commands.go | 4 ++++ vault/core_test.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/commands.go b/commands.go index 5b61b9359..ca1e3dea5 100644 --- a/commands.go +++ b/commands.go @@ -3,6 +3,7 @@ package main import ( "os" + "github.com/hashicorp/vault/builtin/credential/github" "github.com/hashicorp/vault/builtin/logical/aws" "github.com/hashicorp/vault/builtin/logical/consul" tokenDisk "github.com/hashicorp/vault/builtin/token/disk" @@ -75,6 +76,9 @@ func init() { "server": func() (cli.Command, error) { return &command.ServerCommand{ Meta: meta, + CredentialBackends: map[string]logical.Factory{ + "github": github.Factory, + }, LogicalBackends: map[string]logical.Factory{ "aws": aws.Factory, "consul": consul.Factory, diff --git a/vault/core_test.go b/vault/core_test.go index f7cd1142f..59f3d07fd 100644 --- a/vault/core_test.go +++ b/vault/core_test.go @@ -816,6 +816,6 @@ func TestCore_HandleLogin_AuditTrail(t *testing.T) { t.Fatalf("Bad: %#v", noop.RespReq[1]) } if len(noop.Resp) != 2 || !reflect.DeepEqual(noop.Resp[1], lresp) { - t.Fatalf("Bad: %#v", noop.Resp[1], lresp) + t.Fatalf("Bad: %#v %#v", noop.Resp[1], lresp) } }