cs-codex-dist-tests/DistTestCore/Configuration.cs

33 lines
989 B
C#
Raw Normal View History

2023-04-12 14:06:04 +00:00
using KubernetesWorkflow;
namespace DistTestCore
{
public class Configuration
{
public KubernetesWorkflow.Configuration GetK8sConfiguration(ITimeSet timeSet)
2023-04-12 14:06:04 +00:00
{
return new KubernetesWorkflow.Configuration(
2023-05-03 12:18:37 +00:00
k8sNamespacePrefix: "ct-",
2023-04-12 14:06:04 +00:00
kubeConfigFile: null,
operationTimeout: timeSet.K8sOperationTimeout(),
retryDelay: timeSet.WaitForK8sServiceDelay(),
2023-04-12 14:06:04 +00:00
locationMap: new[]
{
new ConfigurationLocationEntry(Location.BensOldGamingMachine, "worker01"),
new ConfigurationLocationEntry(Location.BensLaptop, "worker02"),
}
);
}
public Logging.LogConfig GetLogConfig()
{
2023-05-05 06:33:10 +00:00
return new Logging.LogConfig("CodexTestLogs", debugEnabled: false);
2023-04-12 14:06:04 +00:00
}
public string GetFileManagerFolder()
{
return "TestDataFiles";
}
}
}