-
Notifications
You must be signed in to change notification settings - Fork 2.1k
mgmt containerinstance , fix live test failures #47634
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
mgmt containerinstance , fix live test failures #47634
Conversation
- Added @disabled annotation to testBeginCreateWithFileShareVolume - Included reason for disabling: internal policy denies local auth methods - Preserved existing @DoNotRecord annotation and skipInPlayback setting
- Add storage account creation and key retrieval for file share testing - Integrate Azure file share volume configuration with existing storage credentials - Include ShareServiceClientBuilder for file endpoint management - Remove @disabled annotation to activate file share volume tests - Add storage manager initialization in test base class - Update container group volume definition to use existing Azure file share
…ions with managed identity
…rations - Added testBeginCreateWithEmptyDirectoryVolume method - Disabled testBeginCreateWithFileShareVolume due to internal policy restrictions - Updated volume configuration logic to use withEmptyDirectoryVolume instead of manual volume definition - Added proper annotations for test recording and policy compliance - Implemented container group creation with virtual network and volume mounting - Added assertions for volume count validation
…ence Removed outdated comment about Azure Storage SMB mounting with managed identity and updated the test documentation to reflect current behavior. The test now properly references the Azure documentation for container instances volume mounting.
Update the assets tag from a0e5cc2e29 to bd0493a9b7 in azure-resourcemanager-containerinstance module
…e tests - Removed storage account creation logic from ContainerGroupTest - Eliminated unused StorageManager dependency from ContainerInstanceManagementTest - Cleaned up related imports and fields that were no longer needed - Simplified test setup by removing unnecessary storage account initialization
Update the assets tag in assets.json from bd0493a9b7 to cade898991 for azure-resourcemanager-containerinstance package.
- Removed unused Azure identity imports (AzureAuthorityHosts, ClientSecretCredential, DefaultAzureCredentialBuilder) - Removed unused storage related imports (StorageAccount, StorageAccountKey, ShareServiceAsyncClient, ShareServiceClientBuilder)
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.
Pull request overview
This PR fixes live test failures in the containerinstance management library caused by Azure policy restrictions on local authentication methods for Azure Storage file shares. The fix involves disabling the failing test and adding a replacement test that uses an empty directory volume instead.
- Disabled
testBeginCreateWithFileShareVolumetest due to Azure policy preventing local authentication methods - Added new
testBeginCreateWithEmptyDirectoryVolumetest to maintain test coverage for volume mounting functionality - Updated test recordings (assets.json)
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| ContainerGroupTest.java | Added @Disabled annotation to failing file share test with explanation, added new test for empty directory volume, and reordered imports alphabetically |
| assets.json | Updated test recording tag to include new test recordings |
...erinstance/src/test/java/com/azure/resourcemanager/containerinstance/ContainerGroupTest.java
Outdated
Show resolved
Hide resolved
…src/test/java/com/azure/resourcemanager/containerinstance/ContainerGroupTest.java Co-authored-by: Copilot <[email protected]>
...erinstance/src/test/java/com/azure/resourcemanager/containerinstance/ContainerGroupTest.java
Outdated
Show resolved
Hide resolved
…src/test/java/com/azure/resourcemanager/containerinstance/ContainerGroupTest.java Co-authored-by: Xiaofei Cao <[email protected]>
This request was denied due to internal policy. Local authentication methods are not allowed.
Add issues #47487
#47372
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines