-
Notifications
You must be signed in to change notification settings - Fork 4k
[Resources] Fix issue preventing deployment of Template Specs located outside of the current subscription context #13483
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
[Resources] Fix issue preventing deployment of Template Specs located outside of the current subscription context #13483
Conversation
…not in context could not be deployed
@stuartko Do you have any test case to cover the issue you fix? |
I do not. My understanding is that as it’s a multi-subscription action, the current test framework is not setup well to handle that. Is that understanding correct? I see many other cross-subscription operations do not have tests for this reason as well. |
@msJinLei : Can you confirm? I only see one test (in Az.Accounts) in Az Powershell that is using multiple subscription contexts and it comes with an asterisk that it requires a tenant with two subscriptions that are both relevant to the test. Given these limitations, I do not believe a cross-subscription test can be safely implemented for this hotfix. |
Adding back "needs-review" label to get reviewer confirmation for previous question in the PR thread. I believe this PR should be good to merge? |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Sorry for delayed reponse. You can use unit test rather than scenario test so that test data can be mocked. |
…nt bug involving dynamic parameters.
@msJinLei: It was more involved than anticipated due to some shell-only assumptions in the original cmdlet implementation, but I've now completed adding a unit test to cover the missing coverage for the bug being fixed. Can you review/approve? |
Can someone please review? We need to have this change in before Code Complete for the next release. |
Great! There's a failed test case about path format in mac and linux.
|
...urces/Resources.Test/ResourceGroupDeployments/NewAzureResourceGroupDeploymentCommandTests.cs
Outdated
Show resolved
Hide resolved
@msJinLei : The issue on Unix based systems is now fixed. We need this change in for the next powershell release, can we have this merged today so we hit the code complete deadline? |
Description
Fixes issue preventing deployment of Template Specs located outside of the current subscription context. Issue is described here: Azure/template-specs#40
Checklist
CONTRIBUTING.md
ChangeLog.md
file(s) has been updated:ChangeLog.md
file can be found atsrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
## Upcoming Release
header -- no new version header should be added