Skip to content

Commit

Permalink
Shelley/Node: harden an existing test
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Nov 13, 2023
1 parent 59039f8 commit 0775ed7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module Test.Golden.Shelley.Node.IssueOpCert where

import Control.Monad (void)

import Test.Cardano.CLI.Aeson (assertHasMappings)
import Test.Cardano.CLI.Util

import Hedgehog (Property)
Expand Down Expand Up @@ -37,8 +38,8 @@ hprop_golden_shelleyNodeIssueOpCert = propertyOnce . H.moduleWorkspace "tmp" $ \
, "--out-file", operationalCertFile
]

H.assertFileOccurences 1 "NodeOperationalCertificate" operationalCertFile
H.assertFileOccurences 1 "Next certificate issue number: 1" operationalCertificateIssueCounterFile
assertHasMappings [("type", "NodeOperationalCertificate")] operationalCertFile
assertHasMappings [("type", "NodeOperationalCertificateIssueCounter"), ("description", "Next certificate issue number: 1")] operationalCertificateIssueCounterFile

H.assertEndsWithSingleNewline operationalCertFile
H.assertEndsWithSingleNewline operationalCertificateIssueCounterFile

0 comments on commit 0775ed7

Please sign in to comment.