From 49f9f0e26bc6cc1cfb11a3ca42fec677b7e5c073 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Thu, 24 Aug 2017 17:02:52 -0700 Subject: [PATCH] testutil: Allow enabling ACLs --- testutil/server.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/testutil/server.go b/testutil/server.go index 9c83bcef9..5f55b0743 100644 --- a/testutil/server.go +++ b/testutil/server.go @@ -42,6 +42,7 @@ type TestServerConfig struct { Server *ServerConfig `json:"server,omitempty"` Client *ClientConfig `json:"client,omitempty"` Vault *VaultConfig `json:"vault,omitempty"` + ACL *ACLConfig `json:"acl,omitempty"` DevMode bool `json:"-"` Stdout, Stderr io.Writer `json:"-"` } @@ -76,6 +77,11 @@ type VaultConfig struct { Enabled bool `json:"enabled"` } +// ACLConfig is used to configure ACLs +type ACLConfig 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) @@ -110,6 +116,9 @@ func defaultServerConfig() *TestServerConfig { Vault: &VaultConfig{ Enabled: false, }, + ACL: &ACLConfig{ + Enabled: false, + }, } }