mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 09:35:37 -05:00
Add Notebook tests for Kernel Alias connections (#12722)
* More Generic tests for kernel alias connections * Kernel Alias tests for the Notebook Model * Updated titles of tests
This commit is contained in:
@@ -16,7 +16,7 @@ import { IDisposable } from 'vs/base/common/lifecycle';
|
||||
export class TestCapabilitiesService implements ICapabilitiesService {
|
||||
|
||||
private pgsqlProviderName = 'PGSQL';
|
||||
private kustoProviderName = 'KUSTO';
|
||||
private fakeProviderName = 'FAKE';
|
||||
public _serviceBrand: undefined;
|
||||
|
||||
public capabilities: { [id: string]: ProviderFeatures } = {};
|
||||
@@ -107,15 +107,15 @@ export class TestCapabilitiesService implements ICapabilitiesService {
|
||||
displayName: 'PostgreSQL',
|
||||
connectionOptions: connectionProvider,
|
||||
};
|
||||
let kustoCapabilities = {
|
||||
providerId: this.kustoProviderName,
|
||||
displayName: 'Kusto',
|
||||
let fakeCapabilities = {
|
||||
providerId: this.fakeProviderName,
|
||||
displayName: 'fakeName',
|
||||
connectionOptions: connectionProvider,
|
||||
notebookKernelAlias: 'Kusto'
|
||||
notebookKernelAlias: 'fakeAlias'
|
||||
};
|
||||
this.capabilities[mssqlProviderName] = { connection: msSQLCapabilities };
|
||||
this.capabilities[this.pgsqlProviderName] = { connection: pgSQLCapabilities };
|
||||
this.capabilities[this.kustoProviderName] = { connection: kustoCapabilities };
|
||||
this.capabilities[this.fakeProviderName] = { connection: fakeCapabilities };
|
||||
}
|
||||
|
||||
registerConnectionProvider(id: string, properties: ConnectionProviderProperties): IDisposable {
|
||||
|
||||
Reference in New Issue
Block a user