36 lines
991 B
C#
Raw Permalink Normal View History

using LogosStorageTests;
using DistTestCore;
2023-03-23 12:35:03 +01:00
using NUnit.Framework;
namespace LogosStorageLongTests.BasicTests
2023-03-23 12:35:03 +01:00
{
public class TestInfraTests : LogosStorageDistTest
2023-03-23 12:35:03 +01:00
{
2024-05-07 10:15:02 +02:00
[Test]
[UseLongTimeouts]
[Ignore("Not supported atm")]
2023-03-23 12:35:03 +01:00
public void TestInfraShouldHave1000AddressSpacesPerPod()
{
var group = StartLogosStorage(1000, s => s.EnableMetrics());
2023-03-23 12:35:03 +01:00
2024-03-26 08:58:16 +01:00
var nodeIds = group.Select(n => n.GetDebugInfo().Id).ToArray();
2023-03-23 12:35:03 +01:00
Assert.That(nodeIds.Length, Is.EqualTo(nodeIds.Distinct().Count()),
"Not all created nodes provided a unique id.");
}
2024-05-07 10:15:02 +02:00
[Test]
[UseLongTimeouts]
[Ignore("Not supported atm")]
2023-03-23 12:35:03 +01:00
public void TestInfraSupportsManyConcurrentPods()
{
for (var i = 0; i < 20; i++)
{
var n = StartLogosStorage();
2023-03-23 12:35:03 +01:00
2024-03-26 08:58:16 +01:00
Assert.That(!string.IsNullOrEmpty(n.GetDebugInfo().Id));
2023-03-23 12:35:03 +01:00
}
}
}
}