website: document ACL bootstrap reset process

This commit is contained in:
Armon Dadgar
2017-09-10 16:18:39 -07:00
parent 03402ac69f
commit d6faa383d7
3 changed files with 59 additions and 3 deletions

View File

@@ -176,7 +176,7 @@ func (a *TestAgent) Start() *TestAgent {
if a.Config.ACL.Enabled && a.Config.Server.Enabled && a.Config.ACL.PolicyTTL != 0 {
a.Token = mock.ACLManagementToken()
state := a.Agent.server.State()
if err := state.BootstrapACLTokens(1, a.Token); err != nil {
if err := state.BootstrapACLTokens(1, 0, a.Token); err != nil {
panic(fmt.Sprintf("token bootstrap failed: %v", err))
}
}