Skip to content

Commit 1ef484f

Browse files
authored
Missed one case of hardcoded test passwd. (#786)
1 parent 5412c5b commit 1ef484f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/PSCredentialInfo.Tests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ Describe "Create PSCredentialInfo with VaultName, SecretName, and Credential" -t
3434

3535
It "Creates PSCredentialInfo successfully if Credential is non-null and of type PSCredential" {
3636
$randomSecret = [System.IO.Path]::GetRandomFileName()
37-
$credential = New-Object System.Management.Automation.PSCredential ("username", (ConvertTo-SecureString "password" -AsPlainText -Force))
37+
$randomPassword = [System.IO.Path]::GetRandomFileName()
38+
$credential = New-Object System.Management.Automation.PSCredential ("username", (ConvertTo-SecureString $randomPassword -AsPlainText -Force))
3839
$credentialInfo = New-Object Microsoft.PowerShell.PowerShellGet.UtilClasses.PSCredentialInfo ("testvault", $randomSecret, $credential)
3940

4041
$credentialInfo.VaultName | Should -Be "testvault"

0 commit comments

Comments
 (0)