mirror of
https://github.com/codex-storage/cs-codex-dist-tests.git
synced 2025-02-03 07:43:52 +00:00
27 lines
715 B
C#
27 lines
715 B
C#
using CodexDistTestCore;
|
|
using NUnit.Framework;
|
|
|
|
namespace LongTests.BasicTests
|
|
{
|
|
[TestFixture]
|
|
public class LargeFileTests : DistTest
|
|
{
|
|
[Test, UseLongTimeouts]
|
|
public void OneClientLargeFileTest()
|
|
{
|
|
var primary = SetupCodexNodes(1)
|
|
.WithLogLevel(CodexLogLevel.Warn)
|
|
.WithStorageQuota(20.GB())
|
|
.BringOnline()[0];
|
|
|
|
var testFile = GenerateTestFile(10.GB());
|
|
|
|
var contentId = primary.UploadFile(testFile);
|
|
|
|
var downloadedFile = primary.DownloadContent(contentId);
|
|
|
|
testFile.AssertIsEqual(downloadedFile);
|
|
}
|
|
}
|
|
}
|