Improve path rule (#8623)

* Improve path rule

* Add nginx configuration tests

* Revert framework changes

* Add test to patched directives

* Fix root conf test

* Add comment in new function
This commit is contained in:
Ricardo Katz 2022-05-26 14:23:24 +01:00 committed by GitHub
parent 4dfb3f2e9a
commit bd1eb048b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 210 additions and 19 deletions

View file

@ -35,6 +35,11 @@ func TestCheckRegex(t *testing.T) {
wantErr: true,
value: " alias blabla/lala ;",
},
{
name: "must refuse invalid alias with line break",
wantErr: true,
value: "alias #\n/lalala/1/;",
},
{
name: "must refuse invalid attempt to call /etc",
wantErr: true,