2023-09-20 10:51:47 +02:00
|
|
|
|
using Logging;
|
|
|
|
|
|
|
|
|
|
namespace DistTestCore.Logs
|
2023-04-14 14:53:39 +02:00
|
|
|
|
{
|
2023-09-12 11:25:04 +02:00
|
|
|
|
public class FixtureLog : BaseTestLog
|
2023-04-14 14:53:39 +02:00
|
|
|
|
{
|
|
|
|
|
private readonly string fullName;
|
2024-02-22 10:41:07 -03:00
|
|
|
|
private readonly string deployId;
|
2023-04-14 14:53:39 +02:00
|
|
|
|
|
2024-02-22 10:41:07 -03:00
|
|
|
|
public FixtureLog(LogConfig config, DateTime start, string deployId, string name = "") : base(deployId)
|
2023-04-14 14:53:39 +02:00
|
|
|
|
{
|
2024-02-22 10:41:07 -03:00
|
|
|
|
this.deployId = deployId;
|
2023-07-18 09:02:41 +02:00
|
|
|
|
fullName = NameUtils.GetFixtureFullName(config, start, name);
|
2023-04-14 14:53:39 +02:00
|
|
|
|
}
|
|
|
|
|
|
2023-06-21 10:06:54 +02:00
|
|
|
|
public TestLog CreateTestLog(string name = "")
|
2023-04-14 14:53:39 +02:00
|
|
|
|
{
|
2024-02-22 10:41:07 -03:00
|
|
|
|
return new TestLog(fullName, deployId, name);
|
2023-04-14 14:53:39 +02:00
|
|
|
|
}
|
|
|
|
|
|
2023-06-21 11:01:48 +02:00
|
|
|
|
public void DeleteFolder()
|
|
|
|
|
{
|
|
|
|
|
Directory.Delete(fullName, true);
|
|
|
|
|
}
|
|
|
|
|
|
2023-06-28 15:11:20 +02:00
|
|
|
|
protected override string GetFullName()
|
2023-04-14 14:53:39 +02:00
|
|
|
|
{
|
2023-06-28 15:11:20 +02:00
|
|
|
|
return fullName;
|
2023-04-14 14:53:39 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
2024-02-22 10:41:07 -03:00
|
|
|
|
}
|