mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
* Add file secret suppression * Add line secret suppression * This will be consumed in the VSTS daily build. * Renamed tests with ConvertTo-SecureString to avoid false positives
13 lines
472 B
PowerShell
13 lines
472 B
PowerShell
Describe "ConvertTo--SecureString" -Tags "CI" {
|
|
|
|
Context "Checking return types of ConvertTo--SecureString" {
|
|
|
|
It "Should return System.Security.SecureString after converting plaintext variable"{
|
|
#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Demo/doc/test secret.")]
|
|
$PesterTestConvert = (ConvertTo-SecureString "plaintextpester" -AsPlainText -force)
|
|
$PesterTestConvert | Should BeOfType securestring
|
|
|
|
}
|
|
}
|
|
}
|