Commit fc81201
mgmt containerinstance , fix live test failures (#47634)
* test(container): disable failing test due to policy restriction
- Added @disabled annotation to testBeginCreateWithFileShareVolume
- Included reason for disabling: internal policy denies local auth methods
- Preserved existing @DoNotRecord annotation and skipInPlayback setting
* feat(test): enable file share volume testing for container groups
- 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
* fix(test): update ContainerGroupTest to clarify Azure Storage limitations with managed identity
* test(containerinstance): add tests for container group volume configurations
- 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
* fix(containerinstance): update test comment and remove outdated reference
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.
* chore(containerinstance): update assets tag
Update the assets tag from a0e5cc2e29 to bd0493a9b7 in
azure-resourcemanager-containerinstance module
* refactor(tests): remove unused storage manager from container instance 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
* chore(containerinstance): update assets tag
Update the assets tag in assets.json from bd0493a9b7 to cade898991
for azure-resourcemanager-containerinstance package.
* refactor(ContainerGroupTest): remove unused imports
- Removed unused Azure identity imports (AzureAuthorityHosts, ClientSecretCredential, DefaultAzureCredentialBuilder)
- Removed unused storage related imports (StorageAccount, StorageAccountKey, ShareServiceAsyncClient, ShareServiceClientBuilder)
* Update sdk/containerinstance/azure-resourcemanager-containerinstance/src/test/java/com/azure/resourcemanager/containerinstance/ContainerGroupTest.java
Co-authored-by: Copilot <[email protected]>
* Update sdk/containerinstance/azure-resourcemanager-containerinstance/src/test/java/com/azure/resourcemanager/containerinstance/ContainerGroupTest.java
Co-authored-by: Xiaofei Cao <[email protected]>
---------
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Xiaofei Cao <[email protected]>1 parent c4f4b16 commit fc81201
File tree
2 files changed
+27
-2
lines changed- sdk/containerinstance/azure-resourcemanager-containerinstance
- src/test/java/com/azure/resourcemanager/containerinstance
2 files changed
+27
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
| 214 | + | |
| 215 | + | |
213 | 216 | | |
214 | 217 | | |
| 218 | + | |
215 | 219 | | |
216 | 220 | | |
217 | 221 | | |
| |||
232 | 236 | | |
233 | 237 | | |
234 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
235 | 260 | | |
236 | 261 | | |
237 | 262 | | |
| |||
0 commit comments