Skip to content

Commit bf7bf7e

Browse files
committed
Remove GetServiceStatusExecute for ske service
Function was deprecated on 2024-04-16 and was now removed. Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
1 parent 388f37f commit bf7bf7e

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

internal/pkg/services/ske/utils/utils.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ const (
3232
)
3333

3434
type SKEClient interface {
35-
GetServiceStatusExecute(ctx context.Context, projectId string) (*ske.ProjectResponse, error)
3635
ListClustersExecute(ctx context.Context, projectId string) (*ske.ListClustersResponse, error)
3736
ListProviderOptionsExecute(ctx context.Context) (*ske.ProviderOptions, error)
3837
}

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212

1313
"github.com/google/go-cmp/cmp"
1414
"github.com/google/uuid"
15-
"github.com/stackitcloud/stackit-sdk-go/core/oapierror"
1615
"github.com/stackitcloud/stackit-sdk-go/services/ske"
1716
)
1817

@@ -74,16 +73,6 @@ type skeClientMocked struct {
7473
listProviderOptionsResp *ske.ProviderOptions
7574
}
7675

77-
func (m *skeClientMocked) GetServiceStatusExecute(_ context.Context, _ string) (*ske.ProjectResponse, error) {
78-
if m.getServiceStatusFails {
79-
return nil, fmt.Errorf("could not get service status")
80-
}
81-
if m.serviceDisabled {
82-
return nil, &oapierror.GenericOpenAPIError{StatusCode: 404}
83-
}
84-
return m.getServiceStatusResp, nil
85-
}
86-
8776
func (m *skeClientMocked) ListClustersExecute(_ context.Context, _ string) (*ske.ListClustersResponse, error) {
8877
if m.listClustersFails {
8978
return nil, fmt.Errorf("could not list clusters")

0 commit comments

Comments
 (0)