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

Array function handling with mock objects #1367

Closed
BernieWhite opened this issue Apr 14, 2022 · 0 comments · Fixed by #1368
Closed

Array function handling with mock objects #1367

BernieWhite opened this issue Apr 14, 2022 · 0 comments · Fixed by #1368
Assignees
Labels
bug Something isn't working
Milestone

Comments

@BernieWhite
Copy link
Collaborator

Description of the issue

When using the array function, some complex cases may fail, particularly when handling outputs from other modules and parameters into the array function.

To Reproduce

Steps to reproduce the issue:

[array(reference(resourceId('Microsoft.Resources/deployments', parameters('firewallDeployment')), '2021-04-01').outputs.azureFirewallPrivateIPAddress)]

Expected behaviour

Handle and add tests for arrays with mock objects.

Module in use and version:

  • Module: PSRule.Rules.Azure
  • Version: 1.14.2
@BernieWhite BernieWhite added the bug Something isn't working label Apr 14, 2022
@BernieWhite BernieWhite added this to the v1.14.3 milestone Apr 14, 2022
@BernieWhite BernieWhite self-assigned this Apr 14, 2022
BernieWhite added a commit to BernieWhite/PSRule.Rules.Azure that referenced this issue Apr 14, 2022
BernieWhite added a commit that referenced this issue Apr 15, 2022
@BernieWhite BernieWhite mentioned this issue Apr 15, 2022
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant