cs-codex-dist-tests/TestCore/DistTest.cs

35 lines
808 B
C#
Raw Normal View History

using NUnit.Framework;
namespace CodexDistTests.TestCore
{
public abstract class DistTest
{
private FileManager fileManager = null!;
private K8sManager k8sManager = null!;
[SetUp]
public void SetUpDistTest()
{
fileManager = new FileManager();
k8sManager = new K8sManager(fileManager);
}
[TearDown]
public void TearDownDistTest()
{
k8sManager.DeleteAllResources();
2023-03-19 10:18:56 +00:00
fileManager.DeleteAllTestFiles();
}
public TestFile GenerateTestFile(int size = 1024)
{
return fileManager.GenerateTestFile(size);
}
public IOfflineCodexNode SetupCodexNode()
{
return new OfflineCodexNode(k8sManager);
}
}
}