Skip to content

Commit 1298865

Browse files
committed
fixing systemtest for services
1 parent 4980814 commit 1298865

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

systemtests/service_test.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,7 @@ func (s systemtestSuite) TestServiceTriggerNetpluginRestart(c *C) {
721721
serviceNetworks = map[string][]string{}
722722
tenantNames = map[string][]string{}
723723
servicesPerTenant = map[string]map[string][]*container{}
724+
pktTag = 0
724725
)
725726

726727
numContainer := s.containers
@@ -749,13 +750,15 @@ func (s systemtestSuite) TestServiceTriggerNetpluginRestart(c *C) {
749750
Subnet: fmt.Sprintf("10.%d.%d.0/24", tenantNum, networkNum),
750751
Gateway: fmt.Sprintf("10.%d.%d.254", tenantNum, networkNum),
751752
Encap: "vxlan",
753+
PktTag: pktTag + 1000,
752754
}
753755

754756
logrus.Infof("Creating network %s on tenant %s", network.NetworkName, network.TenantName)
755757

756758
c.Assert(s.cli.NetworkPost(network), IsNil)
757759
netNames = append(netNames, network.NetworkName)
758760
tenantNames[tenantName] = append(tenantNames[tenantName], network.NetworkName)
761+
pktTag++
759762
}
760763
serviceNetworks[tenantName] = s.createServiceNetworks(c, i, numSvcNet, tenantName)
761764
}
@@ -851,7 +854,9 @@ func (s systemtestSuite) TestServiceTriggerNetpluginRestart(c *C) {
851854
c.Assert(s.removeContainers(containers[network+tenant]), IsNil)
852855
c.Assert(s.cli.NetworkDelete(tenant, network), IsNil)
853856
}
854-
857+
if tenant != "default" {
858+
c.Assert(s.cli.TenantDelete(tenant), IsNil)
859+
}
855860
}
856861
}
857862
}

0 commit comments

Comments
 (0)