cs-codex-dist-tests/Tests/AutoBootstrapDistTest.cs

27 lines
710 B
C#
Raw Normal View History

2023-09-12 13:43:30 +00:00
using CodexPlugin;
using DistTestCore;
2023-09-13 12:24:43 +00:00
using DistTestCore.Helpers;
2023-09-12 13:43:30 +00:00
using NUnit.Framework;
namespace Tests
{
2023-09-13 12:24:43 +00:00
public class AutoBootstrapDistTest : CodexDistTest
2023-09-12 13:43:30 +00:00
{
2023-09-13 12:24:43 +00:00
private readonly List<IOnlineCodexNode> onlineCodexNodes = new List<IOnlineCodexNode>();
2023-09-12 13:43:30 +00:00
2023-09-13 12:24:43 +00:00
[SetUp]
public void SetUpBootstrapNode()
2023-09-12 13:43:30 +00:00
{
2023-09-13 12:24:43 +00:00
BootstrapNode = AddCodex(s => s.WithName("BOOTSTRAP"));
onlineCodexNodes.Add(BootstrapNode);
2023-09-12 13:43:30 +00:00
}
2023-09-13 12:24:43 +00:00
protected override void OnCodexSetup(ICodexSetup setup)
2023-09-12 13:43:30 +00:00
{
2023-09-13 12:24:43 +00:00
if (BootstrapNode != null) setup.WithBootstrapNode(BootstrapNode);
2023-09-12 13:43:30 +00:00
}
2023-09-13 12:24:43 +00:00
protected IOnlineCodexNode? BootstrapNode { get; private set; }
2023-09-12 13:43:30 +00:00
}
}