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

[BUG] Exception Calling GetBicepResources #2739

Open
oZakari opened this issue Jan 27, 2025 · 1 comment
Open

[BUG] Exception Calling GetBicepResources #2739

oZakari opened this issue Jan 27, 2025 · 1 comment
Labels
Needs: Triage 🔍 Needs attention from the team.

Comments

@oZakari
Copy link

oZakari commented Jan 27, 2025

Description of the issue

Creating a subscription placement module for the Bicep registry.

Tests are failing with exception during PSRule.

Error messages

https://github.com/oZakari/bicep-registry-modules/actions/runs/12997174362/job/36247590993

Error: Failed to expand bicep source '/home/runner/work/bicep-registry-modules/bicep-registry-modules/avm/ptn/mgmt-groups/subscription-placement/tests/e2e/defaults/main.test.bicep'. Exception calling "GetBicepResources" with "2" argument(s): "Unable to expand resources because the source file '/home/runner/work/bicep-registry-modules/bicep-registry-modules/avm/ptn/mgmt-groups/subscription-placement/tests/e2e/defaults/main.test.bicep' was not valid. An error occurred evaluating expression '[format('subPlacment-{0}{1}', uniqueString(parameters('parSubscriptionPlacement')[copyIndex()].managementGroupId), copyIndex())]' line 16682. The argument 'baseString' for 'UniqueString' is not a valid string."

Reproduction

Run the tests locally within the Bicep Registry Module

Version of PSRule

2.9.0

How are you running PSRule

GitHub Actions

Additional context

No response

@oZakari oZakari added the Needs: Triage 🔍 Needs attention from the team. label Jan 27, 2025
Copy link
Contributor

Thanks for raising your first issue, the team appreciates the time you have taken 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Triage 🔍 Needs attention from the team.
Projects
None yet
Development

No branches or pull requests

1 participant