Fixing host address formatting for cluster run
This commit is contained in:
parent
0ebe59ea2f
commit
c22125201f
@ -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)
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user