Update tests for Steeltoe 2.4.4 [#113]
This commit is contained in:
Родитель
e590266177
Коммит
3344656c0e
|
@ -440,7 +440,7 @@ using System.Threading;", valuesController);
|
|||
[ClassData(typeof(AllImplementationsAndTemplates))]
|
||||
public async Task CreateTemplate_SqlServer(ITemplateService templateService, string templateName, DotnetTemplateVersion version)
|
||||
{
|
||||
var steeltoeVersion = "2.4.3";
|
||||
var steeltoeVersion = "2.4.4";
|
||||
|
||||
var files = await templateService.GenerateProjectFiles(new GeneratorModel()
|
||||
{
|
||||
|
@ -514,7 +514,7 @@ using System.Threading;", valuesController);
|
|||
var files = await templateService.GenerateProjectFiles(new GeneratorModel()
|
||||
{
|
||||
Dependencies = "Actuators",
|
||||
SteeltoeVersion = "2.4.3",
|
||||
SteeltoeVersion = "2.4.4",
|
||||
TemplateShortName = templateName,
|
||||
TemplateVersion = version,
|
||||
});
|
||||
|
@ -531,7 +531,7 @@ using System.Threading;", valuesController);
|
|||
var files = await templateService.GenerateProjectFiles(new GeneratorModel()
|
||||
{
|
||||
Dependencies = "Actuators",
|
||||
SteeltoeVersion = "2.4.3",
|
||||
SteeltoeVersion = "2.4.4",
|
||||
TemplateShortName = templateName,
|
||||
TemplateVersion = version,
|
||||
});
|
||||
|
@ -548,7 +548,7 @@ using System.Threading;", valuesController);
|
|||
var files = await templateService.GenerateProjectFiles(new GeneratorModel()
|
||||
{
|
||||
Dependencies = "Actuators",
|
||||
SteeltoeVersion = "2.4.3",
|
||||
SteeltoeVersion = "2.4.4",
|
||||
TemplateShortName = templateName,
|
||||
TemplateVersion = version,
|
||||
});
|
||||
|
|
|
@ -53,7 +53,7 @@ namespace Steeltoe.Initializr.WebApp.Test
|
|||
[Fact]
|
||||
public async void GetStarterZipTest()
|
||||
{
|
||||
var result = await _client.GetAsync("https://localhost/starter.zip?ProjectName=TestCompany.TestProject&Dependencies=Actuator,MySql&Description=Test%20Description&SteeltoeVersion=2.4.3&TemplateVersion=V2&TargetFrameworkVersion=netcoreapp2.1&TemplateShortName=Steeltoe-WebApi");
|
||||
var result = await _client.GetAsync("https://localhost/starter.zip?ProjectName=TestCompany.TestProject&Dependencies=Actuator,MySql&Description=Test%20Description&SteeltoeVersion=2.4.4&TemplateVersion=V2&TargetFrameworkVersion=netcoreapp2.1&TemplateShortName=Steeltoe-WebApi");
|
||||
|
||||
Assert.Equal(HttpStatusCode.OK, result.StatusCode);
|
||||
|
||||
|
@ -78,7 +78,7 @@ namespace Steeltoe.Initializr.WebApp.Test
|
|||
[Fact]
|
||||
public async void GetStarterZipValidationTest()
|
||||
{
|
||||
var result = await _client.GetAsync("https://localhost/starter.zip?ProjectName=123.TestProject&Dependencies=Actuator,MySql&Description=Test%20Description&SteeltoeVersion=2.4.3&TemplateVersion=V2&TargetFrameworkVersion=netcoreapp2.1&TemplateShortName=Steeltoe-WebApi");
|
||||
var result = await _client.GetAsync("https://localhost/starter.zip?ProjectName=123.TestProject&Dependencies=Actuator,MySql&Description=Test%20Description&SteeltoeVersion=2.4.4&TemplateVersion=V2&TargetFrameworkVersion=netcoreapp2.1&TemplateShortName=Steeltoe-WebApi");
|
||||
|
||||
Assert.Equal(HttpStatusCode.BadRequest, result.StatusCode);
|
||||
|
||||
|
@ -94,7 +94,7 @@ namespace Steeltoe.Initializr.WebApp.Test
|
|||
Dependencies = "Actuator,MySql",
|
||||
Description = "TestDescription",
|
||||
ProjectName = "123.TestProject",
|
||||
SteeltoeVersion = "2.4.3",
|
||||
SteeltoeVersion = "2.4.4",
|
||||
TargetFrameworkVersion = "netcoreapp2.1",
|
||||
TemplateShortName = "Steeltoe-WebApi",
|
||||
TemplateVersion = DotnetTemplateVersion.V2,
|
||||
|
@ -120,7 +120,7 @@ namespace Steeltoe.Initializr.WebApp.Test
|
|||
Dependencies = "Actuator,MySql",
|
||||
Description = "TestDescription",
|
||||
ProjectName = "TestCompany.TestProject",
|
||||
SteeltoeVersion = "2.4.3",
|
||||
SteeltoeVersion = "2.4.4",
|
||||
TargetFrameworkVersion = "netcoreapp2.1",
|
||||
TemplateShortName = "Steeltoe-WebApi",
|
||||
TemplateVersion = DotnetTemplateVersion.V2,
|
||||
|
|
Загрузка…
Ссылка в новой задаче