Commit d5748ec0 authored by Chelsea Holland Komlo's avatar Chelsea Holland Komlo
Browse files

fix up test data

parent 82463a32
Showing with 3 additions and 3 deletions
+3 -3
...@@ -34,9 +34,9 @@ func TestACLTokenDeleteCommand_ViaEnvVariable(t *testing.T) { ...@@ -34,9 +34,9 @@ func TestACLTokenDeleteCommand_ViaEnvVariable(t *testing.T) {
// Create a valid token // Create a valid token
mockToken := mock.ACLToken() mockToken := mock.ACLToken()
token.Policies = []string{acl.PolicyWrite} mockToken.Policies = []string{acl.PolicyWrite}
token.SetHash() mockToken.SetHash()
assert.Nil(state.UpsertACLTokens(1000, []*structs.ACLToken{token})) assert.Nil(state.UpsertACLTokens(1000, []*structs.ACLToken{mockToken}))
// Attempt to delete a token without providing a valid token with delete // Attempt to delete a token without providing a valid token with delete
// permissions // permissions
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment