Skip to content

Commit 21916fd

Browse files
committed
sea-auth-u2m: rewire M2M e2e to AAD SP on pecotesting HTTP_PATH2
The pecotesting workspace SP we were targeting (DATABRICKS_PECO_CLIENT_*) is NOT registered on the warehouse — yields `invalid_client` on token exchange. The Azure AD SP (DATABRICKS_PECOTESTING_AAD_CLIENT_*) IS registered on HTTP_PATH2 (warehouse 00adc7b6c00429b8), so flip the e2e to those creds. Both happy-path (openSession 730ms) and bad-secret (AuthenticationError 217ms) now pass against the napi-binding kernel worktree (carries DA-F1 fix a64479a). Co-authored-by: Isaac
1 parent 37156db commit 21916fd

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tests/integration/sea/auth-m2m-e2e.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@ import { isBlankOrReserved } from '../../../lib/sea/SeaAuth';
3333
* `auth-pat-e2e.test.ts`). If kernel-side OAuth fails, `openSession()`
3434
* raises before returning.
3535
*
36-
* Required env (exported by `~/.zshrc` on the developer machine):
36+
* Required env (exported by `/home/madhavendra.rathore/.zshrc` on the developer machine):
3737
* - DATABRICKS_PECOTESTING_SERVER_HOSTNAME
38-
* - DATABRICKS_PECOTESTING_HTTP_PATH
39-
* - DATABRICKS_PECO_CLIENT_ID
40-
* - DATABRICKS_PECO_CLIENT_SECRET
38+
* - DATABRICKS_PECOTESTING_HTTP_PATH2 (second pecotesting warehouse — AAD SP registered here)
39+
* - DATABRICKS_PECOTESTING_AAD_CLIENT_ID (Azure AD SP registered on pecotesting)
40+
* - DATABRICKS_PECOTESTING_AAD_CLIENT_SECRET (matching secret)
4141
*
4242
* Skipped (not failed) when any of the four env vars is missing, so CI
4343
* machines without OAuth credentials don't fail-flap.
4444
*/
4545
describe('sea-auth e2e — OAuth M2M through DBSQLClient ↔ SeaBackend ↔ napi binding', function suite() {
4646
const host = process.env.DATABRICKS_PECOTESTING_SERVER_HOSTNAME;
47-
const path = process.env.DATABRICKS_PECOTESTING_HTTP_PATH;
48-
const oauthClientId = process.env.DATABRICKS_PECO_CLIENT_ID;
49-
const oauthClientSecret = process.env.DATABRICKS_PECO_CLIENT_SECRET;
47+
const path = process.env.DATABRICKS_PECOTESTING_HTTP_PATH2;
48+
const oauthClientId = process.env.DATABRICKS_PECOTESTING_AAD_CLIENT_ID;
49+
const oauthClientSecret = process.env.DATABRICKS_PECOTESTING_AAD_CLIENT_SECRET;
5050

5151
this.timeout(120_000);
5252

0 commit comments

Comments
 (0)