Commit 7ea9adc
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 in SshCertTestCase.test_user_account, AtPopWithExternalKey,
and any other interactive test method that runs on a headless agent.
- Remove the class-level @unittest.skipIf(TF_BUILD) from PublicCloudScenariosTestCase
now that the class uses lab config instead of the old config.json. The tests
can now 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: \ in the 'Run tests' env block.
Service-principal / ROPC e2e tests now run when the pipeline variable is set;
interactive tests remain skipped on ADO via the _SKIP_UNATTENDED_E2E_TESTS fix.
- .Pipelines/ADO-PUBLISH-SETUP.md:
- Add Step 5b documenting how to set the LAB_APP_CLIENT_ID pipeline variable
and link to docs.msidlab.com for the client ID value.1 parent d5ad7c0 commit 7ea9adc
File tree
3 files changed
+53
-10
lines changed- .Pipelines
- tests
3 files changed
+53
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
253 | 285 | | |
254 | 286 | | |
255 | 287 | | |
| |||
| 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