2023-09-11 11:59:33 +02:00
|
|
|
|
using DistTestCore;
|
|
|
|
|
|
using KubernetesWorkflow;
|
|
|
|
|
|
|
|
|
|
|
|
namespace CodexPlugin
|
|
|
|
|
|
{
|
|
|
|
|
|
public static class DistTestExtensions
|
|
|
|
|
|
{
|
2023-09-11 16:57:57 +02:00
|
|
|
|
public static Plugin Plugin { get; internal set; } = null!;
|
|
|
|
|
|
|
|
|
|
|
|
public static RunningContainers[] StartCodexNodes(this DistTest distTest, int number, Action<ICodexSetup> setup)
|
2023-09-11 11:59:33 +02:00
|
|
|
|
{
|
2023-09-11 16:57:57 +02:00
|
|
|
|
return Plugin.StartCodexNodes(number, setup);
|
2023-09-11 11:59:33 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static ICodexNodeGroup WrapCodexContainers(this DistTest distTest, RunningContainers containers)
|
|
|
|
|
|
{
|
2023-09-11 16:57:57 +02:00
|
|
|
|
return Plugin.WrapCodexContainers(containers);
|
2023-09-11 11:59:33 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static IOnlineCodexNode SetupCodexNode(this DistTest distTest, Action<ICodexSetup> setup)
|
|
|
|
|
|
{
|
2023-09-11 16:57:57 +02:00
|
|
|
|
return Plugin.SetupCodexNode(setup);
|
2023-09-11 11:59:33 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static ICodexNodeGroup SetupCodexNodes(this DistTest distTest, int number)
|
|
|
|
|
|
{
|
2023-09-11 16:57:57 +02:00
|
|
|
|
return Plugin.SetupCodexNodes(number);
|
2023-09-11 11:59:33 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|