@@ -144,7 +144,7 @@ func TestValidateMultitenantIPConfigsRequestSuccess(t *testing.T) {
144144 happyReq .OrchestratorContext = b
145145 happyReq .SecondaryInterfacesExist = false
146146
147- _ , respCode , err , _ := middleware .validateIPConfigsRequest (context .TODO (), happyReq )
147+ _ , respCode , err , _ := middleware .GetPodInfoForIPConfigsRequest (context .TODO (), happyReq )
148148 assert .Equal (t , err , "" )
149149 assert .Equal (t , respCode , types .Success )
150150 assert .Equal (t , happyReq .SecondaryInterfacesExist , true )
@@ -158,7 +158,7 @@ func TestValidateMultitenantIPConfigsRequestSuccess(t *testing.T) {
158158 happyReq2 .OrchestratorContext = b
159159 happyReq2 .SecondaryInterfacesExist = false
160160
161- _ , respCode , err , _ = middleware .validateIPConfigsRequest (context .TODO (), happyReq2 )
161+ _ , respCode , err , _ = middleware .GetPodInfoForIPConfigsRequest (context .TODO (), happyReq2 )
162162 assert .Equal (t , err , "" )
163163 assert .Equal (t , respCode , types .Success )
164164 assert .Equal (t , happyReq .SecondaryInterfacesExist , true )
@@ -172,7 +172,7 @@ func TestValidateMultitenantIPConfigsRequestSuccess(t *testing.T) {
172172 happyReq3 .OrchestratorContext = b
173173 happyReq3 .SecondaryInterfacesExist = false
174174
175- _ , respCode , err , _ = middleware .validateIPConfigsRequest (context .TODO (), happyReq3 )
175+ _ , respCode , err , _ = middleware .GetPodInfoForIPConfigsRequest (context .TODO (), happyReq3 )
176176 assert .Equal (t , err , "" )
177177 assert .Equal (t , respCode , types .Success )
178178 assert .Equal (t , happyReq3 .SecondaryInterfacesExist , false )
@@ -188,7 +188,7 @@ func TestValidateMultitenantIPConfigsRequestFailure(t *testing.T) {
188188 InfraContainerID : testPod1Info .InfraContainerID (),
189189 }
190190 failReq .OrchestratorContext = []byte ("invalid" )
191- _ , respCode , _ , _ := middleware .validateIPConfigsRequest (context .TODO (), failReq )
191+ _ , respCode , _ , _ := middleware .GetPodInfoForIPConfigsRequest (context .TODO (), failReq )
192192 assert .Equal (t , respCode , types .UnexpectedError )
193193
194194 // Pod doesn't exist in cache test
@@ -198,19 +198,19 @@ func TestValidateMultitenantIPConfigsRequestFailure(t *testing.T) {
198198 }
199199 b , _ := testPod2Info .OrchestratorContext ()
200200 failReq .OrchestratorContext = b
201- _ , respCode , _ , _ = middleware .validateIPConfigsRequest (context .TODO (), failReq )
201+ _ , respCode , _ , _ = middleware .GetPodInfoForIPConfigsRequest (context .TODO (), failReq )
202202 assert .Equal (t , respCode , types .UnexpectedError )
203203
204204 // Failed to get MTPNC
205205 b , _ = testPod3Info .OrchestratorContext ()
206206 failReq .OrchestratorContext = b
207- _ , respCode , _ , _ = middleware .validateIPConfigsRequest (context .TODO (), failReq )
207+ _ , respCode , _ , _ = middleware .GetPodInfoForIPConfigsRequest (context .TODO (), failReq )
208208 assert .Equal (t , respCode , types .UnexpectedError )
209209
210210 // MTPNC not ready
211211 b , _ = testPod4Info .OrchestratorContext ()
212212 failReq .OrchestratorContext = b
213- _ , respCode , _ , _ = middleware .validateIPConfigsRequest (context .TODO (), failReq )
213+ _ , respCode , _ , _ = middleware .GetPodInfoForIPConfigsRequest (context .TODO (), failReq )
214214 assert .Equal (t , respCode , types .UnexpectedError )
215215}
216216
0 commit comments