Basic test checks the revision information of the codex image.

This commit is contained in:
benbierens 2023-03-21 08:30:40 +01:00
parent 906069217b
commit e3fd96605a
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
2 changed files with 9 additions and 1 deletions

View File

@ -9,11 +9,14 @@ namespace CodexDistTests.BasicTests
[Test] [Test]
public void GetDebugInfo() public void GetDebugInfo()
{ {
var dockerImage = new CodexDockerImage();
var node = SetupCodexNode().BringOnline(); var node = SetupCodexNode().BringOnline();
var debugInfo = node.GetDebugInfo(); var debugInfo = node.GetDebugInfo();
Assert.That(debugInfo.spr, Is.Not.Empty); Assert.That(debugInfo.spr, Is.Not.Empty);
Assert.That(debugInfo.codex.revision, Is.EqualTo(dockerImage.GetExpectedImageRevision()));
} }
[Test] [Test]

View File

@ -6,7 +6,12 @@ namespace CodexDistTests.TestCore
{ {
public string GetImageTag() public string GetImageTag()
{ {
return "thatbenbierens/nim-codex:sha-c9a62de"; return "thatbenbierens/nim-codex:sha-b204837";
}
public string GetExpectedImageRevision()
{
return "b20483";
} }
public List<V1EnvVar> CreateEnvironmentVariables(OfflineCodexNode node) public List<V1EnvVar> CreateEnvironmentVariables(OfflineCodexNode node)