diff --git a/command/acl/authmethod/create/authmethod_create_test.go b/command/acl/authmethod/create/authmethod_create_test.go index b4a0240092..d0558043f1 100644 --- a/command/acl/authmethod/create/authmethod_create_test.go +++ b/command/acl/authmethod/create/authmethod_create_test.go @@ -516,6 +516,10 @@ func getTestMethod(t *testing.T, client *api.Client, methodName string) *api.ACL method.CreateIndex = 0 method.ModifyIndex = 0 + if method.Namespace == "default" { + method.Namespace = "" + } + return method } diff --git a/command/acl/authmethod/update/authmethod_update_test.go b/command/acl/authmethod/update/authmethod_update_test.go index 88aa5dfa8d..7edffc7467 100644 --- a/command/acl/authmethod/update/authmethod_update_test.go +++ b/command/acl/authmethod/update/authmethod_update_test.go @@ -890,6 +890,10 @@ func getTestMethod(t *testing.T, client *api.Client, methodName string) *api.ACL method.CreateIndex = 0 method.ModifyIndex = 0 + if method.Namespace == "default" { + method.Namespace = "" + } + return method }