mirror of https://github.com/raandree/NTFSSecurity
Browse Source
- Remove-NTFSAccess and Remove-NTFSAudit with -RemoveSpecific are tested also with -Path, not only with -SecurityDescriptor. - Copy-Item2 and Move-Item2 name the destination of a folder in their verbose message, not only of a file. - The Enable-Privileges count compares with the privileges of the token, so that it passes as a basic user, whose token holds one; the tests of -PassThru restore the privilege states that they found. - The type name comparison of Get-FileHash2 is exact, the inherited-entry counts must be greater than zero, and the braces test (#3) checks the verbose message that raised the FormatException. - Remove-TestSandbox removes paths longer than 260 characters in Windows PowerShell, through the \\?\ prefix and rd, so the long-path test of Test-Path2 no longer cleans up itself; after a failed setup, it returns instead of stopping AfterAll with a binding error. Not reachable by a test: a second path whose SACL read fails while the Security privilege is enabled; a declined -Confirm takes the code path of -WhatIf. The tests that need a session without privileges get the CI run as a basic user. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: AI Assistant <ai@example.com>ai/release-5.0.0-rc6
8 changed files with 137 additions and 17 deletions
Loading…
Reference in new issue