Skip to content

Commit 6586a49

Browse files
committed
adapting to latest contivmodel
1 parent faae86c commit 6586a49

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

systemtests/service_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func (s *systemtestSuite) TestServiceAddDeleteProviders(c *C) {
258258

259259
for tenant, service := range services {
260260
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)
262262
}
263263
servicesPerTenant[tenant] = serviceContainers
264264
}
@@ -317,7 +317,7 @@ func (s *systemtestSuite) TestServiceAddDeleteProviders(c *C) {
317317
c.Assert(<-endChan, IsNil)
318318
}
319319
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)...)
321321
servicesPerTenant[tenant] = serviceContainers
322322

323323
s.startListenersOnProviders(serviceContainers[svc.ServiceName], svc.Ports)
@@ -883,7 +883,7 @@ func (s *systemtestSuite) createServices(c *C, numServices int, tenant string, s
883883
service := &client.ServiceLB{
884884
ServiceName: fmt.Sprintf("svc-%d-%s", serviceNum, tenant),
885885
TenantName: tenant,
886-
Network: svcNetwork,
886+
NetworkName: svcNetwork,
887887
Ports: []string{"80:8080:TCP", "643:7070:UDP"},
888888
}
889889
for index := serviceNum; index < serviceNum+numLabels; index++ {
@@ -944,7 +944,7 @@ func (s *systemtestSuite) deleteServiceNetworks(c *C, tenant string, networks []
944944
func (s *systemtestSuite) deleteServices(c *C, tenant string, services []*client.ServiceLB) {
945945
for _, service := range services {
946946
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)
948948
}
949949
}
950950

0 commit comments

Comments
 (0)