Replies: 5 comments 2 replies
-
@akwebb1 try debugging a test, it will use the PSIC rather than the background and you will get a prompt. Tests are not meant to be interactive, they're meant to run noninteractively, so you may want to reconsider your test by either mocking the secret, or using a value like the CredMan vault that doesn't require user interaction to retrieve a secret. |
Beta Was this translation helpful? Give feedback.
-
I will check out CredMan. I usually just unlock my vault once in the VSCode PowerShell Integrated Console and then I can run/debug my tests without entering the password each time. |
Beta Was this translation helpful? Give feedback.
-
Cool. I am trying to find info on the "CredMan vault" you mentioned which might be my solution but I am coming up empty. Do you have a link? |
Beta Was this translation helpful? Give feedback.
-
is this it? https://www.powershellgallery.com/packages/SecretManagement.JustinGrote.CredMan/1.0.0. If so I am out of luck since I am running under both Windows and Linux. |
Beta Was this translation helpful? Give feedback.
-
I'll look into those as well. Thanks for the help. |
Beta Was this translation helpful? Give feedback.
-
I tried the new adapter and it looks nice except for the fact that my tests use data stored in Microsoft.PowerShell.SecretManagement. I can't find a way to incorporate that. I just get an error that a password is required but I have no way of providing it that I have found. Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions