mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-04 06:23:09 +00:00
Fixes issue where string params for testfixtures causes logfilenames to fail
This commit is contained in:
parent
c8494f3fed
commit
07c25142c1
@ -22,9 +22,13 @@ namespace CodexReleaseTests.DataTests
|
|||||||
[Test]
|
[Test]
|
||||||
[Combinatorial]
|
[Combinatorial]
|
||||||
public void Theseus(
|
public void Theseus(
|
||||||
|
[Values(1, 2, 5)] int remainingNodes,
|
||||||
[Values(10)] int steps)
|
[Values(10)] int steps)
|
||||||
{
|
{
|
||||||
nodes.AddRange(StartCodex(3));
|
Assert.That(remainingNodes, Is.GreaterThan(0));
|
||||||
|
Assert.That(steps, Is.GreaterThan(remainingNodes + 1));
|
||||||
|
|
||||||
|
nodes.AddRange(StartCodex(remainingNodes + 1));
|
||||||
cid = nodes.First().UploadFile(file);
|
cid = nodes.First().UploadFile(file);
|
||||||
|
|
||||||
AllNodesHaveFile();
|
AllNodesHaveFile();
|
||||||
|
|||||||
@ -32,7 +32,7 @@ namespace DistTestCore
|
|||||||
if (fullName.Contains("AdhocContext")) return "none";
|
if (fullName.Contains("AdhocContext")) return "none";
|
||||||
var name = fullName.Substring(0, fullName.LastIndexOf('.'));
|
var name = fullName.Substring(0, fullName.LastIndexOf('.'));
|
||||||
name += FormatArguments(test);
|
name += FormatArguments(test);
|
||||||
return name.Replace('.', '-').Replace(',', '-');
|
return ReplaceInvalidCharacters(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetCategoryName()
|
public static string GetCategoryName()
|
||||||
@ -80,7 +80,10 @@ namespace DistTestCore
|
|||||||
.Replace("-dist-tests", "")
|
.Replace("-dist-tests", "")
|
||||||
.Replace(":", "_")
|
.Replace(":", "_")
|
||||||
.Replace("/", "_")
|
.Replace("/", "_")
|
||||||
.Replace("\\", "_");
|
.Replace("\\", "_")
|
||||||
|
.Replace("\"", "")
|
||||||
|
.Replace('.', '-')
|
||||||
|
.Replace(',', '-');
|
||||||
}
|
}
|
||||||
|
|
||||||
private static string DetermineFolder(LogConfig config, DateTime start)
|
private static string DetermineFolder(LogConfig config, DateTime start)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user