@@ -159,7 +159,34 @@ public class BuiltInFunctionTest
159159 [ "/parent?status=1&type=2" , "/parent/child" , false ] ,
160160 [ "/parent/child/?status=1&type=2" , "/parent/child/" , true ] ,
161161 [ "/parent/child/?status=1&type=2" , "/parent/child" , false ] ,
162- [ "/parent/child?status=1&type=2" , "/parent/child/" , false ]
162+ [ "/parent/child?status=1&type=2" , "/parent/child/" , false ] ,
163+ // wildcard *
164+ [ "/foo" , "/foo" , true ] ,
165+ [ "/foo" , "/foo*" , true ] ,
166+ [ "/foo" , "/foo/*" , false ] ,
167+ [ "/foo/bar" , "/foo" , false ] ,
168+ [ "/foo/bar" , "/foo*" , false ] ,
169+ [ "/foo/bar" , "/foo/*" , true ] ,
170+ [ "/foobar" , "/foo" , false ] ,
171+ [ "/foobar" , "/foo*" , false ] ,
172+ [ "/foobar" , "/foo/*" , false ] ,
173+ // {param} placeholders
174+ [ "/" , "/{resource}" , false ] ,
175+ [ "/resource1" , "/{resource}" , true ] ,
176+ [ "/myid" , "/{id}/using/{resId}" , false ] ,
177+ [ "/myid/using/myresid" , "/{id}/using/{resId}" , true ] ,
178+ // {param} + wildcard
179+ [ "/proxy/myid" , "/proxy/{id}/*" , false ] ,
180+ [ "/proxy/myid/" , "/proxy/{id}/*" , true ] ,
181+ [ "/proxy/myid/res" , "/proxy/{id}/*" , true ] ,
182+ [ "/proxy/myid/res/res2" , "/proxy/{id}/*" , true ] ,
183+ [ "/proxy/myid/res/res2/res3" , "/proxy/{id}/*" , true ] ,
184+ [ "/proxy/" , "/proxy/{id}/*" , false ] ,
185+ // query strings with {param} + wildcard
186+ [ "/proxy/myid?status=1&type=2" , "/proxy/{id}/*" , false ] ,
187+ [ "/proxy/myid/res?status=1&type=2" , "/proxy/{id}/*" , true ] ,
188+ [ "/proxy/myid/res/res2?status=1&type=2" , "/proxy/{id}/*" , true ] ,
189+ [ "/proxy/myid/res/res2/res3?status=1&type=2" , "/proxy/{id}/*" , true ]
163190 ] ;
164191
165192 public static IEnumerable < object [ ] > GlobMatchTestData =
0 commit comments