Closed galiacheng closed 1 year ago
The exception is caused by line 50 in arm-ttk/testcases/CreateUIDefinition/PasswordBoxes-Must-Have-Min-Length.test.ps1
.
If I changed line 50 in arm-ttk/testcases/CreateUIDefinition/PasswordBoxes-Must-Have-Min-Length.test.ps1
from
Write-Warning "PasswordBox '$($pwb.Name)' regex does not have a minimum length of $PasswordMinLength" -TargetObject $pwb
to
Write-Warning "PasswordBox '$($pwb.Name)' regex does not have a minimum length of $PasswordMinLength"
The error is resolved.
The test failed when PasswordBoxes has length that is less than min length, reporting error like
PasswordBox 'dbAdminPassword' regex is invalid: A parameter cannot be found that matches parameter name 'TargetObject'
.Expected result is a warning, but not a failure.
To reproduce the error:
mainTemplate.json
Command to run the test case:
Actual result:
Expected result: a warning.