add path validation to implementation specific as well (#9573)
Signed-off-by: James Strong <strong.james.e@gmail.com>
This commit is contained in:
parent
254b814985
commit
6c41f19b55
2 changed files with 7 additions and 5 deletions
|
|
@ -272,7 +272,7 @@ func TestValidateIngressPath(t *testing.T) {
|
|||
name: "should reject path when the allowed additional set does not match",
|
||||
wantErr: true,
|
||||
additionalChars: "().?",
|
||||
EnablePathTypeValidation: false,
|
||||
EnablePathTypeValidation: true,
|
||||
copyIng: generateDumbIngressforPathTest(&pathTypeImplSpecific, "/foo/bar/(.+)"),
|
||||
},
|
||||
{
|
||||
|
|
@ -291,7 +291,7 @@ func TestValidateIngressPath(t *testing.T) {
|
|||
{
|
||||
name: "should block if at least one path is bad",
|
||||
wantErr: true,
|
||||
EnablePathTypeValidation: false,
|
||||
EnablePathTypeValidation: true,
|
||||
copyIng: generateComplexIngress(generateDumbIngressforPathTest(&pathTypeImplSpecific, "/foo/bar/(.?)")),
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue