mirror of
https://github.com/codex-storage/cs-codex-dist-tests.git
synced 2025-02-09 18:54:33 +00:00
21 lines
664 B
C#
21 lines
664 B
C#
using DistTestCore;
|
|
using DistTestCore.Codex;
|
|
using KubernetesWorkflow;
|
|
using Logging;
|
|
|
|
namespace ContinuousTests
|
|
{
|
|
public class CodexAccessFactory
|
|
{
|
|
public CodexAccess[] Create(Configuration config, RunningContainer[] containers, BaseLog log, ITimeSet timeSet)
|
|
{
|
|
return containers.Select(container =>
|
|
{
|
|
var address = container.ClusterExternalAddress;
|
|
if (config.RunnerLocation == TestRunnerLocation.InternalToCluster) address = container.ClusterInternalAddress;
|
|
return new CodexAccess(log, container, timeSet, address);
|
|
}).ToArray();
|
|
}
|
|
}
|
|
}
|