turns tests back on

This commit is contained in:
benbierens 2023-03-24 14:32:25 +01:00
parent 40aaf42106
commit 496673c882
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 38 additions and 38 deletions

View File

@ -6,58 +6,58 @@ namespace Tests.BasicTests
[TestFixture]
public class SimpleTests : DistTest
{
//[Test]
//public void GetDebugInfo()
//{
// var dockerImage = new CodexDockerImage();
[Test]
public void GetDebugInfo()
{
var dockerImage = new CodexDockerImage();
// var node = SetupCodexNodes(1)
// .BringOnline()[0];
var node = SetupCodexNodes(1)
.BringOnline()[0];
// var debugInfo = node.GetDebugInfo();
var debugInfo = node.GetDebugInfo();
// Assert.That(debugInfo.spr, Is.Not.Empty);
// Assert.That(debugInfo.codex.revision, Is.EqualTo(dockerImage.GetExpectedImageRevision()));
//}
Assert.That(debugInfo.spr, Is.Not.Empty);
Assert.That(debugInfo.codex.revision, Is.EqualTo(dockerImage.GetExpectedImageRevision()));
}
//[Test]
//public void OneClientTest()
//{
// var primary = SetupCodexNodes(1)
// .BringOnline()[0];
[Test]
public void OneClientTest()
{
var primary = SetupCodexNodes(1)
.BringOnline()[0];
// var testFile = GenerateTestFile(1.MB());
var testFile = GenerateTestFile(1.MB());
// var contentId = primary.UploadFile(testFile);
var contentId = primary.UploadFile(testFile);
// var downloadedFile = primary.DownloadContent(contentId);
var downloadedFile = primary.DownloadContent(contentId);
// testFile.AssertIsEqual(downloadedFile);
//}
testFile.AssertIsEqual(downloadedFile);
}
//[Test]
//public void TwoClientsOnePodTest()
//{
// var group = SetupCodexNodes(2)
// .BringOnline();
[Test]
public void TwoClientsOnePodTest()
{
var group = SetupCodexNodes(2)
.BringOnline();
// var primary = group[0];
// var secondary = group[1];
var primary = group[0];
var secondary = group[1];
// PerformTwoClientTest(primary, secondary);
//}
PerformTwoClientTest(primary, secondary);
}
//[Test]
//public void TwoClientsTwoPodsTest()
//{
// var primary = SetupCodexNodes(1)
// .BringOnline()[0];
[Test]
public void TwoClientsTwoPodsTest()
{
var primary = SetupCodexNodes(1)
.BringOnline()[0];
// var secondary = SetupCodexNodes(1)
// .BringOnline()[0];
var secondary = SetupCodexNodes(1)
.BringOnline()[0];
// PerformTwoClientTest(primary, secondary);
//}
PerformTwoClientTest(primary, secondary);
}
[Test]
public void TwoClientsTwoLocationsTest()