Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outcome all returns a different results between invoke and assert #1271

Open
BernieWhite opened this issue Sep 19, 2022 · 0 comments
Open

Outcome all returns a different results between invoke and assert #1271

BernieWhite opened this issue Sep 19, 2022 · 0 comments
Labels
bug Something isn't working feature: output Issues that affect output and results .NET Pull requests that update .net code

Comments

@BernieWhite
Copy link
Member

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

@BernieWhite BernieWhite added bug Something isn't working .NET Pull requests that update .net code feature: output Issues that affect output and results labels Sep 19, 2022
@BernieWhite BernieWhite changed the title Outcome all returns a different results between invoke and assert. Outcome all returns a different results between invoke and assert Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature: output Issues that affect output and results .NET Pull requests that update .net code
Projects
None yet
Development

No branches or pull requests

1 participant