2023-06-21 07:27:59 +00:00
|
|
|
|
using DistTestCore;
|
|
|
|
|
using DistTestCore.Codex;
|
2023-06-23 08:14:16 +00:00
|
|
|
|
using KubernetesWorkflow;
|
2023-06-21 07:27:59 +00:00
|
|
|
|
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-21 07:27:59 +00:00
|
|
|
|
{
|
2023-06-23 08:14:16 +00:00
|
|
|
|
return containers.Select(container =>
|
2023-06-21 07:27:59 +00:00
|
|
|
|
{
|
2023-06-25 07:53:10 +00:00
|
|
|
|
var address = container.ClusterExternalAddress;
|
2023-06-21 07:27:59 +00:00
|
|
|
|
return new CodexNode(log, timeSet, address);
|
|
|
|
|
}).ToArray();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|