From b9400b3a931ee5a1fb8276999b3852cba1ba00dd Mon Sep 17 00:00:00 2001 From: Leila Lali Date: Fri, 17 Feb 2017 09:52:06 -0800 Subject: [PATCH] added new command to generate connection settings for integrationt tests --- .../SQLConnectionInstancesTemplate.xml | 38 +++++++++++++++++++ .../generateSQLConnectionSettings.bat | 14 +++++++ 2 files changed, 52 insertions(+) create mode 100644 test/Microsoft.SqlTools.ServiceLayer.TestEnvConfig/SQLConnectionInstancesTemplate.xml create mode 100644 test/Microsoft.SqlTools.ServiceLayer.TestEnvConfig/generateSQLConnectionSettings.bat diff --git a/test/Microsoft.SqlTools.ServiceLayer.TestEnvConfig/SQLConnectionInstancesTemplate.xml b/test/Microsoft.SqlTools.ServiceLayer.TestEnvConfig/SQLConnectionInstancesTemplate.xml new file mode 100644 index 00000000..12d5c39e --- /dev/null +++ b/test/Microsoft.SqlTools.ServiceLayer.TestEnvConfig/SQLConnectionInstancesTemplate.xml @@ -0,0 +1,38 @@ + + + + [server name] + [user name for SQL authentication] + [password for SQL authentication] + + + [server name] + [user name for SQL authentication] + [password for SQL authentication] + + + [server name] + [user name for SQL authentication] + [password for SQL authentication] + + + [server name] + [user name for SQL authentication] + [password for SQL authentication] + + + [server name] + [user name for SQL authentication] + [password for SQL authentication] + + + [server name] + [user name for SQL authentication] + [password for SQL authentication] + + + [server name] + [user name for SQL authentication] + [password for SQL authentication] + + diff --git a/test/Microsoft.SqlTools.ServiceLayer.TestEnvConfig/generateSQLConnectionSettings.bat b/test/Microsoft.SqlTools.ServiceLayer.TestEnvConfig/generateSQLConnectionSettings.bat new file mode 100644 index 00000000..3f33e4f8 --- /dev/null +++ b/test/Microsoft.SqlTools.ServiceLayer.TestEnvConfig/generateSQLConnectionSettings.bat @@ -0,0 +1,14 @@ +SET WORKINGDIR=%~dp0 + +dotnet restore %WORKINGDIR% +dotnet restore %WORKINGDIR%..\..\src\Microsoft.SqlTools.ServiceLayer\project.json +dotnet build %WORKINGDIR%..\..\src\Microsoft.SqlTools.ServiceLayer\project.json +cd .. +dotnet restore +dotnet build Microsoft.SqlTools.ServiceLayer.TestDriver\project.json +dotnet build Microsoft.SqlTools.ServiceLayer.Test.Common\project.json +dotnet build Microsoft.SqlTools.ServiceLayer.TestEnvConfig\project.json + +cd Microsoft.SqlTools.ServiceLayer.TestEnvConfig + +dotnet run %1