frameworks icon indicating copy to clipboard operation
frameworks copied to clipboard

Wrong template parameter is being checked in e2e_tests: "expected" vs "name"

Open dowgird opened this issue 5 years ago • 0 comments

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.

dowgird avatar Nov 06 '20 12:11 dowgird