diff --git a/ContinuousTests/StartupChecker.cs b/ContinuousTests/StartupChecker.cs index 8e9357a..a2e1e1f 100644 --- a/ContinuousTests/StartupChecker.cs +++ b/ContinuousTests/StartupChecker.cs @@ -64,9 +64,9 @@ namespace ContinuousTests { cancelToken.ThrowIfCancellationRequested(); - log.Log($"Checking '{n.Address.Host}'..."); + log.Log($"Checking {n.Container.Name} @ '{n.Address.Host}:{n.Address.Port}'..."); - if (EnsureOnline(n)) + if (EnsureOnline(log, n)) { log.Log("OK"); } @@ -82,12 +82,14 @@ namespace ContinuousTests } } - private bool EnsureOnline(CodexAccess n) + private bool EnsureOnline(BaseLog log, CodexAccess n) { try { var info = n.GetDebugInfo(); if (info == null || string.IsNullOrEmpty(info.id)) return false; + + log.Log($"Codex version: '{info.codex.version}' revision: '{info.codex.revision}'"); } catch { diff --git a/Tests/BasicTests/ThreeClientTest.cs b/Tests/BasicTests/ThreeClientTest.cs new file mode 100644 index 0000000..78ef25e --- /dev/null +++ b/Tests/BasicTests/ThreeClientTest.cs @@ -0,0 +1,24 @@ +using DistTestCore; +using NUnit.Framework; + +namespace Tests.BasicTests +{ + [TestFixture] + public class ThreeClientTest : AutoBootstrapDistTest + { + [Test] + public void ThreeClient() + { + var primary = SetupCodexNode(); + var secondary = SetupCodexNode(); + + var testFile = GenerateTestFile(10.MB()); + + var contentId = primary.UploadFile(testFile); + + var downloadedFile = secondary.DownloadContent(contentId); + + testFile.AssertIsEqual(downloadedFile); + } + } +}