Skip to content

Commit 3b8d284

Browse files
stackit-pipelinerenovate-botGokceGK
authored
fix(deps): update stackit sdk modules (#509)
* fix(deps): update stackit sdk modules * changes for the renamed method --------- Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com> Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@stackit.cloud>
1 parent b517fc1 commit 3b8d284

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ require (
1717
github.com/spf13/viper v1.19.0
1818
github.com/stackitcloud/stackit-sdk-go/core v0.14.0
1919
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.4.0
20-
github.com/stackitcloud/stackit-sdk-go/services/dns v0.11.0
20+
github.com/stackitcloud/stackit-sdk-go/services/dns v0.12.0
2121
github.com/stackitcloud/stackit-sdk-go/services/iaas v0.16.0
2222
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v0.16.0
2323
github.com/stackitcloud/stackit-sdk-go/services/opensearch v0.19.0
2424
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v0.16.0
2525
github.com/stackitcloud/stackit-sdk-go/services/resourcemanager v0.11.0
2626
github.com/stackitcloud/stackit-sdk-go/services/runcommand v0.2.0
2727
github.com/stackitcloud/stackit-sdk-go/services/secretsmanager v0.10.0
28-
github.com/stackitcloud/stackit-sdk-go/services/serverbackup v0.2.0
28+
github.com/stackitcloud/stackit-sdk-go/services/serverbackup v0.3.0
2929
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.5.0
3030
github.com/stackitcloud/stackit-sdk-go/services/serviceenablement v0.3.0
3131
github.com/stackitcloud/stackit-sdk-go/services/ske v0.20.0

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ github.com/stackitcloud/stackit-sdk-go/core v0.14.0 h1:oBwwzrEHDTlZpRoQwmMQpNA8b
129129
github.com/stackitcloud/stackit-sdk-go/core v0.14.0/go.mod h1:mDX1mSTsB3mP+tNBGcFNx6gH1mGBN4T+dVt+lcw7nlw=
130130
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.4.0 h1:WXSIE4KfdHzaiiD0MF8CsoIv8I+Two/Bf/r28tYhRCU=
131131
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.4.0/go.mod h1:8spVqlPqZrvQQ63Qodbydk3qsZx7lr963ECft+sqFhY=
132-
github.com/stackitcloud/stackit-sdk-go/services/dns v0.11.0 h1:+OZ82DwFy4JIJThadVjvll5kUWjHPSLbUIF65njsNBk=
133-
github.com/stackitcloud/stackit-sdk-go/services/dns v0.11.0/go.mod h1:mv8U7kuclXo+0VpDHtBCkve/3i9h1yT+RAId/MUi+C8=
132+
github.com/stackitcloud/stackit-sdk-go/services/dns v0.12.0 h1:NypnmRbvjCX7ANJej1epwmopBEjkMzklJT3SY5iVwWg=
133+
github.com/stackitcloud/stackit-sdk-go/services/dns v0.12.0/go.mod h1:mv8U7kuclXo+0VpDHtBCkve/3i9h1yT+RAId/MUi+C8=
134134
github.com/stackitcloud/stackit-sdk-go/services/iaas v0.16.0 h1:geyW780gqNxzSsPvmlxy3kUUJaRA4eiF9V3b2Ibcdjs=
135135
github.com/stackitcloud/stackit-sdk-go/services/iaas v0.16.0/go.mod h1:YfuN+eXuqr846xeRyW2Vf1JM2jU0ikeQa76dDI66RsM=
136136
github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v0.17.0 h1:06CGP64CEk3Zg6i9kZCMRdmCzLLiyMWQqGK1teBr9Oc=
@@ -159,8 +159,8 @@ github.com/stackitcloud/stackit-sdk-go/services/runcommand v0.2.0 h1:tb0w+0imdJh
159159
github.com/stackitcloud/stackit-sdk-go/services/runcommand v0.2.0/go.mod h1:LgCIIj7jA2lWX4DI3bxUYD+m0TbWCr1VgAyBYNJeghc=
160160
github.com/stackitcloud/stackit-sdk-go/services/secretsmanager v0.10.0 h1:HrnEgRPt3eD/tEHyzDWyCRxNFzb9g/FLYfwIEEQZ+Rg=
161161
github.com/stackitcloud/stackit-sdk-go/services/secretsmanager v0.10.0/go.mod h1:268uoY2gKCa5xcDL169TGVjLUNTcZ2En77YdfYOcR1w=
162-
github.com/stackitcloud/stackit-sdk-go/services/serverbackup v0.2.0 h1:6IUrNIBEIpmrlfEK3QENQZB35KHEmeyc7w1owFOfGpc=
163-
github.com/stackitcloud/stackit-sdk-go/services/serverbackup v0.2.0/go.mod h1:+807U5ZLXns+CEbyIg483wNEwV10vaN6GjMnSZhw/64=
162+
github.com/stackitcloud/stackit-sdk-go/services/serverbackup v0.3.0 h1:Tlps8vBQmQ1mx2YFbzOzMIyWtXGJy7X3N9Qk3qk88Cc=
163+
github.com/stackitcloud/stackit-sdk-go/services/serverbackup v0.3.0/go.mod h1:+807U5ZLXns+CEbyIg483wNEwV10vaN6GjMnSZhw/64=
164164
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.5.0 h1:yf9BxAZEG2hdaekWxaNt2BOX/4qmGkl0d268ggR+tCU=
165165
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.5.0/go.mod h1:Wpqj80yGruCNYGr2yxqhRaLLj4gPSkhJqZyWRXUh/QU=
166166
github.com/stackitcloud/stackit-sdk-go/services/serviceenablement v0.3.0 h1:6IZBX9fyza9Eln3FHGHquvLNXQslk+dtkQp41G9+7+Y=

internal/pkg/services/serverbackup/utils/utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
)
99

1010
type ServerBackupClient interface {
11-
ListBackupSchedulesExecute(ctx context.Context, projectId, serverId string) (*serverbackup.ListBackupSchedules200Response, error)
12-
ListBackupsExecute(ctx context.Context, projectId, serverId string) (*serverbackup.ListBackups200Response, error)
11+
ListBackupSchedulesExecute(ctx context.Context, projectId, serverId string) (*serverbackup.GetBackupSchedulesResponse, error)
12+
ListBackupsExecute(ctx context.Context, projectId, serverId string) (*serverbackup.GetBackupsListResponse, error)
1313
}
1414

1515
func CanDisableBackupService(ctx context.Context, client ServerBackupClient, projectId, serverId string) (bool, error) {

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ var (
1818

1919
type serverbackupClientMocked struct {
2020
listBackupSchedulesFails bool
21-
listBackupSchedulesResp *serverbackup.ListBackupSchedules200Response
21+
listBackupSchedulesResp *serverbackup.GetBackupSchedulesResponse
2222
listBackupsFails bool
23-
listBackupsResp *serverbackup.ListBackups200Response
23+
listBackupsResp *serverbackup.GetBackupsListResponse
2424
}
2525

26-
func (m *serverbackupClientMocked) ListBackupSchedulesExecute(_ context.Context, _, _ string) (*serverbackup.ListBackupSchedules200Response, error) {
26+
func (m *serverbackupClientMocked) ListBackupSchedulesExecute(_ context.Context, _, _ string) (*serverbackup.GetBackupSchedulesResponse, error) {
2727
if m.listBackupSchedulesFails {
2828
return nil, fmt.Errorf("could not list backup schedules")
2929
}
3030
return m.listBackupSchedulesResp, nil
3131
}
3232

33-
func (m *serverbackupClientMocked) ListBackupsExecute(_ context.Context, _, _ string) (*serverbackup.ListBackups200Response, error) {
33+
func (m *serverbackupClientMocked) ListBackupsExecute(_ context.Context, _, _ string) (*serverbackup.GetBackupsListResponse, error) {
3434
if m.listBackupsFails {
3535
return nil, fmt.Errorf("could not list backups")
3636
}
@@ -42,43 +42,43 @@ func TestCanDisableBackupService(t *testing.T) {
4242
description string
4343
listBackupsFails bool
4444
listBackupSchedulesFails bool
45-
listBackups *serverbackup.ListBackups200Response
46-
listBackupSchedules *serverbackup.ListBackupSchedules200Response
45+
listBackups *serverbackup.GetBackupsListResponse
46+
listBackupSchedules *serverbackup.GetBackupSchedulesResponse
4747
isValid bool // isValid ==> err == nil
4848
expectedOutput bool // expectedCanDisable
4949
}{
5050
{
5151
description: "base-ok-can-disable-backups-service-no-backups-no-backup-schedules",
5252
listBackupsFails: false,
5353
listBackupSchedulesFails: false,
54-
listBackups: &serverbackup.ListBackups200Response{Items: &[]serverbackup.Backup{}},
55-
listBackupSchedules: &serverbackup.ListBackupSchedules200Response{Items: &[]serverbackup.BackupSchedule{}},
54+
listBackups: &serverbackup.GetBackupsListResponse{Items: &[]serverbackup.Backup{}},
55+
listBackupSchedules: &serverbackup.GetBackupSchedulesResponse{Items: &[]serverbackup.BackupSchedule{}},
5656
isValid: true,
5757
expectedOutput: true,
5858
},
5959
{
6060
description: "not-ok-api-error-list-backups",
6161
listBackupsFails: true,
6262
listBackupSchedulesFails: false,
63-
listBackups: &serverbackup.ListBackups200Response{Items: &[]serverbackup.Backup{}},
64-
listBackupSchedules: &serverbackup.ListBackupSchedules200Response{Items: &[]serverbackup.BackupSchedule{}},
63+
listBackups: &serverbackup.GetBackupsListResponse{Items: &[]serverbackup.Backup{}},
64+
listBackupSchedules: &serverbackup.GetBackupSchedulesResponse{Items: &[]serverbackup.BackupSchedule{}},
6565
isValid: false,
6666
expectedOutput: false,
6767
},
6868
{
6969
description: "not-ok-api-error-list-backup-schedules",
7070
listBackupsFails: true,
7171
listBackupSchedulesFails: false,
72-
listBackups: &serverbackup.ListBackups200Response{Items: &[]serverbackup.Backup{}},
73-
listBackupSchedules: &serverbackup.ListBackupSchedules200Response{Items: &[]serverbackup.BackupSchedule{}},
72+
listBackups: &serverbackup.GetBackupsListResponse{Items: &[]serverbackup.Backup{}},
73+
listBackupSchedules: &serverbackup.GetBackupSchedulesResponse{Items: &[]serverbackup.BackupSchedule{}},
7474
isValid: false,
7575
expectedOutput: false,
7676
},
7777
{
7878
description: "not-ok-has-backups-cannot-disable",
7979
listBackupsFails: false,
8080
listBackupSchedulesFails: false,
81-
listBackups: &serverbackup.ListBackups200Response{
81+
listBackups: &serverbackup.GetBackupsListResponse{
8282
Items: &[]serverbackup.Backup{
8383
{
8484
CreatedAt: utils.Ptr("test timestamp"),
@@ -92,16 +92,16 @@ func TestCanDisableBackupService(t *testing.T) {
9292
},
9393
},
9494
},
95-
listBackupSchedules: &serverbackup.ListBackupSchedules200Response{Items: &[]serverbackup.BackupSchedule{}},
95+
listBackupSchedules: &serverbackup.GetBackupSchedulesResponse{Items: &[]serverbackup.BackupSchedule{}},
9696
isValid: true,
9797
expectedOutput: false,
9898
},
9999
{
100100
description: "not-ok-has-backups-schedules-cannot-disable",
101101
listBackupsFails: false,
102102
listBackupSchedulesFails: false,
103-
listBackups: &serverbackup.ListBackups200Response{Items: &[]serverbackup.Backup{}},
104-
listBackupSchedules: &serverbackup.ListBackupSchedules200Response{
103+
listBackups: &serverbackup.GetBackupsListResponse{Items: &[]serverbackup.Backup{}},
104+
listBackupSchedules: &serverbackup.GetBackupSchedulesResponse{
105105
Items: &[]serverbackup.BackupSchedule{
106106
{
107107
BackupProperties: nil,

0 commit comments

Comments
 (0)