mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
Update generate-root output (#4807)
In current Vault server EncodedToken will always be populated regardless of type (root, DR), so prioritize that, and properly refer to it as Encoded Token instead of Root Token. Additionally refer to the nonce as the Operation nonce instead of the Root generation operation nonce since it's used for both strategies.
This commit is contained in:
committed by
Chris Hoffman
parent
9591e44bef
commit
7532e82ebe
@@ -346,7 +346,7 @@ func TestOperatorGenerateRootCommand_Run(t *testing.T) {
|
||||
t.Errorf("expected %d to be %d", code, exp)
|
||||
}
|
||||
|
||||
reToken := regexp.MustCompile(`Root Token\s+(.+)`)
|
||||
reToken := regexp.MustCompile(`Encoded Token\s+(.+)`)
|
||||
combined := ui.OutputWriter.String() + ui.ErrorWriter.String()
|
||||
match := reToken.FindAllStringSubmatch(combined, -1)
|
||||
if len(match) < 1 || len(match[0]) < 2 {
|
||||
@@ -421,7 +421,7 @@ func TestOperatorGenerateRootCommand_Run(t *testing.T) {
|
||||
t.Errorf("expected %d to be %d", code, exp)
|
||||
}
|
||||
|
||||
reToken := regexp.MustCompile(`Root Token\s+(.+)`)
|
||||
reToken := regexp.MustCompile(`Encoded Token\s+(.+)`)
|
||||
combined := ui.OutputWriter.String() + ui.ErrorWriter.String()
|
||||
match := reToken.FindAllStringSubmatch(combined, -1)
|
||||
if len(match) < 1 || len(match[0]) < 2 {
|
||||
|
||||
Reference in New Issue
Block a user