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, + }, } }