Add .NET framework constraints to help
This commit is contained in:
Родитель
f9610a60c5
Коммит
024efa3600
|
@ -101,7 +101,7 @@ namespace Steeltoe.InitializrApi.Controllers
|
|||
help.Add("list of \"dependencies\".");
|
||||
table = new List<List<string>>
|
||||
{
|
||||
new () { "Id", "Description", "Required Steeltoe version" },
|
||||
new () { "Id", "Description", "Steeltoe Version", ".NET Framework" },
|
||||
};
|
||||
table.AddRange(
|
||||
from @group in uiConfig.Dependencies.Values
|
||||
|
@ -111,6 +111,7 @@ namespace Steeltoe.InitializrApi.Controllers
|
|||
dependency.Id,
|
||||
dependency.Description,
|
||||
new ReleaseRange(dependency.SteeltoeVersionRange).ToPrettyString(),
|
||||
new ReleaseRange(dependency.DotNetFrameworkRange).ToPrettyString(),
|
||||
});
|
||||
|
||||
help.AddRange(ToTable(table));
|
||||
|
|
|
@ -88,6 +88,7 @@ namespace Steeltoe.InitializrApi.Test.Unit.Controllers
|
|||
Id = "anotherdep",
|
||||
Description = "AnotherDependency",
|
||||
SteeltoeVersionRange = "[1.0,1.9)",
|
||||
DotNetFrameworkRange = "2.0",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -117,11 +118,10 @@ namespace Steeltoe.InitializrApi.Test.Unit.Controllers
|
|||
help.Should().MatchRegex(@"\|\s+dotNetFramework\s+\|\s+target .NET framework\s+\|\s+1.2\s+\|");
|
||||
help.Should().MatchRegex(@"\|\s+language\s+\|\s+programming language\s+\|\s+mylang\s+\|");
|
||||
help.Should().MatchRegex(@"\|\s+packaging\s+\|\s+project packaging\s+\|\s+mypkg\s+\|");
|
||||
help.Should().MatchRegex(@"\|\s+Id\s+\|\s+Description\s+\|\s+Required Steeltoe version\s+\|");
|
||||
help.Should().MatchRegex(@"\|\s+Id\s+\|\s+Description\s+\|\s+Steeltoe Version\s+\|\s+.NET Framework\s+\|");
|
||||
help.Should().MatchRegex(@"\|\s+dep1\s+\|\s+DependencyOne\s+\|\s+\|");
|
||||
help.Should().MatchRegex(@"\|\s+dep2\s+\|\s+DependencyTwo\s+\|\s+\|");
|
||||
help.Should().MatchRegex(@"\|\s+anotherdep\s+\|\s+AnotherDependency\s+\|\s+>=1.0 and <1.9\s+\|");
|
||||
help.Should().MatchRegex(@"\|\s+anotherdep\s+\|\s+AnotherDependency\s+\|\s+>=1.0 and <1.9\s+\|");
|
||||
help.Should().MatchRegex(@"\|\s+anotherdep\s+\|\s+AnotherDependency\s+\|\s+>=1.0 and <1.9\s+\|\s+>=2.0\s+\|");
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------- *
|
||||
|
|
Загрузка…
Ссылка в новой задаче