2023-08-24 09:32:32 +00:00
|
|
|
|
using DistTestCore.Helpers;
|
|
|
|
|
using Logging;
|
|
|
|
|
|
|
|
|
|
namespace CodexNetDeployer
|
|
|
|
|
{
|
|
|
|
|
public class PeerConnectivityChecker
|
|
|
|
|
{
|
|
|
|
|
public void CheckConnectivity(List<CodexNodeStartResult> startResults)
|
|
|
|
|
{
|
2023-08-24 13:32:08 +00:00
|
|
|
|
var log = new ConsoleLog();
|
|
|
|
|
var checker = new PeerConnectionTestHelpers(log);
|
2023-08-24 09:32:32 +00:00
|
|
|
|
var access = startResults.Select(r => r.Access);
|
|
|
|
|
|
|
|
|
|
checker.AssertFullyConnected(access);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-24 13:32:08 +00:00
|
|
|
|
public class ConsoleLog : BaseLog
|
2023-08-24 09:32:32 +00:00
|
|
|
|
{
|
2023-08-24 13:32:08 +00:00
|
|
|
|
public ConsoleLog() : base(false)
|
2023-08-24 09:32:32 +00:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override string GetFullName()
|
|
|
|
|
{
|
|
|
|
|
return "CONSOLE";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Log(string message)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine(message);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|