Commit 4481651
test(storagemover): skip cross-sub sync tests on mindependency leg
Build 6327088 showed test_job_definition_job_run and
test_start_c2c_job_with_private_source still failing on the
mindependency leg with 'msrestazure.azure_exceptions.CloudError:
InvalidAuthenticationToken'. Root cause: the floor-pinned
azure-mgmt-storage (v2019_06_01) uses msrestazure transport which
bypasses azure-core's RequestsTransport, and therefore the
test-proxy, hitting live ARM instead of replaying the cassette.
Detect the modernization line via the presence of the .aio submodule
on azure-mgmt-storage/-network plus the v2022_04_01 namespace on
azure-mgmt-authorization, and gate both cross-sub sync tests behind
a pytest.mark.skipif that triggers when those signals are absent.
The matrix-#11/#12/#13 schedule tests in the same file (which do not
use cross-sub clients) are unaffected and continue to run in
mindependency.
The cross-sub imports themselves are now wrapped in try/except so the
module collects cleanly when those packages are too old to even
provide the symbols (otherwise mindependency would fail on the
from-import line before the skipif could fire).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent e2b8e7b commit 4481651
1 file changed
Lines changed: 34 additions & 3 deletions
File tree
- sdk/storagemover/azure-mgmt-storagemover/tests
Lines changed: 34 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
28 | 57 | | |
29 | 58 | | |
30 | 59 | | |
| |||
125 | 154 | | |
126 | 155 | | |
127 | 156 | | |
| 157 | + | |
128 | 158 | | |
129 | 159 | | |
130 | 160 | | |
| |||
489 | 519 | | |
490 | 520 | | |
491 | 521 | | |
| 522 | + | |
492 | 523 | | |
493 | 524 | | |
494 | 525 | | |
| |||
0 commit comments