Add nonResourceURL wildcard coverage tests

pull/6/head
Jordan Liggitt 2017-04-20 11:43:46 -04:00
parent 2c6fbc95c4
commit b2994a297d
No known key found for this signature in database
GPG Key ID: 24E7ADF9A3B42012
1 changed files with 5 additions and 0 deletions

View File

@ -407,7 +407,12 @@ func TestNonResourceURLCovers(t *testing.T) {
requested string
want bool
}{
{"*", "", true},
{"*", "/", true},
{"*", "/api", true},
{"/*", "", false},
{"/*", "/", true},
{"/*", "/foo", true},
{"/api", "/api", true},
{"/apis", "/api", false},
{"/api/v1", "/api", false},