-
Notifications
You must be signed in to change notification settings - Fork 592
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
TestIngressRecoverFromInvalidPath
is failing when changing router flavor to expressions
#5127
Comments
This ingress will generate a valid expression when expression router enabled:
expression router will NOT validate regexes on the RHS of predicates and reject invalid regexes. Instead, NO strings could satisfy the predicate if regex is invalid. So the method to test recovery from invalid configurations could be:
|
I was trying to come up with some examples of configurations which would fail to get applied and I came up with a plugin that references a non existing Secret
Would that make sense? It's not blocked by CEL expressions or the admission webhook so this should fit this use case. We can then check in the test that the plugin wasn't applied. OTOH this does allow the configuration to be applied, without only the broken plugin. |
TestIngressRecoverFromInvalidPath
is failing when changing router flavor to `expressionsTestIngressRecoverFromInvalidPath
is failing when changing router flavor to expressions
Sounds good, I will add this case (while we should be able to validate this after #5190). |
Is there an existing issue for this?
Current Behavior
After fixing the router flavor setting in integration tests #5112 (which we didn't set properly when we originally changed the setting in #4934)
TestIngressRecoverFromInvalidPath
is failing by accepting the supposedly invalid regexkubernetes-ingress-controller/test/integration/ingress_test.go
Line 868 in 513db87
Expected Behavior
No response
Steps To Reproduce
No response
Kong Ingress Controller version
No response
Kubernetes version
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: