Change back to existing identity design (#20991)

This commit is contained in:
Cheena Malhotra
2022-10-26 16:44:29 -07:00
committed by GitHub
parent 88cc7b333e
commit 4b4c5d8ffe
2 changed files with 3 additions and 2 deletions

View File

@@ -216,10 +216,11 @@ suite('SQL ProviderConnectionInfo tests', () => {
test('getOptionsKey should create a valid unique id', () => {
let options: { [key: string]: string } = {};
// Setting custom options are not yet considered for profile identity
options['encrypt'] = 'true';
connectionProfile.options = options;
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();
assert.strictEqual(id, expectedId);
});