28 lines
832 B
C#
Raw Normal View History

using LogosStorageClient;
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(s => s.WithLogFormat(LogosStorageLogFormat.Json));
var secondary = StartLogosStorage(s => s.WithLogFormat(LogosStorageLogFormat.Json));
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
}
}