Skip to content

Commit 2f1d07a

Browse files
chore(deps): bump github.com/stackitcloud/stackit-sdk-go/services/mongodbflex from 1.4.0 to 1.5.0 (#856)
Co-authored-by: Ruben Hoenle <[email protected]>
1 parent 32bd967 commit 2f1d07a

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ require (
2121
github.com/stackitcloud/stackit-sdk-go/services/dns v0.17.0
2222
github.com/stackitcloud/stackit-sdk-go/services/git v0.7.0
2323
github.com/stackitcloud/stackit-sdk-go/services/iaas v0.27.0
24-
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.4.0
24+
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.5.0
2525
github.com/stackitcloud/stackit-sdk-go/services/opensearch v0.24.0
2626
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.2.0
2727
github.com/stackitcloud/stackit-sdk-go/services/resourcemanager v0.17.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,8 @@ github.com/stackitcloud/stackit-sdk-go/services/logme v0.25.0 h1:QKOfaB7EcuJmBCx
581581
github.com/stackitcloud/stackit-sdk-go/services/logme v0.25.0/go.mod h1:XjDMHhAQogFXsVR+o138CPYG1FOe0/Nl2Vm+fAgzx2A=
582582
github.com/stackitcloud/stackit-sdk-go/services/mariadb v0.25.0 h1:vxk6ztgzUIPMkfv27NRpniFqCyGGGFsWJQUvFs43bQA=
583583
github.com/stackitcloud/stackit-sdk-go/services/mariadb v0.25.0/go.mod h1:Pb8IEV5/jP8k75dVcN5cn3kP7PHTy/4KXXKpG76oj4U=
584-
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.4.0 h1:il4vBOejtX0//CWuY6CDpFfPpDIvin5V9QIaKvyXV/M=
585-
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.4.0/go.mod h1:U1Zf/S9IuDvRJq1tRKFT/bsJd4qxYzwtukqX3TL++Mw=
584+
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.5.0 h1:0amQ/exKUwmxGNbEGyWJF7D6wBjo59WGsn6yCX6k3zo=
585+
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.5.0/go.mod h1:U1Zf/S9IuDvRJq1tRKFT/bsJd4qxYzwtukqX3TL++Mw=
586586
github.com/stackitcloud/stackit-sdk-go/services/objectstorage v1.3.0 h1:bK5FDpSGfUKDXNkqOoiqOU9hua2YfcdYsGS4zQQ9wg0=
587587
github.com/stackitcloud/stackit-sdk-go/services/objectstorage v1.3.0/go.mod h1:Q2SJXlZTksvNAb1QnpGNfDSw/OMPN9uopaKuptUGhO8=
588588
github.com/stackitcloud/stackit-sdk-go/services/observability v0.9.0 h1:NuRgx13h3mnzWcRTLPiL5fk06xpl43vaz+QOuHvSEHA=

internal/cmd/mongodbflex/instance/update/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func parseInput(p *print.Printer, cmd *cobra.Command, inputArgs []string) (*inpu
201201

202202
type MongoDBFlexClient interface {
203203
PartialUpdateInstance(ctx context.Context, projectId, instanceId, region string) mongodbflex.ApiPartialUpdateInstanceRequest
204-
GetInstanceExecute(ctx context.Context, projectId, instanceId, region string) (*mongodbflex.GetInstanceResponse, error)
204+
GetInstanceExecute(ctx context.Context, projectId, instanceId, region string) (*mongodbflex.InstanceResponse, error)
205205
ListFlavorsExecute(ctx context.Context, projectId, region string) (*mongodbflex.ListFlavorsResponse, error)
206206
ListStoragesExecute(ctx context.Context, projectId, flavorId, region string) (*mongodbflex.ListStoragesResponse, error)
207207
}

internal/cmd/mongodbflex/instance/update/update_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ type mongoDBFlexClientMocked struct {
3131
listStoragesFails bool
3232
listStoragesResp *mongodbflex.ListStoragesResponse
3333
getInstanceFails bool
34-
getInstanceResp *mongodbflex.GetInstanceResponse
34+
getInstanceResp *mongodbflex.InstanceResponse
3535
}
3636

3737
func (c *mongoDBFlexClientMocked) PartialUpdateInstance(ctx context.Context, projectId, instanceId, region string) mongodbflex.ApiPartialUpdateInstanceRequest {
3838
return testClient.PartialUpdateInstance(ctx, projectId, instanceId, region)
3939
}
4040

41-
func (c *mongoDBFlexClientMocked) GetInstanceExecute(_ context.Context, _, _, _ string) (*mongodbflex.GetInstanceResponse, error) {
41+
func (c *mongoDBFlexClientMocked) GetInstanceExecute(_ context.Context, _, _, _ string) (*mongodbflex.InstanceResponse, error) {
4242
if c.getInstanceFails {
4343
return nil, fmt.Errorf("get instance failed")
4444
}
@@ -354,7 +354,7 @@ func TestBuildRequest(t *testing.T) {
354354
model *inputModel
355355
expectedRequest mongodbflex.ApiPartialUpdateInstanceRequest
356356
getInstanceFails bool
357-
getInstanceResp *mongodbflex.GetInstanceResponse
357+
getInstanceResp *mongodbflex.InstanceResponse
358358
listFlavorsFails bool
359359
listFlavorsResp *mongodbflex.ListFlavorsResponse
360360
listStoragesFails bool
@@ -414,7 +414,7 @@ func TestBuildRequest(t *testing.T) {
414414
model.StorageClass = utils.Ptr("class")
415415
}),
416416
isValid: true,
417-
getInstanceResp: &mongodbflex.GetInstanceResponse{
417+
getInstanceResp: &mongodbflex.InstanceResponse{
418418
Item: &mongodbflex.Instance{
419419
Flavor: &mongodbflex.Flavor{
420420
Id: utils.Ptr(testFlavorId),
@@ -442,7 +442,7 @@ func TestBuildRequest(t *testing.T) {
442442
model.StorageSize = utils.Ptr(int64(10))
443443
}),
444444
isValid: true,
445-
getInstanceResp: &mongodbflex.GetInstanceResponse{
445+
getInstanceResp: &mongodbflex.InstanceResponse{
446446
Item: &mongodbflex.Instance{
447447
Flavor: &mongodbflex.Flavor{
448448
Id: utils.Ptr(testFlavorId),
@@ -528,7 +528,7 @@ func TestBuildRequest(t *testing.T) {
528528
model.StorageClass = utils.Ptr("non-existing-class")
529529
},
530530
),
531-
getInstanceResp: &mongodbflex.GetInstanceResponse{
531+
getInstanceResp: &mongodbflex.InstanceResponse{
532532
Item: &mongodbflex.Instance{
533533
Flavor: &mongodbflex.Flavor{
534534
Id: utils.Ptr(testFlavorId),
@@ -551,7 +551,7 @@ func TestBuildRequest(t *testing.T) {
551551
model.StorageSize = utils.Ptr(int64(9))
552552
},
553553
),
554-
getInstanceResp: &mongodbflex.GetInstanceResponse{
554+
getInstanceResp: &mongodbflex.InstanceResponse{
555555
Item: &mongodbflex.Instance{
556556
Flavor: &mongodbflex.Flavor{
557557
Id: utils.Ptr(testFlavorId),

internal/pkg/services/mongodbflex/utils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var instanceTypeToReplicas = map[string]int64{
2222

2323
type MongoDBFlexClient interface {
2424
ListVersionsExecute(ctx context.Context, projectId, region string) (*mongodbflex.ListVersionsResponse, error)
25-
GetInstanceExecute(ctx context.Context, projectId, instanceId, region string) (*mongodbflex.GetInstanceResponse, error)
25+
GetInstanceExecute(ctx context.Context, projectId, instanceId, region string) (*mongodbflex.InstanceResponse, error)
2626
GetUserExecute(ctx context.Context, projectId, instanceId, userId, region string) (*mongodbflex.GetUserResponse, error)
2727
ListRestoreJobsExecute(ctx context.Context, projectId string, instanceId, region string) (*mongodbflex.ListRestoreJobsResponse, error)
2828
}

internal/pkg/services/mongodbflex/utils/utils_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type mongoDBFlexClientMocked struct {
2929
listVersionsFails bool
3030
listVersionsResp *mongodbflex.ListVersionsResponse
3131
getInstanceFails bool
32-
getInstanceResp *mongodbflex.GetInstanceResponse
32+
getInstanceResp *mongodbflex.InstanceResponse
3333
getUserFails bool
3434
getUserResp *mongodbflex.GetUserResponse
3535
listRestoreJobsFails bool
@@ -50,7 +50,7 @@ func (m *mongoDBFlexClientMocked) ListRestoreJobsExecute(_ context.Context, _, _
5050
return m.listRestoreJobsResp, nil
5151
}
5252

53-
func (m *mongoDBFlexClientMocked) GetInstanceExecute(_ context.Context, _, _, _ string) (*mongodbflex.GetInstanceResponse, error) {
53+
func (m *mongoDBFlexClientMocked) GetInstanceExecute(_ context.Context, _, _, _ string) (*mongodbflex.InstanceResponse, error) {
5454
if m.getInstanceFails {
5555
return nil, fmt.Errorf("could not get instance")
5656
}
@@ -434,13 +434,13 @@ func TestGetInstanceName(t *testing.T) {
434434
tests := []struct {
435435
description string
436436
getInstanceFails bool
437-
getInstanceResp *mongodbflex.GetInstanceResponse
437+
getInstanceResp *mongodbflex.InstanceResponse
438438
isValid bool
439439
expectedOutput string
440440
}{
441441
{
442442
description: "base",
443-
getInstanceResp: &mongodbflex.GetInstanceResponse{
443+
getInstanceResp: &mongodbflex.InstanceResponse{
444444
Item: &mongodbflex.Instance{
445445
Name: utils.Ptr(testInstanceName),
446446
},

0 commit comments

Comments
 (0)