Commit 7810145
committed
Mock HTTP client in accounts OIDC test to avoid hitting live endpoint
The openIDConnectEndPointsTestAccounts test was making real HTTP calls
to accounts.cloud.databricks.com, causing failures when the endpoint
returned HTML instead of JSON. Use a mock HttpClient that stubs the
host metadata call, since account OIDC endpoints are computed locally.
Also apply spotless formatting fixes.
Co-authored-by: Isaac1 parent 27eafd3 commit 7810145
File tree
3 files changed
+19
-6
lines changed- databricks-sdk-java/src/test/java/com/databricks/sdk
- core
- oauth
- service/gentesting/unittests
3 files changed
+19
-6
lines changedLines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
| 93 | + | |
96 | 94 | | |
97 | 95 | | |
98 | 96 | | |
| |||
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
125 | 141 | | |
126 | 142 | | |
127 | 143 | | |
128 | 144 | | |
129 | | - | |
| 145 | + | |
130 | 146 | | |
131 | 147 | | |
132 | 148 | | |
| |||
Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments