Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Update identity to enable live testing in sovereign clouds for multiple services #19203
Update identity to enable live testing in sovereign clouds for multiple services #19203
Changes from 6 commits
9cd679b
577644a
69cab39
6892b9c
570b5e1
0d371ce
75cc7ff
2f5cad9
ff57162
f9d4618
4746cc7
ded7fd9
e2b88a3
dd4a233
638c05a
912ce82
bafe9ae
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also not be hardcoded in the test code, but rather the ARM template config and live test config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, please adding AZURE_KEYVAULT_SCOPE to the public subscription config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If removing ?? "https://vault.azure.net/.default" or ?? AzureAuthorityHosts.AzurePublicCloud.ToString() , some tests will fail. Because when running on Public cloud, now KeyvaultScope and AuthorityHostUrl is null leading to tests failed. The reason is AZURE_KEYVAULT_SCOPE and AZURE_AUTHORITY_HOST are still not in the ARM template config and live test config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's in the config, so it's odd that it's not showing up. But I think it's fine to have the default in a common place here regardless for local testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pakrym pointed out that this value gets defaulted even outside of the sub config: https://github.com/Azure/azure-sdk-tools/blob/master/eng/common/TestResources/New-TestResources.ps1#L492, so I don't think we need the default here at all, but am not sure why it's showing empty for you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition this variable is used in the recorded test as an input so we might need to use the GetRecordedVariable so we can play the test back in any environment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://dev.azure.com/azure-sdk/public/_build/results?buildId=828673&view=results, if removing it tests will fail. Also regardless for local testing ,so I change to have the default in a common place here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://dev.azure.com/azure-sdk/public/_build/results?buildId=828673&view=results, if removing it tests will fail. Also regardless for local testing ,so I change to have the default in a common place here.