55 lines
2.0 KiB
C#
55 lines
2.0 KiB
C#
//using DistTestCore;
|
|
//using DistTestCore.Codex;
|
|
//using NUnit.Framework;
|
|
|
|
//namespace ContinuousTests.Tests
|
|
//{
|
|
// public class TransientNodeTest : ContinuousTest
|
|
// {
|
|
// public override int RequiredNumberOfNodes => 3;
|
|
// public override TimeSpan RunTestEvery => TimeSpan.FromMinutes(1);
|
|
// public override TestFailMode TestFailMode => TestFailMode.StopAfterFirstFailure;
|
|
// public override string CustomK8sNamespace => nameof(TransientNodeTest).ToLowerInvariant();
|
|
// public override int EthereumAccountIndex => 201;
|
|
|
|
// private TestFile file = null!;
|
|
// private ContentId cid = null!;
|
|
|
|
// private CodexAccess UploadBootstapNode { get { return Nodes[0]; } }
|
|
// private CodexAccess DownloadBootstapNode { get { return Nodes[1]; } }
|
|
// private CodexAccess IntermediateNode { get { return Nodes[2]; } }
|
|
|
|
// [TestMoment(t: 0)]
|
|
// public void UploadWithTransientNode()
|
|
// {
|
|
// file = FileManager.GenerateTestFile(10.MB());
|
|
|
|
// NodeRunner.RunNode(UploadBootstapNode, (codexAccess, marketplaceAccess, lifecycle) =>
|
|
// {
|
|
// cid = UploadFile(codexAccess, file)!;
|
|
// Assert.That(cid, Is.Not.Null);
|
|
|
|
// var dlt = Task.Run(() =>
|
|
// {
|
|
// Thread.Sleep(10000);
|
|
// lifecycle.DownloadLog(codexAccess.Container);
|
|
// });
|
|
|
|
// var resultFile = DownloadFile(IntermediateNode, cid);
|
|
// dlt.Wait();
|
|
// file.AssertIsEqual(resultFile);
|
|
// });
|
|
// }
|
|
|
|
// [TestMoment(t: 30)]
|
|
// public void DownloadWithTransientNode()
|
|
// {
|
|
// NodeRunner.RunNode(DownloadBootstapNode, (codexAccess, marketplaceAccess, lifecycle) =>
|
|
// {
|
|
// var resultFile = DownloadFile(codexAccess, cid);
|
|
// file.AssertIsEqual(resultFile);
|
|
// });
|
|
// }
|
|
// }
|
|
//}
|