no longer filtering to well-known database sources (#22864)

This commit is contained in:
Benjin Dubishar
2023-04-26 13:31:15 -07:00
committed by GitHub
parent abff6a0a34
commit 62255fe4dd
5 changed files with 8 additions and 50 deletions

View File

@@ -141,12 +141,5 @@ describe('Tests to verify utils functions', function (): void {
should(utils.findSqlVersionInTargetPlatform('Azure SQL Database')).equals(undefined, 'invalid number returned for Azure SQL Database');
should(utils.findSqlVersionInTargetPlatform('Azure Synapse SQL Pool')).equals(undefined, 'invalid number returned for Azure Synapse SQL Pool');
});
it('Should only return well known database strings when getWellKnownDatabaseSources function is called', async function (): Promise<void> {
const sources = ['test1', 'test2', 'test3', constants.WellKnownDatabaseSources[0]];
(utils.getWellKnownDatabaseSources(sources).length).should.equal(1);
(utils.getWellKnownDatabaseSources(sources)[0]).should.equal(constants.WellKnownDatabaseSources[0]);
});
});