Adds test for upload/download large file with single node

This commit is contained in:
Ben 2024-04-24 09:41:05 +02:00
parent 6545f3469f
commit a6379d02f1
No known key found for this signature in database
GPG Key ID: 541B9D8C9F1426A1
1 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,36 @@
using CodexPlugin;
using DistTestCore;
using NUnit.Framework;
using Utils;
namespace CodexTests.ScalabilityTests
{
[TestFixture]
public class OneClientLargeFileTests : CodexDistTest
{
[Test]
[Combinatorial]
[UseLongTimeouts]
public void OneClientLargeFile([Values(
256,
512,
1024, // GB
2048,
4096,
8192,
16384,
32768,
65536,
131072
)] int sizeMb)
{
var testFile = GenerateTestFile(sizeMb.MB());
var node = AddCodex(s => s.WithLogLevel(CodexLogLevel.Warn));
var contentId = node.UploadFile(testFile);
var downloadedFile = node.DownloadContent(contentId);
testFile.AssertIsEqual(downloadedFile);
}
}
}