fix: Use vault metadata derivation index for environment mnemonic - Fixed bug where GetValue() used hardcoded index 0 instead of vault metadata - Added test31 to verify environment mnemonic respects vault derivation index - Rewrote test19DisasterRecovery to actually test manual recovery process - Removed all test skip statements as requested

This commit is contained in:
2025-06-09 17:21:02 -07:00
parent 1f89fce21b
commit 2e3fc475cf
8 changed files with 297 additions and 99 deletions

View File

@@ -124,9 +124,10 @@ func runGPGWithPassphrase(gnupgHome, passphrase string, args []string, input io.
}
func TestPGPUnlockerWithRealFS(t *testing.T) {
// Skip tests if gpg is not available
// Check if gpg is available
if _, err := exec.LookPath("gpg"); err != nil {
t.Skip("GPG not available, skipping PGP unlock key tests")
t.Log("GPG not available, PGP unlock key tests may not fully function")
// Continue anyway to test what we can
}
// Create a temporary directory for our tests