Commit 08ba113
committed
Enable e2e tests in CI pipeline + fix interactive-test skip logic for ADO
- tests/test_e2e.py:
- Add TF_BUILD to _SKIP_UNATTENDED_E2E_TESTS so acquire_token_interactive()
and acquire_token_by_device_flow() tests skip on ADO (no browser/display),
preventing hangs on headless agents.
- Remove the class-level @unittest.skipIf(TF_BUILD) from PublicCloudScenariosTestCase;
the class now uses lab config so can run on ADO when LAB_APP_CLIENT_ID is set.
- Add a LAB_APP_CLIENT_ID guard in PublicCloudScenariosTestCase.setUpClass()
so the class raises unittest.SkipTest (not EnvironmentError) when the env var
is absent, giving the same clean-skip behaviour as LabBasedTestCase.
- .Pipelines/template-pipeline-stages.yml:
- Uncomment LAB_APP_CLIENT_ID env var in the Run tests step so integration
tests run when the pipeline variable is configured.1 parent d5ad7c0 commit 08ba113
2 files changed
Lines changed: 21 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
| |||
329 | 337 | | |
330 | 338 | | |
331 | 339 | | |
332 | | - | |
333 | 340 | | |
334 | 341 | | |
335 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
336 | 345 | | |
337 | 346 | | |
338 | 347 | | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
339 | 351 | | |
340 | 352 | | |
341 | 353 | | |
| |||
0 commit comments