Skip to content

Commit

Permalink
dpdk for fake
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Lin committed Jul 13, 2018
1 parent 2f33453 commit e8cb6b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/server/handler_network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func (suite *NetworkTestSuite) TestCreateNetwork() {
tName := namesgenerator.GetRandomName(0)
network := entity.Network{
Type: entity.FakeNetworkType,
IsDPDKPort: true, //for fake network, true means success,
Name: tName,
VLANTags: []int32{},
BridgeName: namesgenerator.GetRandomName(0),
Expand All @@ -63,6 +64,7 @@ func (suite *NetworkTestSuite) TestCreateNetwork() {
PhyInterfaces: []entity.PhyInterface{},
},
},
CreatedAt: &time.Time{},
}

bodyBytes, err := json.MarshalIndent(network, "", " ")
Expand Down Expand Up @@ -106,7 +108,10 @@ func (suite *NetworkTestSuite) TestCreateNetworkFail() {
VLANTags: []int32{},
BridgeName: namesgenerator.GetRandomName(0),
Nodes: []entity.Node{
entity.Node{},
entity.Node{
Name: namesgenerator.GetRandomName(0),
PhyInterfaces: []entity.PhyInterface{},
},
},
},
http.StatusInternalServerError},
Expand Down

0 comments on commit e8cb6b3

Please sign in to comment.