27 lines
710 B
C#
Raw Permalink Normal View History

using LogosStorageTests;
2024-11-21 10:46:11 +01:00
using NUnit.Framework;
using Utils;
2024-11-21 10:03:09 +01:00
namespace LogosStorageReleaseTests.DataTests
2024-11-21 10:03:09 +01:00
{
2024-11-21 10:46:11 +01:00
public class ThreeClientTest : AutoBootstrapDistTest
2024-11-21 10:03:09 +01:00
{
2024-11-21 10:46:11 +01:00
[Test]
public void ThreeClient()
{
var primary = StartLogosStorage();
var secondary = StartLogosStorage();
2024-11-21 10:46:11 +01:00
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 10:03:09 +01:00
}
}