cs-codex-dist-tests/ContinuousTests/CodexNodeFactory.cs

20 lines
498 B
C#
Raw Normal View History

using DistTestCore;
using DistTestCore.Codex;
2023-06-23 08:14:16 +00:00
using KubernetesWorkflow;
using Logging;
namespace ContinuousTests
{
public class CodexNodeFactory
{
2023-06-23 08:14:16 +00:00
public CodexNode[] Create(RunningContainer[] containers, BaseLog log, ITimeSet timeSet)
{
2023-06-23 08:14:16 +00:00
return containers.Select(container =>
{
2023-06-25 07:53:10 +00:00
var address = container.ClusterExternalAddress;
return new CodexNode(log, timeSet, address);
}).ToArray();
}
}
}