2024-11-21 09:46:11 +00:00
|
|
|
|
using CodexTests;
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using System;
|
2024-11-21 09:03:09 +00:00
|
|
|
|
using System.Collections.Generic;
|
2024-11-21 09:46:11 +00:00
|
|
|
|
using System.ComponentModel;
|
2024-11-21 09:03:09 +00:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2024-11-21 09:46:11 +00:00
|
|
|
|
using Utils;
|
2024-11-21 09:03:09 +00:00
|
|
|
|
|
|
|
|
|
namespace CodexReleaseTests.DataTests
|
|
|
|
|
{
|
2024-11-21 09:46:11 +00:00
|
|
|
|
public class ThreeClientTest : AutoBootstrapDistTest
|
2024-11-21 09:03:09 +00:00
|
|
|
|
{
|
2024-11-21 09:46:11 +00:00
|
|
|
|
[Test]
|
|
|
|
|
public void ThreeClient()
|
|
|
|
|
{
|
|
|
|
|
var primary = StartCodex();
|
|
|
|
|
var secondary = StartCodex();
|
|
|
|
|
|
|
|
|
|
var testFile = GenerateTestFile(10.MB());
|
|
|
|
|
|
|
|
|
|
var contentId = primary.UploadFile(testFile);
|
|
|
|
|
AssertNodesContainFile(contentId, primary);
|
|
|
|
|
|
|
|
|
|
var downloadedFile = secondary.DownloadContent(contentId);
|
|
|
|
|
AssertNodesContainFile(contentId, primary, secondary);
|
|
|
|
|
|
|
|
|
|
testFile.AssertIsEqual(downloadedFile);
|
|
|
|
|
}
|
2024-11-21 09:03:09 +00:00
|
|
|
|
}
|
|
|
|
|
}
|