mirror of https://github.com/k3s-io/k3s
Add nonResourceURL wildcard coverage tests
parent
2c6fbc95c4
commit
b2994a297d
|
@ -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},
|
||||
|
|
Loading…
Reference in New Issue