@@ -8,10 +8,11 @@ import (
88 "github.com/google/go-cmp/cmp"
99 "github.com/google/go-cmp/cmp/cmpopts"
1010 "github.com/google/uuid"
11+ loadbalancer "github.com/stackitcloud/stackit-sdk-go/services/loadbalancer/v2api"
12+
1113 "github.com/stackitcloud/stackit-cli/internal/pkg/globalflags"
1214 "github.com/stackitcloud/stackit-cli/internal/pkg/testutils"
1315 "github.com/stackitcloud/stackit-cli/internal/pkg/utils"
14- loadbalancer "github.com/stackitcloud/stackit-sdk-go/services/loadbalancer/v2api"
1516)
1617
1718const (
@@ -34,7 +35,7 @@ type mockSettings struct {
3435
3536func newAPIMock (s mockSettings ) loadbalancer.DefaultAPI {
3637 return & loadbalancer.DefaultAPIServiceMock {
37- GetCredentialsExecuteMock : utils .Ptr (func (r loadbalancer.ApiGetCredentialsRequest ) (* loadbalancer.GetCredentialsResponse , error ) {
38+ GetCredentialsExecuteMock : utils .Ptr (func (_ loadbalancer.ApiGetCredentialsRequest ) (* loadbalancer.GetCredentialsResponse , error ) {
3839 if s .getCredentialsError {
3940 return nil , fmt .Errorf ("get credentials failed" )
4041 }
@@ -43,17 +44,6 @@ func newAPIMock(s mockSettings) loadbalancer.DefaultAPI {
4344 }
4445}
4546
46- func (c * mockSettings ) UpdateCredentials (ctx context.Context , projectId , region , credentialsRef string ) loadbalancer.ApiUpdateCredentialsRequest {
47- return testClient .DefaultAPI .UpdateCredentials (ctx , projectId , region , credentialsRef )
48- }
49-
50- func (c * mockSettings ) GetCredentialsExecute (_ context.Context , _ , _ , _ string ) (* loadbalancer.GetCredentialsResponse , error ) {
51- if c .getCredentialsError {
52- return nil , fmt .Errorf ("get credentials failed" )
53- }
54- return c .getCredentialsResponse , nil
55- }
56-
5747func fixtureArgValues (mods ... func (argValues []string )) []string {
5848 argValues := []string {
5949 testCredentialsRef ,
0 commit comments