From db870ba92b3329088ea6ffb1ce38372fb4528cbd Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" Date: Wed, 6 May 2020 15:09:47 -0500 Subject: [PATCH] test: make auth method cli crud test helper ignore the default namespace (#7799) --- command/acl/authmethod/create/authmethod_create_test.go | 4 ++++ command/acl/authmethod/update/authmethod_update_test.go | 4 ++++ 2 files changed, 8 insertions(+) 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 }