2023-09-12 13:43:30 +00:00
|
|
|
|
using CodexPlugin;
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
|
2023-10-09 14:59:52 +00:00
|
|
|
|
namespace CodexTests
|
2023-09-12 13:43:30 +00:00
|
|
|
|
{
|
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
|
|
|
|
[SetUp]
|
|
|
|
|
public void SetUpBootstrapNode()
|
2023-09-12 13:43:30 +00:00
|
|
|
|
{
|
2024-05-09 07:32:48 +00:00
|
|
|
|
BootstrapNode = StartCodex(s => s.WithName("BOOTSTRAP"));
|
2023-09-12 13:43:30 +00:00
|
|
|
|
}
|
|
|
|
|
|
2023-09-28 12:23:48 +00:00
|
|
|
|
[TearDown]
|
|
|
|
|
public void TearDownBootstrapNode()
|
|
|
|
|
{
|
|
|
|
|
BootstrapNode = null;
|
|
|
|
|
}
|
|
|
|
|
|
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-19 09:51:59 +00:00
|
|
|
|
protected ICodexNode? BootstrapNode { get; private set; }
|
2024-02-22 13:41:07 +00:00
|
|
|
|
|
2023-09-12 13:43:30 +00:00
|
|
|
|
}
|
|
|
|
|
}
|