mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
Feature/script execute (#563)
* added script as execute for stored procedures
This commit is contained in:
@@ -211,7 +211,7 @@ namespace Microsoft.SqlTools.ServiceLayer.TestDriver.Tests
|
||||
ScriptingResult result = await testService.Script(requestParams);
|
||||
ScriptingCompleteParams parameters = await testService.Driver.WaitForEvent(ScriptingCompleteEvent.Type, TimeSpan.FromSeconds(15));
|
||||
Assert.True(parameters.HasError);
|
||||
Assert.Equal("An error occurred while scripting the objects.", parameters.ErrorMessage);
|
||||
Assert.True(parameters.ErrorMessage.Contains("An error occurred while scripting the objects."));
|
||||
Assert.Contains("The Table '[dbo].[TableDoesNotExist]' does not exist on the server.", parameters.ErrorDetails);
|
||||
}
|
||||
}
|
||||
@@ -297,7 +297,6 @@ namespace Microsoft.SqlTools.ServiceLayer.TestDriver.Tests
|
||||
OwnerUri = tempFile.FilePath,
|
||||
ScriptOptions = new ScriptOptions
|
||||
{
|
||||
ScriptCreateDrop = "ScriptSelect"
|
||||
},
|
||||
ScriptingObjects = new List<ScriptingObject>
|
||||
{
|
||||
@@ -307,7 +306,8 @@ namespace Microsoft.SqlTools.ServiceLayer.TestDriver.Tests
|
||||
Schema = "dbo",
|
||||
Name = "Customers",
|
||||
}
|
||||
}
|
||||
},
|
||||
Operation = ScriptingOperationType.Select
|
||||
};
|
||||
ScriptingResult result = await testService.Script(requestParams);
|
||||
Assert.True(result.Script.Contains("SELECT"));
|
||||
|
||||
Reference in New Issue
Block a user