Skip to content

Commit

Permalink
fix: remove vendor config from http mock tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaportPhilipBrowne committed Sep 16, 2024
1 parent 09340af commit d8e1261
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions mve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,9 @@ func (suite *MVEClientTestSuite) TestBuyMVE() {
mveSvc := suite.client.MVEService
productUid := "36b3f68e-2f54-4331-bf94-f8984449365f"
req := &BuyMVERequest{
Name: "test-mve",
Term: 12,
LocationID: 1,
VendorConfig: PaloAltoConfig{
ImageID: 32,
ProductSize: "SMALL",
Vendor: "palo alto",
AdminSSHPublicKey: "test-key",
AdminPasswordHash: "test-hash",
},
Name: "test-mve",
Term: 12,
LocationID: 1,
DiversityZone: "blue",
}
jblob := `{
Expand Down Expand Up @@ -132,17 +125,10 @@ func (suite *MVEClientTestSuite) TestBuyMVE() {
]
}`
mveOrder := []MVEOrderConfig{{
LocationID: req.LocationID,
Name: req.Name,
Term: req.Term,
ProductType: strings.ToUpper(PRODUCT_MVE),
VendorConfig: &PaloAltoConfig{
ImageID: 32,
ProductSize: "SMALL",
Vendor: "palo alto",
AdminSSHPublicKey: "test-key",
AdminPasswordHash: "test-hash",
},
LocationID: req.LocationID,
Name: req.Name,
Term: req.Term,
ProductType: strings.ToUpper(PRODUCT_MVE),
NetworkInterfaces: []MVENetworkInterface{{Description: "Data Plane", VLAN: 0}},
Config: MVEConfig{
DiversityZone: req.DiversityZone,
Expand Down

0 comments on commit d8e1261

Please sign in to comment.