Adding support for AAD connections in import wizard (#16759)

* Adding support for aad connections in import extension

* Adding support for AAD by passing azure account token

* Adding a test for aad connections and fixing broken tests

* removing extra await
This commit is contained in:
Aasim Khan
2021-08-16 11:57:35 -07:00
committed by GitHub
parent 1121429f5c
commit f5f52b19c7
6 changed files with 144 additions and 7 deletions

View File

@@ -185,3 +185,37 @@ export class TestFlatFileProvider implements FlatFileProvider {
}
}
export function getAzureAccounts(): azdata.Account[] {
return [
{
isStale: false,
key: {
providerId: 'account1Provider',
accountId: 'account1Id'
},
displayInfo: {
accountType: 'account1Type',
contextualDisplayName: 'account1ContextualDisplayName',
displayName: 'account1DisplayName',
userId: 'account1@microsoft.com'
},
properties: {}
},
{
isStale: false,
key: {
providerId: 'account2Provider',
accountId: 'account2Id'
},
displayInfo: {
accountType: 'account2Type',
contextualDisplayName: 'account2ContextualDisplayName',
displayName: 'account2DisplayName',
userId: 'account2@microsoft.com'
},
properties: {}
},
];
}