mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-07 16:55:15 -04:00
bootstrapper: stop join-client earlier (#1268)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
420fecb986
commit
2023edaef0
2 changed files with 11 additions and 2 deletions
|
@ -110,6 +110,7 @@ func TestInit(t *testing.T) {
|
|||
fileHandler: file.NewHandler(afero.NewMemMapFs()),
|
||||
initSecretHash: initSecretHash,
|
||||
req: &initproto.InitRequest{InitSecret: initSecret, KmsUri: masterSecret.EncodeToURI(), StorageUri: uri.NoStoreURI},
|
||||
wantShutdown: true,
|
||||
},
|
||||
"node locked": {
|
||||
nodeLock: lockedLock,
|
||||
|
@ -119,7 +120,6 @@ func TestInit(t *testing.T) {
|
|||
req: &initproto.InitRequest{InitSecret: initSecret, KmsUri: masterSecret.EncodeToURI(), StorageUri: uri.NoStoreURI},
|
||||
initSecretHash: initSecretHash,
|
||||
wantErr: true,
|
||||
wantShutdown: true,
|
||||
},
|
||||
"disk open error": {
|
||||
nodeLock: newFakeLock(),
|
||||
|
@ -129,6 +129,7 @@ func TestInit(t *testing.T) {
|
|||
req: &initproto.InitRequest{InitSecret: initSecret, KmsUri: masterSecret.EncodeToURI(), StorageUri: uri.NoStoreURI},
|
||||
initSecretHash: initSecretHash,
|
||||
wantErr: true,
|
||||
wantShutdown: true,
|
||||
},
|
||||
"disk uuid error": {
|
||||
nodeLock: newFakeLock(),
|
||||
|
@ -138,6 +139,7 @@ func TestInit(t *testing.T) {
|
|||
req: &initproto.InitRequest{InitSecret: initSecret, KmsUri: masterSecret.EncodeToURI(), StorageUri: uri.NoStoreURI},
|
||||
initSecretHash: initSecretHash,
|
||||
wantErr: true,
|
||||
wantShutdown: true,
|
||||
},
|
||||
"disk update passphrase error": {
|
||||
nodeLock: newFakeLock(),
|
||||
|
@ -147,6 +149,7 @@ func TestInit(t *testing.T) {
|
|||
req: &initproto.InitRequest{InitSecret: initSecret, KmsUri: masterSecret.EncodeToURI(), StorageUri: uri.NoStoreURI},
|
||||
initSecretHash: initSecretHash,
|
||||
wantErr: true,
|
||||
wantShutdown: true,
|
||||
},
|
||||
"write state file error": {
|
||||
nodeLock: newFakeLock(),
|
||||
|
@ -156,6 +159,7 @@ func TestInit(t *testing.T) {
|
|||
req: &initproto.InitRequest{InitSecret: initSecret, KmsUri: masterSecret.EncodeToURI(), StorageUri: uri.NoStoreURI},
|
||||
initSecretHash: initSecretHash,
|
||||
wantErr: true,
|
||||
wantShutdown: true,
|
||||
},
|
||||
"initialize cluster error": {
|
||||
nodeLock: newFakeLock(),
|
||||
|
@ -165,6 +169,7 @@ func TestInit(t *testing.T) {
|
|||
req: &initproto.InitRequest{InitSecret: initSecret, KmsUri: masterSecret.EncodeToURI(), StorageUri: uri.NoStoreURI},
|
||||
initSecretHash: initSecretHash,
|
||||
wantErr: true,
|
||||
wantShutdown: true,
|
||||
},
|
||||
"wrong initSecret": {
|
||||
nodeLock: newFakeLock(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue