mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-22 09:35:38 -05:00
Incremental checkin of connection work
This commit is contained in:
@@ -41,13 +41,13 @@ namespace Microsoft.SqlTools.Test.Utility
|
||||
#endif
|
||||
}
|
||||
|
||||
public static ConnectParams GetTestConnectionParams()
|
||||
{
|
||||
public static ConnectParams GetTestConnectionParams()
|
||||
{
|
||||
return new ConnectParams()
|
||||
{
|
||||
OwnerUri = "file://some/file.sql",
|
||||
Connection = GetTestConnectionDetails()
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -327,7 +327,11 @@ namespace Microsoft.SqlTools.Test.Utility
|
||||
|
||||
public override void Open()
|
||||
{
|
||||
// No Op
|
||||
// No Op, unless credentials are bad
|
||||
if(ConnectionString.Contains("invalidUsername"))
|
||||
{
|
||||
throw new Exception("Invalid credentials provided");
|
||||
}
|
||||
}
|
||||
|
||||
public override string ConnectionString { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user