mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-03 14:54:53 -04:00
cli: fix iam rollback (#1148)
* AB#2897 rename DestroyCluster * #AB2897 error if terraform dir exists * AB#2897 reword DestroyResources
This commit is contained in:
parent
94245416ca
commit
7410cf8038
11 changed files with 92 additions and 32 deletions
|
@ -33,7 +33,7 @@ func TestTerminator(t *testing.T) {
|
|||
wantErr: true,
|
||||
},
|
||||
"destroy cluster error": {
|
||||
tfClient: &stubTerraformClient{destroyClusterErr: someErr},
|
||||
tfClient: &stubTerraformClient{destroyErr: someErr},
|
||||
libvirt: &stubLibvirtRunner{},
|
||||
wantErr: true,
|
||||
},
|
||||
|
@ -70,7 +70,7 @@ func TestTerminator(t *testing.T) {
|
|||
}
|
||||
assert.NoError(err)
|
||||
cl := tc.tfClient.(*stubTerraformClient)
|
||||
assert.True(cl.destroyClusterCalled)
|
||||
assert.True(cl.destroyCalled)
|
||||
assert.True(cl.removeInstallerCalled)
|
||||
assert.True(tc.libvirt.stopCalled)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue