Commit c3ed213
test(storagemover): pin cross-sub mgmt client api_versions
Build 6327280 reproduced a new failure mode on the whl + sdist CI legs
(mindependency now passes after the previous skip-marker landed):
Playback failure -- Uri doesn't match:
request <...?api-version=2025-08-01>
record <...?api-version=2025-06-01>
Root cause: my local recording environment had azure-mgmt-storage
24.0.1 (default api-version 2025-06-01); CI's whl/sdist venvs pull
the latest released azure-mgmt-storage 25.0.0 (default 2025-08-01).
URL mismatch -> cassette miss -> proxy returns 404.
Pin api_version explicitly on the cross-sub clients to the versions
captured in the recordings:
- StorageManagementClient -> '2025-06-01'
- NetworkManagementClient -> '2025-05-01'
- AuthorizationManagementClient already pinned via the
v2022_04_01 namespace import (no kwarg needed)
Applied to all 4 affected test methods (sync + async * #10 + #31).
The recordings themselves are unchanged.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 4481651 commit c3ed213
2 files changed
Lines changed: 16 additions & 3 deletions
File tree
- sdk/storagemover/azure-mgmt-storagemover/tests
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
| 148 | + | |
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
| |||
483 | 486 | | |
484 | 487 | | |
485 | 488 | | |
| 489 | + | |
486 | 490 | | |
487 | 491 | | |
488 | 492 | | |
489 | 493 | | |
| 494 | + | |
490 | 495 | | |
491 | 496 | | |
492 | 497 | | |
493 | 498 | | |
494 | 499 | | |
| 500 | + | |
495 | 501 | | |
496 | 502 | | |
497 | 503 | | |
| |||
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
| |||
538 | 539 | | |
539 | 540 | | |
540 | 541 | | |
| 542 | + | |
541 | 543 | | |
542 | | - | |
| 544 | + | |
| 545 | + | |
543 | 546 | | |
| 547 | + | |
544 | 548 | | |
545 | 549 | | |
546 | | - | |
| 550 | + | |
| 551 | + | |
547 | 552 | | |
| 553 | + | |
548 | 554 | | |
549 | 555 | | |
550 | | - | |
| 556 | + | |
| 557 | + | |
551 | 558 | | |
552 | 559 | | |
553 | 560 | | |
| |||
0 commit comments