mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-03 14:54:53 -04:00
Manually manage GCP service accounts
This commit is contained in:
parent
f9c70d5c5a
commit
e761c9bf97
19 changed files with 186 additions and 555 deletions
|
@ -29,7 +29,6 @@ func TestTerminator(t *testing.T) {
|
|||
GCPControlPlaneInstanceTemplate: "template",
|
||||
GCPNetwork: "network",
|
||||
GCPFirewalls: []string{"a", "b", "c"},
|
||||
GCPServiceAccount: "service-account@project.iam.gserviceaccount.com",
|
||||
}
|
||||
}
|
||||
someAzureState := func() state.ConstellationState {
|
||||
|
@ -80,11 +79,6 @@ func TestTerminator(t *testing.T) {
|
|||
state: someGCPState(),
|
||||
wantErr: true,
|
||||
},
|
||||
"gcp terminateServiceAccount error": {
|
||||
gcpclient: &stubGcpClient{terminateServiceAccountErr: someErr},
|
||||
state: someGCPState(),
|
||||
wantErr: true,
|
||||
},
|
||||
"azure": {
|
||||
azureclient: &stubAzureClient{},
|
||||
state: someAzureState(),
|
||||
|
@ -135,7 +129,6 @@ func TestTerminator(t *testing.T) {
|
|||
assert.True(cl.terminateFirewallCalled)
|
||||
assert.True(cl.terminateInstancesCalled)
|
||||
assert.True(cl.terminateVPCsCalled)
|
||||
assert.True(cl.terminateServiceAccountCalled)
|
||||
assert.True(cl.closeCalled)
|
||||
case cloudprovider.Azure:
|
||||
cl := tc.azureclient.(*stubAzureClient)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue