mirror of https://github.com/status-im/consul.git
test: make auth method cli crud test helper ignore the default namespace (#7799)
This commit is contained in:
parent
01e89f03ea
commit
db870ba92b
|
@ -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