enable github

This commit is contained in:
Mitchell Hashimoto 2015-04-01 15:48:56 -07:00
parent cee51ddde9
commit a8912e82d8
2 changed files with 5 additions and 1 deletions

View file

@ -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,

View file

@ -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)
}
}