27 lines
710 B
C#

using LogosStorageTests;
using NUnit.Framework;
using Utils;
namespace LogosStorageReleaseTests.DataTests
{
public class ThreeClientTest : AutoBootstrapDistTest
{
[Test]
public void ThreeClient()
{
var primary = StartLogosStorage();
var secondary = StartLogosStorage();
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);
}
}
}