mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-30 02:28:48 -04:00
Remove checks for GetState/SetState
This commit is contained in:
parent
f28e00659c
commit
9f599c3993
11 changed files with 182 additions and 1632 deletions
|
@ -60,14 +60,6 @@ func TestServiceAccountCreator(t *testing.T) {
|
|||
config: config.Default(),
|
||||
wantErr: true,
|
||||
},
|
||||
"gcp client setState error": {
|
||||
newGCPClient: func(ctx context.Context) (gcpclient, error) {
|
||||
return &stubGcpClient{setStateErr: someErr}, nil
|
||||
},
|
||||
state: someGCPState(),
|
||||
config: config.Default(),
|
||||
wantErr: true,
|
||||
},
|
||||
"gcp client createServiceAccount error": {
|
||||
newGCPClient: func(ctx context.Context) (gcpclient, error) {
|
||||
return &stubGcpClient{createServiceAccountErr: someErr}, nil
|
||||
|
@ -76,14 +68,6 @@ func TestServiceAccountCreator(t *testing.T) {
|
|||
config: config.Default(),
|
||||
wantErr: true,
|
||||
},
|
||||
"gcp client getState error": {
|
||||
newGCPClient: func(ctx context.Context) (gcpclient, error) {
|
||||
return &stubGcpClient{getStateErr: someErr}, nil
|
||||
},
|
||||
state: someGCPState(),
|
||||
config: config.Default(),
|
||||
wantErr: true,
|
||||
},
|
||||
"azure": {
|
||||
newAzureClient: func(subscriptionID, tenantID string) (azureclient, error) {
|
||||
return &fakeAzureClient{}, nil
|
||||
|
@ -102,14 +86,6 @@ func TestServiceAccountCreator(t *testing.T) {
|
|||
config: config.Default(),
|
||||
wantErr: true,
|
||||
},
|
||||
"azure client setState error": {
|
||||
newAzureClient: func(subscriptionID, tenantID string) (azureclient, error) {
|
||||
return &stubAzureClient{setStateErr: someErr}, nil
|
||||
},
|
||||
state: someAzureState(),
|
||||
config: config.Default(),
|
||||
wantErr: true,
|
||||
},
|
||||
"azure client createServiceAccount error": {
|
||||
newAzureClient: func(subscriptionID, tenantID string) (azureclient, error) {
|
||||
return &stubAzureClient{createServicePrincipalErr: someErr}, nil
|
||||
|
@ -118,14 +94,6 @@ func TestServiceAccountCreator(t *testing.T) {
|
|||
config: config.Default(),
|
||||
wantErr: true,
|
||||
},
|
||||
"azure client getState error": {
|
||||
newAzureClient: func(subscriptionID, tenantID string) (azureclient, error) {
|
||||
return &stubAzureClient{getStateErr: someErr}, nil
|
||||
},
|
||||
state: someAzureState(),
|
||||
config: config.Default(),
|
||||
wantErr: true,
|
||||
},
|
||||
"qemu": {
|
||||
state: state.ConstellationState{CloudProvider: "qemu"},
|
||||
wantStateMutator: func(cs *state.ConstellationState) {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue