Commit fdf335d
authored
Remove unified flag usage and fix tests for server-side OIDC resolution (#1331)
## 🥞 Stacked PR
Use this
[link](https://github.com/databricks/databricks-sdk-py/pull/1331/files)
to review incremental changes.
-
[**stack/unified-for-real**](#1331)
[[Files
changed](https://github.com/databricks/databricks-sdk-py/pull/1331/files)]
---------
## Summary
- Remove `experimental_is_unified_host` flag and `ClientType.UNIFIED`
usages — all hosts now go through the same metadata resolution path
- Simplify `databricks_oidc_endpoints` to use `discovery_url` from host
metadata instead of client-side URL construction
- Add per-test `HostMetadata` overrides for tests that need a valid
`discovery_url`
- Remove 5 redundant OIDC endpoint tests that only round-tripped mocked
metadata
- Remove 3 tests for deleted unified flag behavior
- Update remaining tests to match new behavior (metadata always
resolved, `is_account_client` no longer raises on unified hosts)
NOTE: This PR does not remove yet the flag itself, since the feature is
still on experimental mode.
## Test plan
- [x] All 165 remaining tests pass
- [x] Verified removed tests were redundant (covered by
`test_databricks_oidc_endpoints_uses_discovery_url`)
This pull request was AI-assisted by Isaac.1 parent a8e6ef1 commit fdf335d
39 files changed
Lines changed: 945 additions & 1194 deletions
File tree
- .github/workflows
- databricks/sdk
- service
- tests
- databricks/sdk/service
- integration
File mode changed.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
415 | 414 | | |
416 | 415 | | |
417 | 416 | | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | 417 | | |
422 | | - | |
423 | | - | |
424 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
425 | 422 | | |
| 423 | + | |
| 424 | + | |
426 | 425 | | |
427 | 426 | | |
428 | 427 | | |
| |||
434 | 433 | | |
435 | 434 | | |
436 | 435 | | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
443 | 441 | | |
444 | | - | |
445 | | - | |
| 442 | + | |
446 | 443 | | |
447 | 444 | | |
448 | 445 | | |
| |||
452 | 449 | | |
453 | 450 | | |
454 | 451 | | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | 452 | | |
463 | 453 | | |
464 | 454 | | |
465 | 455 | | |
466 | 456 | | |
467 | 457 | | |
468 | | - | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
469 | 463 | | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | 464 | | |
475 | 465 | | |
476 | 466 | | |
| |||
535 | 525 | | |
536 | 526 | | |
537 | 527 | | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
| 528 | + | |
553 | 529 | | |
554 | 530 | | |
555 | 531 | | |
| |||
647 | 623 | | |
648 | 624 | | |
649 | 625 | | |
650 | | - | |
| 626 | + | |
651 | 627 | | |
652 | 628 | | |
653 | 629 | | |
654 | 630 | | |
655 | 631 | | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | 632 | | |
660 | 633 | | |
661 | 634 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
444 | | - | |
445 | | - | |
| 443 | + | |
446 | 444 | | |
447 | 445 | | |
448 | 446 | | |
| |||
986 | 984 | | |
987 | 985 | | |
988 | 986 | | |
989 | | - | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
997 | 990 | | |
998 | 991 | | |
999 | 992 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments