Add nonResourceURL wildcard coverage tests

This commit is contained in:
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

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},