diff --git a/Tests/CodexTests/ScalabilityTests/OneClientLargeFileTests.cs b/Tests/CodexTests/ScalabilityTests/OneClientLargeFileTests.cs new file mode 100644 index 00000000..76c8fdff --- /dev/null +++ b/Tests/CodexTests/ScalabilityTests/OneClientLargeFileTests.cs @@ -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); + } + } +}