mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
Detect system connection for OE if database display name is blank (#583)
This commit is contained in:
@@ -133,6 +133,21 @@ namespace Microsoft.SqlTools.ServiceLayer.UnitTests.ObjectExplorer
|
||||
await CreateSessionRequestAndVerifyServerNodeHelper(details);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task CreateSessionRequestWithDefaultConnectionReturnsServerSuccessAndNodeInfo()
|
||||
{
|
||||
// Given the connection service fails to connect
|
||||
ConnectionDetails details = new ConnectionDetails()
|
||||
{
|
||||
UserName = "user",
|
||||
Password = "password",
|
||||
DatabaseName = "testdb",
|
||||
ServerName = "serverName",
|
||||
DatabaseDisplayName = ""
|
||||
};
|
||||
await CreateSessionRequestAndVerifyServerNodeHelper(details);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExpandNodeGivenValidSessionShouldReturnTheNodeChildren()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user