2
0
mirror of synced 2025-02-22 21:18:15 +00:00
cs-codex-dist-tests/DistTestCore/Codex/CodexStartupConfig.cs
Eric abcb4725cd
WIP Get simulate proof failures test running
- Add WithLogLevel to specify log level in container logs
- Update nim-codex image (should be latest, check with Slava)
- Fix hardhat deployment path
- Remove Arm64 preprocessor directive now that we have multiarch image
2023-08-16 14:04:22 +10:00

36 lines
1.2 KiB
C#

using DistTestCore.Marketplace;
using KubernetesWorkflow;
namespace DistTestCore.Codex
{
public class CodexStartupConfig
{
public CodexStartupConfig(CodexLogLevel logLevel)
{
LogLevel = logLevel;
}
public string LogLevelWithTopics()
{
var level = LogLevel.ToString()!.ToUpperInvariant();
if (LogTopics != null && LogTopics.Count() > 0)
{
level = $"INFO;{level}: {string.Join(",", LogTopics.Where(s => !string.IsNullOrEmpty(s)))}";
}
return level;
}
public string? NameOverride { get; set; }
public Location Location { get; set; }
public CodexLogLevel LogLevel { get; set; }
public string[]? LogTopics { get; set; }
public ByteSize? StorageQuota { get; set; }
public bool MetricsEnabled { get; set; }
public MarketplaceInitialConfig? MarketplaceConfig { get; set; }
public string? BootstrapSpr { get; set; }
public int? BlockTTL { get; set; }
public uint? SimulateProofFailures { get; set; }
public bool? EnableValidator { get; set; }
}
}