2023-07-13 07:20:24 +00:00
|
|
|
|
using DistTestCore;
|
|
|
|
|
using NUnit.Framework;
|
2023-09-08 08:21:40 +00:00
|
|
|
|
using Utils;
|
2023-07-13 07:20:24 +00:00
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|