diff --git a/DistTestCore/Http.cs b/DistTestCore/Http.cs index 955e4ef..b7c7481 100644 --- a/DistTestCore/Http.cs +++ b/DistTestCore/Http.cs @@ -10,16 +10,16 @@ namespace DistTestCore { private readonly BaseLog log; private readonly ITimeSet timeSet; - private readonly string ip; + private readonly string host; private readonly int port; private readonly string baseUrl; private readonly TimeSpan? timeoutOverride; - public Http(BaseLog log, ITimeSet timeSet, string ip, int port, string baseUrl, TimeSpan? timeoutOverride = null) + public Http(BaseLog log, ITimeSet timeSet, string host, int port, string baseUrl, TimeSpan? timeoutOverride = null) { this.log = log; this.timeSet = timeSet; - this.ip = ip; + this.host = host; this.port = port; this.baseUrl = baseUrl; this.timeoutOverride = timeoutOverride; @@ -110,7 +110,7 @@ namespace DistTestCore private string GetUrl() { - return $"http://{ip}:{port}{baseUrl}"; + return $"{host}:{port}{baseUrl}"; } private void Log(string url, string message) diff --git a/KubernetesWorkflow/K8sCluster.cs b/KubernetesWorkflow/K8sCluster.cs index 9ad7a6a..4048164 100644 --- a/KubernetesWorkflow/K8sCluster.cs +++ b/KubernetesWorkflow/K8sCluster.cs @@ -52,7 +52,7 @@ namespace KubernetesWorkflow var host = config.Host.Replace("https://", ""); if (host.Contains(":")) { - HostAddress = host.Substring(0, host.IndexOf(':')); + HostAddress = "http://" + host.Substring(0, host.IndexOf(':')); } else {