From e3fd96605a54a54d7d07622a86682a275659ea16 Mon Sep 17 00:00:00 2001 From: benbierens Date: Tue, 21 Mar 2023 08:30:40 +0100 Subject: [PATCH] Basic test checks the revision information of the codex image. --- BasicTests/DebugEndpointTests.cs | 3 +++ TestCore/CodexDockerImage.cs | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/BasicTests/DebugEndpointTests.cs b/BasicTests/DebugEndpointTests.cs index 24cc22c..956d916 100644 --- a/BasicTests/DebugEndpointTests.cs +++ b/BasicTests/DebugEndpointTests.cs @@ -9,11 +9,14 @@ namespace CodexDistTests.BasicTests [Test] public void GetDebugInfo() { + var dockerImage = new CodexDockerImage(); + var node = SetupCodexNode().BringOnline(); var debugInfo = node.GetDebugInfo(); Assert.That(debugInfo.spr, Is.Not.Empty); + Assert.That(debugInfo.codex.revision, Is.EqualTo(dockerImage.GetExpectedImageRevision())); } [Test] diff --git a/TestCore/CodexDockerImage.cs b/TestCore/CodexDockerImage.cs index 4bc5c70..988a0cd 100644 --- a/TestCore/CodexDockerImage.cs +++ b/TestCore/CodexDockerImage.cs @@ -6,7 +6,12 @@ namespace CodexDistTests.TestCore { public string GetImageTag() { - return "thatbenbierens/nim-codex:sha-c9a62de"; + return "thatbenbierens/nim-codex:sha-b204837"; + } + + public string GetExpectedImageRevision() + { + return "b20483"; } public List CreateEnvironmentVariables(OfflineCodexNode node)