mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-18 09:35:38 -05:00
Ledger Objects Representation in Object Explorer (#1615)
* support for ledger objects in OE * generated sr files * update versionKey to sql 2022 in test env config * more 2019 to 2022 updates * add sql2022 instead of replacing * missed filter on table * add logging * more logging * adding Script160Compat options for sql2022 Co-authored-by: Alan Ren <alanren@microsoft.com>
This commit is contained in:
@@ -50,12 +50,12 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.Common
|
||||
{
|
||||
if (!string.IsNullOrEmpty(instance.Password))
|
||||
{
|
||||
|
||||
|
||||
if (!credentialService.SaveCredential(instance))
|
||||
{
|
||||
Console.WriteLine("Failed to store the password for server: " + instance.ServerName);
|
||||
}
|
||||
|
||||
|
||||
instance.Password = null; //Make sure the password is not stored in sqlConnectionSettings.json
|
||||
instance.AuthenticationType = AuthenticationType.SqlLogin;
|
||||
}
|
||||
@@ -64,7 +64,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.Common
|
||||
instance.AuthenticationType = AuthenticationType.Integrated;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Console.WriteLine("The SQL connection instances will be written to " + DefaultSettingFileName);
|
||||
string jsonContent = JsonConvert.SerializeObject(connectionSetting);
|
||||
|
||||
@@ -133,8 +133,9 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.Common
|
||||
{
|
||||
testServerNameFilePath = FileUtils.TestServerNamesDefaultFileName;
|
||||
}
|
||||
Console.WriteLine($"Test server name file path: {testServerNameFilePath}");
|
||||
string testServerNamesFileContent = string.IsNullOrEmpty(testServerNameFilePath) ? string.Empty : File.ReadAllText(testServerNameFilePath);
|
||||
|
||||
Console.WriteLine($"Test server name file content: {testServerNamesFileContent}");
|
||||
return testServerNamesFileContent;
|
||||
}
|
||||
|
||||
@@ -171,7 +172,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.Common
|
||||
}
|
||||
|
||||
string settingsFileContents = string.IsNullOrEmpty(settingsFileName) ? string.Empty : File.ReadAllText(settingsFileName);
|
||||
|
||||
Console.WriteLine($"SQL Connection settings file content: {settingsFileContents}");
|
||||
return settingsFileContents;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user