Skip to content

Commit 13a0687

Browse files
committed
Update test/e2e/go.mod
1 parent 8fbea5f commit 13a0687

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

test/e2e/common.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,14 @@ func DownloadMetricsFromCAPCManager(ctx context.Context, bootstrapKubeconfigPath
251251
}
252252

253253
func GetACSVersion(client *cloudstack.CloudStackClient) (string, error) {
254-
msServersResp, err := client.InfrastructureUsage.ListManagementServersMetrics(client.InfrastructureUsage.NewListManagementServersMetricsParams())
254+
msServersResp, err := client.InfrastructureUsage.ListManagementServers(client.InfrastructureUsage.NewListManagementServersParams())
255255
if err != nil {
256256
return "", err
257257
}
258258
if msServersResp.Count == 0 {
259259
return "", errors.New("no management servers found")
260260
}
261-
return msServersResp.ManagementServersMetrics[0].Version, nil
261+
return msServersResp.ManagementServers[0].Version, nil
262262
}
263263

264264
func DestroyOneMachine(client *cloudstack.CloudStackClient, clusterName string, machineType string) {

test/e2e/go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,5 @@ require (
137137
)
138138

139139
replace sigs.k8s.io/cluster-api => sigs.k8s.io/cluster-api v1.2.12
140+
141+
replace github.com/apache/cloudstack-go/v2 => github.com/shapeblue/cloudstack-go/v2 v2.9.1-0.20230821182853-7e3eacb8c381

test/e2e/go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,10 @@ github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQD
485485
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
486486
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
487487
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
488+
github.com/shapeblue/cloudstack-go/v2 v2.9.1-0.20230821174931-850c8f836fba h1:xQURtr9H7Ik+WJaEo4qYuN5Vo+aagAd7bVA5qAWeQj8=
489+
github.com/shapeblue/cloudstack-go/v2 v2.9.1-0.20230821174931-850c8f836fba/go.mod h1:Mc+tXpujtslBuZFk5atoGT2LanVxOrXS2GGgidAoz1A=
490+
github.com/shapeblue/cloudstack-go/v2 v2.9.1-0.20230821182853-7e3eacb8c381 h1:eMPPCGnfpj8hKQBpZvp4Bn85gV0gawZRLolD++jU86k=
491+
github.com/shapeblue/cloudstack-go/v2 v2.9.1-0.20230821182853-7e3eacb8c381/go.mod h1:Mc+tXpujtslBuZFk5atoGT2LanVxOrXS2GGgidAoz1A=
488492
github.com/shopspring/decimal v1.2.0 h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ=
489493
github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
490494
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=

test/e2e/unmanaged_k8s.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func UnmanagedK8SSpec(ctx context.Context, inputGetter func() CommonSpecInput) {
5555
Skip("Failed to get CloudStack's version")
5656
}
5757

58-
v, err := semver.ParseTolerant(version)
58+
v, err := semver.ParseTolerant(strings.Join(strings.Split(version, ".")[0:3], "."))
5959

6060
if err != nil {
6161
Skip("Failed to parse CloudStack version " + version)

0 commit comments

Comments
 (0)