mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
Fix unit test.
This commit is contained in:
parent
b9fc5678d9
commit
75e5bd6a4f
@ -125,7 +125,7 @@ func AuthzTestCases(fineGrained bool) []AuthzTestCase {
|
||||
"/attach/{podNamespace}/{podID}/{uid}/{containerName}": {"proxy"},
|
||||
"/checkpoint/{podNamespace}/{podID}/{containerName}": {"checkpoint"},
|
||||
"/configz": {"proxy"},
|
||||
"/statusz": {"proxy"},
|
||||
"/statusz": {"statusz"},
|
||||
"/containerLogs/{podNamespace}/{podID}/{containerName}": {"proxy"},
|
||||
"/debug/flags/v": {"proxy"},
|
||||
"/debug/pprof/{subpath:*}": {"proxy"},
|
||||
@ -160,7 +160,6 @@ func AuthzTestCases(fineGrained bool) []AuthzTestCase {
|
||||
testPaths["/pods/"] = append([]string{"pods"}, testPaths["/pods/"]...)
|
||||
testPaths["/runningpods/"] = append([]string{"pods"}, testPaths["/runningpods/"]...)
|
||||
testPaths["/configz"] = append([]string{"configz"}, testPaths["/configz"]...)
|
||||
testPaths["/statusz"] = append([]string{"statusz"}, testPaths["/statusz"]...)
|
||||
}
|
||||
|
||||
testCases := []AuthzTestCase{}
|
||||
|
Loading…
Reference in New Issue
Block a user