Update tests for Steeltoe 2.4.4 [#113]

This commit is contained in:
Chris Cheetham 2020-07-28 11:32:41 -04:00
Родитель e590266177
Коммит 3344656c0e
2 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -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,