frameworks
frameworks copied to clipboard
Wrong template parameter is being checked in e2e_tests: "expected" vs "name"
Function newConstraintTemplate() defines a template parameter named "expected":
"expected": {Type: "string"},
The Deny by Parameter test uses a parameter named "name":
cstr := newConstraint("Foo", "ph", map[string]string{"name": "deny_me"}, nil)
The tests passes because undefined template parameters are not type checked at all, which is probably a bug.