2
0
mirror of synced 2025-01-11 17:14:25 +00:00

Fixing host address formatting for cluster run

This commit is contained in:
benbierens 2023-05-31 15:02:07 +02:00
parent 0ebe59ea2f
commit c22125201f
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
2 changed files with 5 additions and 5 deletions

View File

@ -10,16 +10,16 @@ namespace DistTestCore
{ {
private readonly BaseLog log; private readonly BaseLog log;
private readonly ITimeSet timeSet; private readonly ITimeSet timeSet;
private readonly string ip; private readonly string host;
private readonly int port; private readonly int port;
private readonly string baseUrl; private readonly string baseUrl;
private readonly TimeSpan? timeoutOverride; 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.log = log;
this.timeSet = timeSet; this.timeSet = timeSet;
this.ip = ip; this.host = host;
this.port = port; this.port = port;
this.baseUrl = baseUrl; this.baseUrl = baseUrl;
this.timeoutOverride = timeoutOverride; this.timeoutOverride = timeoutOverride;
@ -110,7 +110,7 @@ namespace DistTestCore
private string GetUrl() private string GetUrl()
{ {
return $"http://{ip}:{port}{baseUrl}"; return $"{host}:{port}{baseUrl}";
} }
private void Log(string url, string message) private void Log(string url, string message)

View File

@ -52,7 +52,7 @@ namespace KubernetesWorkflow
var host = config.Host.Replace("https://", ""); var host = config.Host.Replace("https://", "");
if (host.Contains(":")) if (host.Contains(":"))
{ {
HostAddress = host.Substring(0, host.IndexOf(':')); HostAddress = "http://" + host.Substring(0, host.IndexOf(':'));
} }
else else
{ {