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

Fix aggregation of reasons with $Assert.AnyOf() #1829

Open
BernieWhite opened this issue May 24, 2024 · 0 comments
Open

Fix aggregation of reasons with $Assert.AnyOf() #1829

BernieWhite opened this issue May 24, 2024 · 0 comments
Labels
bug Something isn't working feature: output Issues that affect output and results

Comments

@BernieWhite
Copy link
Member

BernieWhite commented May 24, 2024

Description of the issue

When using $Assert.AnyOf reasons by child statements are not returned.

Example case: Azure/PSRule.Rules.Azure#2872

To Reproduce

Steps to reproduce the issue:

$Assert.AnyOf(
                $Assert.HasFieldValue($firewall, 'properties.publicNetworkAccess', 'Disabled'),
                $Assert.HasFieldValue($firewall, 'properties.defaultAction', 'Deny')
            )

Module in use and version:

  • Module: PSRule
  • Version: 2.9.0
@BernieWhite BernieWhite added bug Something isn't working feature: output Issues that affect output and results labels May 24, 2024
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
Projects
None yet
Development

No branches or pull requests

1 participant