Fix TestPolicy_ParseBadPath

This commit is contained in:
vishalnayak 2018-11-13 13:22:56 -05:00
parent 9735bd7d69
commit a96641c86f
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}