Commit d05f55a
committed
Add unit tests for X-Databricks-Workspace-Id header gating in AppsImpl
* `testWorkspaceIdHeaderSentWhenConfigured` — when ApiClient#workspaceId()
returns a value, a workspace-scoped impl forwards it on the
X-Databricks-Workspace-Id request header.
* `testWorkspaceIdHeaderOmittedWhenUnset` — when ApiClient#workspaceId()
returns null, the header is not sent (so calls to legacy single-workspace
hosts don't pick up an empty value).
AppsImpl is one representative of the generator-emitted workspace-scoped
shape; if the generator template regresses on either branch (drops the
header, misspells it, or skips the null guard) the next regen would reshape
AppsImpl and at least one assertion would fail.
Signed-off-by: Divyansh Vijayvergia <divyansh.vijayvergia@databricks.com>1 parent 3dfcc08 commit d05f55a
1 file changed
Lines changed: 38 additions & 0 deletions
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
44 | 82 | | |
0 commit comments