Skip to content

Commit

Permalink
remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Lin committed Jul 9, 2018
1 parent 0f3ef07 commit 97701ce
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions src/networkcontroller/network_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,36 +158,6 @@ func (suite *NetworkControllerTestSuite) TestCreateOVSUserpsaceNetwork() {
defer exec.Command("ovs-vsctl", "del-br", tName).Run()
}

func (suite *NetworkControllerTestSuite) TestCreateOVSDPDKNetworkFailed() {
eth1 := entity.DPDKPhysicalPort{
Name: suite.ifName,
MTU: 1500,
PCIID: "00:00:03:00",
VlanTags: []int32{2043, 2143, 2243},
}

tName := namesgenerator.GetRandomName(0)
network := entity.Network{
Name: tName,
OVSUserspace: entity.OVSUserspaceNetwork{
BridgeName: tName,
DPDKPhysicalPorts: []entity.DPDKPhysicalPort{eth1},
},
Type: "netdev",
NodeName: suite.nodeName,
}

nodeIP, err := suite.kubectl.GetNodeExternalIP(suite.nodeName)
suite.NoError(err)
nc, err := New(net.JoinHostPort(nodeIP, DEFAULT_CONTROLLER_PORT))
suite.NoError(err)
err = nc.CreateOVSDPDKNetwork(tName, network.OVSUserspace.DPDKPhysicalPorts)
suite.Error(err)

//TODO we need support the list function to check the ovs is existed
defer exec.Command("ovs-vsctl", "del-br", tName).Run()
}

func (suite *NetworkControllerTestSuite) TestDeleteNetwork() {
//Parameters
eth1 := entity.PhysicalPort{
Expand Down

0 comments on commit 97701ce

Please sign in to comment.