Merge pull request #44729 from liggitt/non-resource-url-test

Automatic merge from submit-queue

Add nonResourceURL wildcard coverage tests

Ensure `*` covering all paths is tested
This commit is contained in:
Kubernetes Submit Queue 2017-04-21 06:10:26 -07:00 committed by GitHub
commit 910c9d1ec7

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