test: make auth method cli crud test helper ignore the default namespace (#7799)
This commit is contained in:
parent
cf03f3df31
commit
ea21280636
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue