remove password for connection string non sql auth types (#19484)

* remove password for connection string non sql auth types

* add comment

* fix test
This commit is contained in:
Vasu Bhog
2022-05-23 16:01:55 -07:00
committed by GitHub
parent c9c670cc86
commit e1fc230273
2 changed files with 7 additions and 1 deletions

View File

@@ -177,7 +177,7 @@ describe('Tests to verify Azure Functions Utils functions', function (): void {
should(quickInputSpy.notCalled).be.true('showInputBox should not have been called');
should(warningSpy.notCalled).be.true('showWarningMessage should not have been called');
// returned connection string should NOT include password
should(getConnectionString).equals(`Server=${connectionInfo.server};Initial Catalog=${connectionInfo.database};User ID=${connectionInfo.user};Password=${constants.passwordPlaceholder};`);
should(getConnectionString).equals(`Server=${connectionInfo.server};Initial Catalog=${connectionInfo.database};User ID=${connectionInfo.user};`);
});
it('Should ask user to enter password and set password to connection string when connection info does not contain password and auth type is SQL', async () => {