@@ -310,6 +310,7 @@ func TestServiceDiscoveryClient_RegisterEndpoints(t *testing.T) {
310
310
model .EndpointHostnameAttr : test .Hostname ,
311
311
model .EndpointNodeNameAttr : test .Nodename ,
312
312
model .ServiceExportCreationAttr : strconv .FormatInt (test .SvcExportCreationTimestamp , 10 ),
313
+ model .K8sVersionAttr : test .PackageVersion ,
313
314
}
314
315
attrs2 := map [string ]string {
315
316
model .ClusterIdAttr : test .ClusterId1 ,
@@ -327,6 +328,7 @@ func TestServiceDiscoveryClient_RegisterEndpoints(t *testing.T) {
327
328
model .EndpointHostnameAttr : test .Hostname ,
328
329
model .EndpointNodeNameAttr : test .Nodename ,
329
330
model .ServiceExportCreationAttr : strconv .FormatInt (test .SvcExportCreationTimestamp , 10 ),
331
+ model .K8sVersionAttr : test .PackageVersion ,
330
332
}
331
333
332
334
tc .mockApi .EXPECT ().RegisterInstance (context .TODO (), test .SvcId , test .EndptId1 , attrs1 ).
@@ -370,6 +372,7 @@ func TestServiceDiscoveryClient_DeleteEndpoints(t *testing.T) {
370
372
}
371
373
372
374
func getTestSdClient (t * testing.T ) * testSdClient {
375
+ test .SetTestVersion ()
373
376
mockController := gomock .NewController (t )
374
377
mockCache := cloudmapMock .NewMockServiceDiscoveryClientCache (mockController )
375
378
mockApi := cloudmapMock .NewMockServiceDiscoveryApi (mockController )
@@ -409,6 +412,7 @@ func getHttpInstanceSummaryForTest() []types.HttpInstanceSummary {
409
412
model .EndpointHostnameAttr : test .Hostname ,
410
413
model .EndpointNodeNameAttr : test .Nodename ,
411
414
model .ServiceExportCreationAttr : strconv .FormatInt (test .SvcExportCreationTimestamp , 10 ),
415
+ model .K8sVersionAttr : test .PackageVersion ,
412
416
},
413
417
},
414
418
{
@@ -429,6 +433,7 @@ func getHttpInstanceSummaryForTest() []types.HttpInstanceSummary {
429
433
model .EndpointHostnameAttr : test .Hostname ,
430
434
model .EndpointNodeNameAttr : test .Nodename ,
431
435
model .ServiceExportCreationAttr : strconv .FormatInt (test .SvcExportCreationTimestamp , 10 ),
436
+ model .K8sVersionAttr : test .PackageVersion ,
432
437
},
433
438
},
434
439
}
0 commit comments