mirror of
https://github.com/vacp2p/cs-codex-dist-tests.git
synced 2025-02-23 07:48:27 +00:00
Fixes incorrect call to node interaction from gethCompantionNodeStarter
This commit is contained in:
parent
56c716a4ea
commit
44e237e60e
@ -1,5 +1,4 @@
|
|||||||
using KubernetesWorkflow;
|
using KubernetesWorkflow;
|
||||||
using Logging;
|
|
||||||
using NethereumWorkflow;
|
using NethereumWorkflow;
|
||||||
|
|
||||||
namespace DistTestCore.Marketplace
|
namespace DistTestCore.Marketplace
|
||||||
@ -15,13 +14,12 @@ namespace DistTestCore.Marketplace
|
|||||||
public RunningContainer RunningContainer { get; }
|
public RunningContainer RunningContainer { get; }
|
||||||
public GethAccount[] Accounts { get; }
|
public GethAccount[] Accounts { get; }
|
||||||
|
|
||||||
public NethereumInteraction StartInteraction(BaseLog log, GethAccount account)
|
public NethereumInteraction StartInteraction(TestLifecycle lifecycle, GethAccount account)
|
||||||
{
|
{
|
||||||
var ip = RunningContainer.Pod.Cluster.HostAddress;
|
var address = lifecycle.Configuration.GetAddress(RunningContainer);
|
||||||
var port = RunningContainer.ServicePorts[0].Number;
|
|
||||||
var privateKey = account.PrivateKey;
|
var privateKey = account.PrivateKey;
|
||||||
|
|
||||||
var creator = new NethereumInteractionCreator(log, ip, port, privateKey);
|
var creator = new NethereumInteractionCreator(lifecycle.Log, address.Host, address.Port, privateKey);
|
||||||
return creator.CreateWorkflow();
|
return creator.CreateWorkflow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ namespace DistTestCore.Marketplace
|
|||||||
{
|
{
|
||||||
Time.WaitUntil(() =>
|
Time.WaitUntil(() =>
|
||||||
{
|
{
|
||||||
var interaction = node.StartInteraction(lifecycle.Log, node.Accounts.First());
|
var interaction = node.StartInteraction(lifecycle, node.Accounts.First());
|
||||||
return interaction.IsSynced(marketplace.Marketplace.Address, marketplace.Marketplace.Abi);
|
return interaction.IsSynced(marketplace.Marketplace.Address, marketplace.Marketplace.Abi);
|
||||||
}, TimeSpan.FromMinutes(1), TimeSpan.FromSeconds(3));
|
}, TimeSpan.FromMinutes(1), TimeSpan.FromSeconds(3));
|
||||||
}
|
}
|
||||||
|
@ -59,10 +59,15 @@ namespace KubernetesWorkflow
|
|||||||
|
|
||||||
public string ExecuteCommand(RunningPod pod, string containerName, string command, params string[] args)
|
public string ExecuteCommand(RunningPod pod, string containerName, string command, params string[] args)
|
||||||
{
|
{
|
||||||
log.Debug($"{containerName}: {command} ({string.Join(",", args)})");
|
var cmdAndArgs = $"{containerName}: {command} ({string.Join(",", args)})";
|
||||||
|
log.Debug(cmdAndArgs);
|
||||||
|
|
||||||
var runner = new CommandRunner(client, K8sTestNamespace, pod, containerName, command, args);
|
var runner = new CommandRunner(client, K8sTestNamespace, pod, containerName, command, args);
|
||||||
runner.Run();
|
runner.Run();
|
||||||
return runner.GetStdOut();
|
var result = runner.GetStdOut();
|
||||||
|
|
||||||
|
log.Debug($"{cmdAndArgs} = '{result}'");
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DeleteAllResources()
|
public void DeleteAllResources()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user