Fix unit test.

This commit is contained in:
zhifei92 2024-12-17 14:25:37 +08:00
parent b9fc5678d9
commit 75e5bd6a4f

View File

@ -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{}