Fix TestPolicy_ParseBadPath
This commit is contained in:
parent
9735bd7d69
commit
a96641c86f
|
@ -299,14 +299,14 @@ func TestPolicy_ParseBadPath(t *testing.T) {
|
|||
_, err := ParseACLPolicy(namespace.RootNamespace, strings.TrimSpace(`
|
||||
path "/" {
|
||||
capabilities = ["read"]
|
||||
capabilities = ["read"]
|
||||
capabilites = ["read"]
|
||||
}
|
||||
`))
|
||||
if err == nil {
|
||||
t.Fatalf("expected error")
|
||||
}
|
||||
|
||||
if !strings.Contains(err.Error(), `invalid key "capabilities" on line 3`) {
|
||||
if !strings.Contains(err.Error(), `invalid key "capabilites" on line 3`) {
|
||||
t.Errorf("bad error: %s", err)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue