mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +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"},
|
"/attach/{podNamespace}/{podID}/{uid}/{containerName}": {"proxy"},
|
||||||
"/checkpoint/{podNamespace}/{podID}/{containerName}": {"checkpoint"},
|
"/checkpoint/{podNamespace}/{podID}/{containerName}": {"checkpoint"},
|
||||||
"/configz": {"proxy"},
|
"/configz": {"proxy"},
|
||||||
"/statusz": {"proxy"},
|
"/statusz": {"statusz"},
|
||||||
"/containerLogs/{podNamespace}/{podID}/{containerName}": {"proxy"},
|
"/containerLogs/{podNamespace}/{podID}/{containerName}": {"proxy"},
|
||||||
"/debug/flags/v": {"proxy"},
|
"/debug/flags/v": {"proxy"},
|
||||||
"/debug/pprof/{subpath:*}": {"proxy"},
|
"/debug/pprof/{subpath:*}": {"proxy"},
|
||||||
@ -160,7 +160,6 @@ func AuthzTestCases(fineGrained bool) []AuthzTestCase {
|
|||||||
testPaths["/pods/"] = append([]string{"pods"}, testPaths["/pods/"]...)
|
testPaths["/pods/"] = append([]string{"pods"}, testPaths["/pods/"]...)
|
||||||
testPaths["/runningpods/"] = append([]string{"pods"}, testPaths["/runningpods/"]...)
|
testPaths["/runningpods/"] = append([]string{"pods"}, testPaths["/runningpods/"]...)
|
||||||
testPaths["/configz"] = append([]string{"configz"}, testPaths["/configz"]...)
|
testPaths["/configz"] = append([]string{"configz"}, testPaths["/configz"]...)
|
||||||
testPaths["/statusz"] = append([]string{"statusz"}, testPaths["/statusz"]...)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
testCases := []AuthzTestCase{}
|
testCases := []AuthzTestCase{}
|
||||||
|
Loading…
Reference in New Issue
Block a user