Skip to content

Commit 75e5bd6

Browse files
committed
Fix unit test.
1 parent b9fc567 commit 75e5bd6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/kubelet/server/auth_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func AuthzTestCases(fineGrained bool) []AuthzTestCase {
125125
"/attach/{podNamespace}/{podID}/{uid}/{containerName}": {"proxy"},
126126
"/checkpoint/{podNamespace}/{podID}/{containerName}": {"checkpoint"},
127127
"/configz": {"proxy"},
128-
"/statusz": {"proxy"},
128+
"/statusz": {"statusz"},
129129
"/containerLogs/{podNamespace}/{podID}/{containerName}": {"proxy"},
130130
"/debug/flags/v": {"proxy"},
131131
"/debug/pprof/{subpath:*}": {"proxy"},
@@ -160,7 +160,6 @@ func AuthzTestCases(fineGrained bool) []AuthzTestCase {
160160
testPaths["/pods/"] = append([]string{"pods"}, testPaths["/pods/"]...)
161161
testPaths["/runningpods/"] = append([]string{"pods"}, testPaths["/runningpods/"]...)
162162
testPaths["/configz"] = append([]string{"configz"}, testPaths["/configz"]...)
163-
testPaths["/statusz"] = append([]string{"statusz"}, testPaths["/statusz"]...)
164163
}
165164

166165
testCases := []AuthzTestCase{}

0 commit comments

Comments
 (0)