Sets scalability tests to current codex image
This commit is contained in:
parent
2902f6baab
commit
dd36929a81
|
@ -9,9 +9,6 @@ namespace CodexTests.ScalabilityTests;
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ScalabilityTests : CodexDistTest
|
public class ScalabilityTests : CodexDistTest
|
||||||
{
|
{
|
||||||
private const string PatchedImage = "codexstorage/nim-codex:sha-9aeac06-dist-tests";
|
|
||||||
private const string MasterImage = "codexstorage/nim-codex:sha-5380912-dist-tests";
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// We upload a file to node A, then download it with B.
|
/// We upload a file to node A, then download it with B.
|
||||||
/// Then we stop node A, and download again with node C.
|
/// Then we stop node A, and download again with node C.
|
||||||
|
@ -22,12 +19,9 @@ public class ScalabilityTests : CodexDistTest
|
||||||
[DontDownloadLogs]
|
[DontDownloadLogs]
|
||||||
public void ShouldMaintainFileInNetwork(
|
public void ShouldMaintainFileInNetwork(
|
||||||
[Values(10, 40, 80, 100)] int numberOfNodes,
|
[Values(10, 40, 80, 100)] int numberOfNodes,
|
||||||
[Values(100, 1000, 5000, 10000)] int fileSizeInMb,
|
[Values(100, 1000, 5000, 10000)] int fileSizeInMb
|
||||||
[Values(true, false)] bool usePatchedImage
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
CodexContainerRecipe.DockerImageOverride = usePatchedImage ? PatchedImage : MasterImage;
|
|
||||||
|
|
||||||
var logLevel = CodexLogLevel.Info;
|
var logLevel = CodexLogLevel.Info;
|
||||||
|
|
||||||
var bootstrap = AddCodex(s => s.WithLogLevel(logLevel));
|
var bootstrap = AddCodex(s => s.WithLogLevel(logLevel));
|
||||||
|
@ -58,19 +52,15 @@ public class ScalabilityTests : CodexDistTest
|
||||||
/// We upload a file to each node, to put a more wide-spread load on the network.
|
/// We upload a file to each node, to put a more wide-spread load on the network.
|
||||||
/// Then we run the same test as ShouldMaintainFileInNetwork.
|
/// Then we run the same test as ShouldMaintainFileInNetwork.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Ignore("Make ShouldMaintainFileInNetwork pass reliably first.")]
|
|
||||||
[Test]
|
[Test]
|
||||||
[Combinatorial]
|
[Combinatorial]
|
||||||
[UseLongTimeouts]
|
[UseLongTimeouts]
|
||||||
[DontDownloadLogs]
|
[DontDownloadLogs]
|
||||||
public void EveryoneGetsAFile(
|
public void EveryoneGetsAFile(
|
||||||
[Values(10, 40, 80, 100)] int numberOfNodes,
|
[Values(10, 40, 80, 100)] int numberOfNodes,
|
||||||
[Values(100, 1000)] int fileSizeInMb,
|
[Values(100, 1000, 5000, 10000)] int fileSizeInMb
|
||||||
[Values(true, false)] bool usePatchedImage
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
CodexContainerRecipe.DockerImageOverride = usePatchedImage ? PatchedImage : MasterImage;
|
|
||||||
|
|
||||||
var logLevel = CodexLogLevel.Info;
|
var logLevel = CodexLogLevel.Info;
|
||||||
|
|
||||||
var bootstrap = AddCodex(s => s.WithLogLevel(logLevel));
|
var bootstrap = AddCodex(s => s.WithLogLevel(logLevel));
|
||||||
|
|
Loading…
Reference in New Issue