mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Allow non-admin BDC connections to see BDC features (#12663)
* Add handling for non-admin BDC users * Bump STS * Fix HDFS root node commands * remove nested awaits * colon
This commit is contained in:
@@ -305,6 +305,8 @@ export class JupyterSession implements nb.ISession {
|
||||
connectionProfile.options[USER] = await controller.getKnoxUsername(connectionProfile.userName);
|
||||
} catch (err) {
|
||||
console.log(`Unexpected error getting Knox username for Spark kernel: ${err}`);
|
||||
// Optimistically use the SQL login name - that's going to normally be the case after CU5
|
||||
connectionProfile.options[USER] = connectionProfile.userName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,12 @@ export class TestClusterController implements bdc.IClusterController {
|
||||
getKnoxUsername(clusterUsername: string): Promise<string> {
|
||||
return Promise.resolve('knoxUsername');
|
||||
}
|
||||
getEndPoints(promptConnect?: boolean): Promise<bdc.IEndPointsResponse> {
|
||||
return Promise.resolve( {
|
||||
response: undefined,
|
||||
endPoints: []
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
describe('Jupyter Session Manager', function (): void {
|
||||
|
||||
Reference in New Issue
Block a user