Skip to content

Commit

Permalink
Set vCPU defaults in expected results
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiol committed Nov 13, 2023
1 parent 5cd2292 commit 54427c6
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions cmd/ecloud/ecloud_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ func Test_ecloudInstanceCreate(t *testing.T) {
cmd.ParseFlags([]string{"--name=testinstance", "--image=img-abcdef12"})

req := ecloud.CreateInstanceRequest{
Name: "testinstance",
ImageID: "img-abcdef12",
Name: "testinstance",
ImageID: "img-abcdef12",
VCPUSockets: 1,
VCPUCoresPerSocket: 1,
}

service.EXPECT().CreateInstance(req).Return("i-abcdef12", nil)
Expand All @@ -140,8 +142,10 @@ func Test_ecloudInstanceCreate(t *testing.T) {
cmd.ParseFlags([]string{"--name=testinstance", "--image=test"})

req := ecloud.CreateInstanceRequest{
Name: "testinstance",
ImageID: "img-abcdef12",
Name: "testinstance",
ImageID: "img-abcdef12",
VCPUSockets: 1,
VCPUCoresPerSocket: 1,
}

service.EXPECT().GetImages(connection.APIRequestParameters{
Expand Down Expand Up @@ -241,9 +245,11 @@ func Test_ecloudInstanceCreate(t *testing.T) {
cmd.ParseFlags([]string{"--name=testinstance", "--image=img-abcdef12", "--network=net-abcdef12"})

req := ecloud.CreateInstanceRequest{
Name: "testinstance",
ImageID: "img-abcdef12",
NetworkID: "net-abcdef12",
Name: "testinstance",
ImageID: "img-abcdef12",
NetworkID: "net-abcdef12",
VCPUSockets: 1,
VCPUCoresPerSocket: 1,
}

service.EXPECT().CreateInstance(req).Return("i-abcdef12", nil)
Expand Down

0 comments on commit 54427c6

Please sign in to comment.