mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Change back to existing identity design (#20991)
This commit is contained in:
@@ -215,7 +215,7 @@ export class ProviderConnectionInfo extends Disposable implements azdata.Connect
|
|||||||
let idNames = [];
|
let idNames = [];
|
||||||
if (this.serverCapabilities) {
|
if (this.serverCapabilities) {
|
||||||
idNames = this.serverCapabilities.connectionOptions.map(o => {
|
idNames = this.serverCapabilities.connectionOptions.map(o => {
|
||||||
if ((o.specialValueType || o.isIdentity || o.showOnConnectionDialog)
|
if ((o.specialValueType || o.isIdentity)
|
||||||
&& o.specialValueType !== ConnectionOptionSpecialType.password
|
&& o.specialValueType !== ConnectionOptionSpecialType.password
|
||||||
&& o.specialValueType !== ConnectionOptionSpecialType.connectionName) {
|
&& o.specialValueType !== ConnectionOptionSpecialType.connectionName) {
|
||||||
return o.name;
|
return o.name;
|
||||||
|
|||||||
@@ -216,10 +216,11 @@ suite('SQL ProviderConnectionInfo tests', () => {
|
|||||||
|
|
||||||
test('getOptionsKey should create a valid unique id', () => {
|
test('getOptionsKey should create a valid unique id', () => {
|
||||||
let options: { [key: string]: string } = {};
|
let options: { [key: string]: string } = {};
|
||||||
|
// Setting custom options are not yet considered for profile identity
|
||||||
options['encrypt'] = 'true';
|
options['encrypt'] = 'true';
|
||||||
connectionProfile.options = options;
|
connectionProfile.options = options;
|
||||||
let conn = new ProviderConnectionInfo(capabilitiesService, connectionProfile);
|
let conn = new ProviderConnectionInfo(capabilitiesService, connectionProfile);
|
||||||
let expectedId = 'providerName:MSSQL|authenticationType:|databaseName:database|encrypt:true|serverName:new server|userName:user';
|
let expectedId = 'providerName:MSSQL|authenticationType:|databaseName:database|serverName:new server|userName:user';
|
||||||
let id = conn.getOptionsKey();
|
let id = conn.getOptionsKey();
|
||||||
assert.strictEqual(id, expectedId);
|
assert.strictEqual(id, expectedId);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user