@@ -1182,10 +1182,10 @@ func TestServiceRegistryUpdateDryRun(t *testing.T) {
1182
1182
}},
1183
1183
},
1184
1184
}, rest .ValidateAllObjectFunc , & metav1.CreateOptions {})
1185
- svc := obj .(* api.Service )
1186
1185
if err != nil {
1187
1186
t .Fatalf ("Expected no error: %v" , err )
1188
1187
}
1188
+ svc := obj .(* api.Service )
1189
1189
1190
1190
// Test dry run update request external name to node port
1191
1191
updatedSvc , created , err := storage .Update (ctx , svc .Name , rest .DefaultUpdatedObjectInfo (& api.Service {
@@ -1251,6 +1251,7 @@ func TestServiceRegistryUpdateDryRun(t *testing.T) {
1251
1251
Selector : map [string ]string {"bar" : "baz" },
1252
1252
SessionAffinity : api .ServiceAffinityNone ,
1253
1253
Type : api .ServiceTypeNodePort ,
1254
+ ClusterIP : "1.2.3.5" ,
1254
1255
Ports : []api.ServicePort {{
1255
1256
NodePort : 30020 ,
1256
1257
Port : 6502 ,
@@ -1259,10 +1260,11 @@ func TestServiceRegistryUpdateDryRun(t *testing.T) {
1259
1260
}},
1260
1261
},
1261
1262
}, rest .ValidateAllObjectFunc , & metav1.CreateOptions {})
1262
- svc = obj .(* api.Service )
1263
1263
if err != nil {
1264
1264
t .Fatalf ("Expected no error: %v" , err )
1265
1265
}
1266
+ svc = obj .(* api.Service )
1267
+
1266
1268
_ , _ , err = storage .Update (ctx , svc .Name , rest .DefaultUpdatedObjectInfo (& api.Service {
1267
1269
ObjectMeta : metav1.ObjectMeta {
1268
1270
Name : svc .Name ,
@@ -1301,10 +1303,10 @@ func TestServiceRegistryUpdateDryRun(t *testing.T) {
1301
1303
}},
1302
1304
},
1303
1305
}, rest .ValidateAllObjectFunc , & metav1.CreateOptions {})
1304
- svc = obj .(* api.Service )
1305
1306
if err != nil {
1306
1307
t .Fatalf ("Expected no error: %v" , err )
1307
1308
}
1309
+ svc = obj .(* api.Service )
1308
1310
_ , _ , err = storage .Update (ctx , svc .Name , rest .DefaultUpdatedObjectInfo (& api.Service {
1309
1311
ObjectMeta : metav1.ObjectMeta {
1310
1312
Name : svc .Name ,
0 commit comments