test: make auth method cli crud test helper ignore the default namespace (#7799)

This commit is contained in:
R.B. Boyer 2020-05-06 15:09:47 -05:00 committed by GitHub
parent cf03f3df31
commit ea21280636
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -516,6 +516,10 @@ func getTestMethod(t *testing.T, client *api.Client, methodName string) *api.ACL
method.CreateIndex = 0 method.CreateIndex = 0
method.ModifyIndex = 0 method.ModifyIndex = 0
if method.Namespace == "default" {
method.Namespace = ""
}
return method return method
} }

View File

@ -890,6 +890,10 @@ func getTestMethod(t *testing.T, client *api.Client, methodName string) *api.ACL
method.CreateIndex = 0 method.CreateIndex = 0
method.ModifyIndex = 0 method.ModifyIndex = 0
if method.Namespace == "default" {
method.Namespace = ""
}
return method return method
} }