Basic test checks the revision information of the codex image.
This commit is contained in:
parent
906069217b
commit
e3fd96605a
|
@ -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]
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue