2023-04-12 14:06:04 +00:00
|
|
|
|
using KubernetesWorkflow;
|
|
|
|
|
|
|
|
|
|
namespace DistTestCore
|
|
|
|
|
{
|
|
|
|
|
public class Configuration
|
|
|
|
|
{
|
|
|
|
|
public KubernetesWorkflow.Configuration GetK8sConfiguration()
|
|
|
|
|
{
|
|
|
|
|
return new KubernetesWorkflow.Configuration(
|
|
|
|
|
k8sNamespace: "codex-test-ns",
|
|
|
|
|
kubeConfigFile: null,
|
|
|
|
|
operationTimeout: Timing.K8sOperationTimeout(),
|
|
|
|
|
retryDelay: Timing.K8sServiceDelay(),
|
|
|
|
|
locationMap: new[]
|
|
|
|
|
{
|
|
|
|
|
new ConfigurationLocationEntry(Location.BensOldGamingMachine, "worker01"),
|
|
|
|
|
new ConfigurationLocationEntry(Location.BensLaptop, "worker02"),
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Logging.LogConfig GetLogConfig()
|
|
|
|
|
{
|
2023-04-25 09:31:15 +00:00
|
|
|
|
return new Logging.LogConfig("CodexTestLogs", debugEnabled: true);
|
2023-04-12 14:06:04 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string GetFileManagerFolder()
|
|
|
|
|
{
|
|
|
|
|
return "TestDataFiles";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|