mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
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:
commit
910c9d1ec7
@ -407,7 +407,12 @@ func TestNonResourceURLCovers(t *testing.T) {
|
|||||||
requested string
|
requested string
|
||||||
want bool
|
want bool
|
||||||
}{
|
}{
|
||||||
|
{"*", "", true},
|
||||||
|
{"*", "/", true},
|
||||||
{"*", "/api", true},
|
{"*", "/api", true},
|
||||||
|
{"/*", "", false},
|
||||||
|
{"/*", "/", true},
|
||||||
|
{"/*", "/foo", true},
|
||||||
{"/api", "/api", true},
|
{"/api", "/api", true},
|
||||||
{"/apis", "/api", false},
|
{"/apis", "/api", false},
|
||||||
{"/api/v1", "/api", false},
|
{"/api/v1", "/api", false},
|
||||||
|
Loading…
Reference in New Issue
Block a user