mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-11 09:51:16 -04:00
vault: testing standby mode
This commit is contained in:
parent
b395bce1d9
commit
ceab0a5031
1 changed files with 6 additions and 0 deletions
|
|
@ -1062,6 +1062,12 @@ func TestCore_Standby(t *testing.T) {
|
|||
t.Fatalf("should be standby")
|
||||
}
|
||||
|
||||
// Request should fail in standby mode
|
||||
_, err = core2.HandleRequest(req)
|
||||
if err != ErrStandby {
|
||||
t.Fatalf("err: %v", err)
|
||||
}
|
||||
|
||||
// Seal the first core, should step down
|
||||
err = core.Seal(root)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue