PSRule
PSRule copied to clipboard
Outcome all returns a different results between invoke and assert
Description of the issue
When Invoke-PSRule is called with -Outcome All processed and unprocessed results should be returned.
Similarly, when Assert-PSRule is called with -ResultVariable and -Outcome All processed and unprocessed results should be returned to the specified variable.
Currently Assert-PSRule is only returning processed results.
Expected behaviour
The variable returned from -ResultVariable should contain the same results as Invoke-PSRule.
Module in use and version:
- Module: PSRule
- Version: 2.4.0
Additional context
Related to #1266