mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
fixing operator unseal test (#6241)
This commit is contained in:
committed by
Brian Kassouf
parent
ec015ec6bb
commit
4ad8ef777c
@@ -1,7 +1,10 @@
|
|||||||
package command
|
package command
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bytes"
|
||||||
|
"encoding/json"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
@@ -164,7 +167,7 @@ func TestOperatorUnsealCommand_Format(t *testing.T) {
|
|||||||
Client: client,
|
Client: client,
|
||||||
}
|
}
|
||||||
|
|
||||||
args, format, _ := setupEnv([]string{"unseal", "-format", "json"})
|
args, format, _ := setupEnv([]string{"operator", "unseal", "-format", "json"})
|
||||||
if format != "json" {
|
if format != "json" {
|
||||||
t.Fatalf("expected %q, got %q", "json", format)
|
t.Fatalf("expected %q, got %q", "json", format)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user