Skip to content

Commit 1e5d8a5

Browse files
committed
fix test failures: update passphrases to meet new validation requirements
1 parent 30b04a5 commit 1e5d8a5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

internal/validation/HandleKeyGeneration_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func TestHandleKeyGeneration(t *testing.T) {
185185
// Create a mock command for testing
186186
cmd := &cobra.Command{}
187187
cmd.Flags().Bool("passphrase", params.UsePassphrase, "")
188-
cmd.Flags().String("passphrase-value", "testpassword123", "")
188+
cmd.Flags().String("passphrase-value", "UnpredictableT3st!@#$", "")
189189
cmd.Flags().Bool("interactive", false, "")
190190

191191
result, err := HandleKeyGeneration(cmd, vaultPath, params)
@@ -337,7 +337,7 @@ func TestGenerateNewKey(t *testing.T) {
337337
setupCmd: func() *cobra.Command {
338338
cmd := &cobra.Command{}
339339
cmd.Flags().Bool("passphrase", true, "")
340-
cmd.Flags().String("passphrase-value", "testpassword123", "")
340+
cmd.Flags().String("passphrase-value", "UnpredictableT3st!@#$", "")
341341
cmd.Flags().Bool("interactive", false, "")
342342
return cmd
343343
},
@@ -750,7 +750,7 @@ func TestHandleKeyGenerationIntegration(t *testing.T) {
750750

751751
cmd := &cobra.Command{}
752752
cmd.Flags().Bool("passphrase", true, "")
753-
cmd.Flags().String("passphrase-value", "integration-test-pass-123", "")
753+
cmd.Flags().String("passphrase-value", "UnpredictableT3st!@#$", "")
754754
cmd.Flags().Bool("interactive", false, "")
755755

756756
result, err := HandleKeyGeneration(cmd, vaultPath, params)

0 commit comments

Comments
 (0)