Skip to content

Commit

Permalink
Remove test on default MaxTokenTTL
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlanda committed Apr 24, 2023
1 parent 851bd1e commit 03aa6f4
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions agent/consul/acl_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3261,21 +3261,6 @@ func TestACLEndpoint_AuthMethodSet(t *testing.T) {
err := aclEp.AuthMethodSet(&req, &resp)
testutil.RequireErrorContains(t, err, "MaxTokenTTL 1ms cannot be less than")
})

t.Run("Create with MaxTokenTTL too big", func(t *testing.T) {
reqMethod := newAuthMethod("test")
reqMethod.MaxTokenTTL = 25 * time.Hour

req := structs.ACLAuthMethodSetRequest{
Datacenter: "dc1",
AuthMethod: reqMethod,
WriteRequest: structs.WriteRequest{Token: TestDefaultInitialManagementToken},
}
resp := structs.ACLAuthMethod{}

err := aclEp.AuthMethodSet(&req, &resp)
testutil.RequireErrorContains(t, err, "MaxTokenTTL 25h0m0s cannot be more than")
})
}

func TestACLEndpoint_AuthMethodDelete(t *testing.T) {
Expand Down

0 comments on commit 03aa6f4

Please sign in to comment.