From b082bdd52fdde98924c20cf39d29488f55010353 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Thu, 18 Aug 2016 10:30:47 -0700 Subject: [PATCH] test fixes --- command/agent/agent_test.go | 1 + testutil/server.go | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/command/agent/agent_test.go b/command/agent/agent_test.go index 25f119abc..a42dbbab5 100644 --- a/command/agent/agent_test.go +++ b/command/agent/agent_test.go @@ -52,6 +52,7 @@ func makeAgent(t testing.TB, cb func(*Config)) (string, *Agent) { } conf.NodeName = fmt.Sprintf("Node %d", conf.Ports.RPC) conf.Consul = sconfig.DefaultConsulConfig() + conf.Vault.Enabled = false // Tighten the Serf timing config.SerfConfig.MemberlistConfig.SuspicionMult = 2 diff --git a/testutil/server.go b/testutil/server.go index e2464f244..24b63c780 100644 --- a/testutil/server.go +++ b/testutil/server.go @@ -39,6 +39,7 @@ type TestServerConfig struct { Ports *PortsConfig `json:"ports,omitempty"` Server *ServerConfig `json:"server,omitempty"` Client *ClientConfig `json:"client,omitempty"` + Vault *VaultConfig `json:"vault,omitempty"` DevMode bool `json:"-"` Stdout, Stderr io.Writer `json:"-"` } @@ -61,6 +62,11 @@ type ClientConfig struct { Enabled bool `json:"enabled"` } +// VaultConfig is used to configure Vault +type VaultConfig struct { + Enabled bool `json:"enabled"` +} + // ServerConfigCallback is a function interface which can be // passed to NewTestServerConfig to modify the server config. type ServerConfigCallback func(c *TestServerConfig) @@ -86,6 +92,9 @@ func defaultServerConfig() *TestServerConfig { Client: &ClientConfig{ Enabled: false, }, + Vault: &VaultConfig{ + Enabled: false, + }, } }