Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dowgird opened this issue Nov 6, 2020 · 0 comments

Comments

@dowgird
Copy link

dowgird commented Nov 6, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant