2023-04-17 05:56:08 +00:00
|
|
|
|
using DistTestCore;
|
|
|
|
|
using DistTestCore.Codex;
|
2023-03-21 12:20:21 +00:00
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
|
2023-04-12 11:53:55 +00:00
|
|
|
|
namespace TestsLong.BasicTests
|
2023-03-21 12:20:21 +00:00
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
2023-03-23 11:35:03 +00:00
|
|
|
|
public class LargeFileTests : DistTest
|
2023-03-21 12:20:21 +00:00
|
|
|
|
{
|
|
|
|
|
[Test, UseLongTimeouts]
|
|
|
|
|
public void OneClientLargeFileTest()
|
|
|
|
|
{
|
2023-04-25 10:52:11 +00:00
|
|
|
|
var primary = SetupCodexNode(s => s
|
2023-03-21 12:20:21 +00:00
|
|
|
|
.WithLogLevel(CodexLogLevel.Warn)
|
2023-04-25 10:52:11 +00:00
|
|
|
|
.WithStorageQuota(20.GB()));
|
2023-03-21 12:20:21 +00:00
|
|
|
|
|
2023-03-23 11:35:03 +00:00
|
|
|
|
var testFile = GenerateTestFile(10.GB());
|
2023-03-21 12:20:21 +00:00
|
|
|
|
|
|
|
|
|
var contentId = primary.UploadFile(testFile);
|
|
|
|
|
|
|
|
|
|
var downloadedFile = primary.DownloadContent(contentId);
|
|
|
|
|
|
|
|
|
|
testFile.AssertIsEqual(downloadedFile);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|