mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-05-28 03:59:27 +00:00
35 lines
835 B
C#
35 lines
835 B
C#
using LogosStorageClient;
|
|
using LogosStorageTests;
|
|
using NUnit.Framework;
|
|
using Utils;
|
|
|
|
namespace LogosStorageReleaseTests.DataTests
|
|
{
|
|
[TestFixture]
|
|
public class OneClientTest : LogosStorageDistTest
|
|
{
|
|
[Test]
|
|
public void OneClient()
|
|
{
|
|
var node = StartLogosStorage(s => s.WithLogFormat(LogosStorageLogFormat.Json));
|
|
|
|
PerformOneClientTest(node);
|
|
|
|
LogNodeStatus(node);
|
|
}
|
|
|
|
private void PerformOneClientTest(IStorageNode primary)
|
|
{
|
|
var testFile = GenerateTestFile(1.MB());
|
|
|
|
var contentId = primary.UploadFile(testFile);
|
|
|
|
AssertNodesContainFile(contentId, primary);
|
|
|
|
var downloadedFile = primary.DownloadContent(contentId);
|
|
|
|
testFile.AssertIsEqual(downloadedFile);
|
|
}
|
|
}
|
|
}
|