mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-30 17:23:29 -05:00
Clean up buildConnectionInfo (#22407)
* Clean up buildConnectionInfo * Add test and cleanup
This commit is contained in:
@@ -938,6 +938,11 @@ suite('SQL ConnectionManagementService tests', () => {
|
||||
assert.strictEqual(result.options, options);
|
||||
});
|
||||
|
||||
test('buildConnectionInfo with unknown provider should throw', async () => {
|
||||
let testConnectionString = 'test_connection_string';
|
||||
await assert.rejects(() => connectionManagementService.buildConnectionInfo(testConnectionString, 'INVALID'));
|
||||
});
|
||||
|
||||
test('removeConnectionProfileCredentials should return connection profile without password', () => {
|
||||
let profile = Object.assign({}, connectionProfile);
|
||||
connectionStore.setup(x => x.getProfileWithoutPassword(TypeMoq.It.isAny())).returns(() => {
|
||||
|
||||
Reference in New Issue
Block a user