mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-04-04 11:00:30 -04:00
connection contribution point (#880)
* init * finished compile erros * fixed all merge conflicts * fix dialog problems * formatting * fix opening dialog on first open * fix various problems with connectiondialog * formatting * fix tests * added connection contrib * formatting * formatting and adding capabilities to shutdown * fix connection buffering * formatting * fix tests
This commit is contained in:
@@ -342,15 +342,12 @@ suite('SQL Connection Tree Action tests', () => {
|
||||
test('RefreshConnectionAction - refresh should be called if connection status is connect', (done) => {
|
||||
let isConnectedReturnValue: boolean = true;
|
||||
let sqlProvider = {
|
||||
protocolVersion: '1',
|
||||
providerName: 'MSSQL',
|
||||
providerDisplayName: 'MSSQL',
|
||||
connectionProvider: { options: [] },
|
||||
adminServicesProvider: { databaseInfoOptions: [], databaseFileInfoOptions: [], fileGroupInfoOptions: [] },
|
||||
features: undefined
|
||||
providerId: 'MSSQL',
|
||||
displayName: 'MSSQL',
|
||||
connectionOptions: [],
|
||||
};
|
||||
|
||||
capabilitiesService.capabilities['MSSQL'] = sqlProvider;
|
||||
capabilitiesService.capabilities['MSSQL'] = { connection: sqlProvider };
|
||||
|
||||
var connection = new ConnectionProfile(capabilitiesService, {
|
||||
savePassword: false,
|
||||
@@ -433,15 +430,12 @@ suite('SQL Connection Tree Action tests', () => {
|
||||
test('RefreshConnectionAction - refresh should not be called if connection status is not connect', (done) => {
|
||||
let isConnectedReturnValue: boolean = false;
|
||||
let sqlProvider = {
|
||||
protocolVersion: '1',
|
||||
providerName: 'MSSQL',
|
||||
providerDisplayName: 'MSSQL',
|
||||
connectionProvider: { options: [] },
|
||||
adminServicesProvider: { databaseInfoOptions: [], databaseFileInfoOptions: [], fileGroupInfoOptions: [] },
|
||||
features: undefined
|
||||
providerId: 'MSSQL',
|
||||
displayName: 'MSSQL',
|
||||
connectionOptions: []
|
||||
};
|
||||
|
||||
capabilitiesService.capabilities['MSSQL'] = sqlProvider;
|
||||
capabilitiesService.capabilities['MSSQL'] = { connection: sqlProvider };
|
||||
|
||||
var connection = new ConnectionProfile(capabilitiesService, {
|
||||
savePassword: false,
|
||||
|
||||
Reference in New Issue
Block a user