Test-ActiveDirectory icon indicating copy to clipboard operation
Test-ActiveDirectory copied to clipboard

Needs upgrading to support pester v5

Open Marcus-James-Adams opened this issue 3 years ago • 0 comments

Starting discovery in 1 files. Discovery found 223 tests in 4.86s. Running tests.

The code then fails every test with a similar error to below

[-] Active Directory Forest Operational Readiness checks.Verifying Forest Configuration.Forest FQDN novia.local 97ms (45ms|53ms)
 RuntimeException: Legacy Should syntax (without dashes) is not supported in Pester 5. Please refer to migration guide at: https://pester.dev/docs/migrations/v3-to-v4
 RuntimeException: Legacy Should syntax (without dashes) is not supported in Pester 5. Please refer to migration guide at: https://pester.dev/docs/migrations/v3-to-v4
 ParameterBindingException: Cannot retrieve the dynamic parameters for the cmdlet. Legacy Should syntax (without dashes) is not supported in Pester 5. Please refer to mig
ration guide at: https://pester.dev/docs/migrations/v3-to-v4
 at <ScriptBlock>, C:\Users\me\Documents\WindowsPowerShell\Modules\ADAudit\2.0.10\ActiveDirectory.tests.ps1:48

Marcus-James-Adams avatar May 07 '22 11:05 Marcus-James-Adams