2
0
mirror of synced 2025-01-11 17:14:25 +00:00
This commit is contained in:
benbierens 2023-08-24 15:32:08 +02:00
parent eec70a9b8c
commit 7da90fc53b
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
4 changed files with 6 additions and 12 deletions

View File

@ -7,17 +7,17 @@ namespace CodexNetDeployer
{ {
public void CheckConnectivity(List<CodexNodeStartResult> startResults) public void CheckConnectivity(List<CodexNodeStartResult> startResults)
{ {
var checker = new PeerConnectionTestHelpers(new ConsoleLogger()); var log = new ConsoleLog();
var checker = new PeerConnectionTestHelpers(log);
var access = startResults.Select(r => r.Access); var access = startResults.Select(r => r.Access);
checker.AssertFullyConnected(access); checker.AssertFullyConnected(access);
} }
} }
public class ConsoleLogger : BaseLog public class ConsoleLog : BaseLog
{ {
public ConsoleLogger() : base(false) public ConsoleLog() : base(false)
{ {
} }

View File

@ -56,8 +56,5 @@ public class Program
Console.WriteLine("CodexNetDeployer allows you to easily deploy multiple Codex nodes in a Kubernetes cluster. " + Console.WriteLine("CodexNetDeployer allows you to easily deploy multiple Codex nodes in a Kubernetes cluster. " +
"The deployer will set up the required supporting services, deploy the Codex on-chain contracts, start and bootstrap the Codex instances. " + "The deployer will set up the required supporting services, deploy the Codex on-chain contracts, start and bootstrap the Codex instances. " +
"All Kubernetes objects will be created in the namespace provided, allowing you to easily find, modify, and delete them afterwards." + nl); "All Kubernetes objects will be created in the namespace provided, allowing you to easily find, modify, and delete them afterwards." + nl);
Console.WriteLine("CodexNetDeployer assumes you are running this tool from *inside* the Kubernetes cluster you want to deploy to. " +
"If you are not running this from a container inside the cluster, add the argument '--external'." + nl);
} }
} }

View File

@ -12,7 +12,7 @@ namespace Tests.DownloadConnectivityTests
[Values(1, 3, 5)] int numberOfNodes, [Values(1, 3, 5)] int numberOfNodes,
[Values(1, 10)] int sizeMBs) [Values(1, 10)] int sizeMBs)
{ {
for (var i = 0; i < numberOfNodes; i++) SetupCodexNode(); SetupCodexNodes(numberOfNodes);
CreatePeerDownloadTestHelpers().AssertFullDownloadInterconnectivity(GetAllOnlineCodexNodes(), sizeMBs.MB()); CreatePeerDownloadTestHelpers().AssertFullDownloadInterconnectivity(GetAllOnlineCodexNodes(), sizeMBs.MB());
} }

View File

@ -22,10 +22,7 @@ namespace Tests.PeerDiscoveryTests
[TestCase(20)] [TestCase(20)]
public void VariableNodesInPods(int number) public void VariableNodesInPods(int number)
{ {
for (var i = 0; i < number; i++) SetupCodexNodes(number);
{
SetupCodexNode();
}
AssertAllNodesConnected(); AssertAllNodesConnected();
} }