@@ -258,7 +258,7 @@ func (s *systemtestSuite) TestServiceAddDeleteProviders(c *C) {
258
258
259
259
for tenant , service := range services {
260
260
for _ , svc := range service {
261
- serviceContainers [svc .ServiceName ] = s .addProviders (c , svc .Selectors , numContainer , tenant , svc .Network )
261
+ serviceContainers [svc .ServiceName ] = s .addProviders (c , svc .Selectors , numContainer , tenant , svc .NetworkName )
262
262
}
263
263
servicesPerTenant [tenant ] = serviceContainers
264
264
}
@@ -317,7 +317,7 @@ func (s *systemtestSuite) TestServiceAddDeleteProviders(c *C) {
317
317
c .Assert (<- endChan , IsNil )
318
318
}
319
319
serviceContainers [svc .ServiceName ] = append (serviceContainers [svc .ServiceName ],
320
- s .addProviders (c , svc .Selectors , numContainer , tenant , svc .Network )... )
320
+ s .addProviders (c , svc .Selectors , numContainer , tenant , svc .NetworkName )... )
321
321
servicesPerTenant [tenant ] = serviceContainers
322
322
323
323
s .startListenersOnProviders (serviceContainers [svc .ServiceName ], svc .Ports )
@@ -883,7 +883,7 @@ func (s *systemtestSuite) createServices(c *C, numServices int, tenant string, s
883
883
service := & client.ServiceLB {
884
884
ServiceName : fmt .Sprintf ("svc-%d-%s" , serviceNum , tenant ),
885
885
TenantName : tenant ,
886
- Network : svcNetwork ,
886
+ NetworkName : svcNetwork ,
887
887
Ports : []string {"80:8080:TCP" , "643:7070:UDP" },
888
888
}
889
889
for index := serviceNum ; index < serviceNum + numLabels ; index ++ {
@@ -944,7 +944,7 @@ func (s *systemtestSuite) deleteServiceNetworks(c *C, tenant string, networks []
944
944
func (s * systemtestSuite ) deleteServices (c * C , tenant string , services []* client.ServiceLB ) {
945
945
for _ , service := range services {
946
946
logrus .Infof ("Deleting service %s on tenant %s , len(%d)" , service .ServiceName , tenant , len (services ))
947
- c .Assert (s .cli .ServiceLBDelete (service .ServiceName , tenant ), IsNil )
947
+ c .Assert (s .cli .ServiceLBDelete (tenant , service .ServiceName ), IsNil )
948
948
}
949
949
}
950
950
0 commit comments