cs-codex-dist-tests/BasicTests/DebugEndpointTests.cs

44 lines
1.2 KiB
C#
Raw Normal View History

using CodexDistTests.TestCore;
using NUnit.Framework;
namespace CodexDistTests.BasicTests
{
[TestFixture]
public class DebugEndpointTests : DistTest
{
[Test]
public void GetDebugInfo()
{
var node = SetupCodexNode().BringOnline();
var debugInfo = node.GetDebugInfo();
Assert.That(debugInfo.spr, Is.Not.Empty);
}
//[Test]
//public void TwoClientTest()
//{
// var primaryNodex = SetupCodexNode()
// .WithLogLevel(CodexLogLevel.Warn)
// .WithStorageQuota(1024 * 1024)
// .BringOnline();
// var secondaryNodex = SetupCodexNode()
// .WithBootstrapNode(primaryNodex)
// .BringOnline();
// var testFile = GenerateTestFile(1024 * 1024);
// var contentId = primaryNodex.UploadFile(testFile);
// var downloadedFile = secondaryNodex.DownloadContent(contentId);
// testFile.AssertIsEqual(downloadedFile);
// // Test files are automatically deleted.
// // Online nodes are automatically destroyed.
//}
}
}