Skip to content

Commit

Permalink
drep id: golden test new key hash support
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Jan 8, 2025
1 parent 6325830 commit 9f7eb2d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions cardano-cli/test/cardano-cli-golden/Test/Golden/Governance/DRep.hs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,24 @@ hprop_golden_governance_drep_id_hex =

H.diffFileVsGoldenFile idFile idGold

-- | Execute me with:
-- @cabal test cardano-cli-golden --test-options '-p "/golden governance drep id hash/"'@
hprop_golden_governance_drep_id_hash :: Property
hprop_golden_governance_drep_id_hash = propertyOnce $ do
idGold <- H.note "test/cardano-cli-golden/files/golden/governance/drep/drep.id.hash"

output <-
execCardanoCLI
[ "conway"
, "governance"
, "drep"
, "id"
, "--drep-key-hash"
, "c1a342f0dfb82b93ca2e6b406bacb04802f7d56a99d8f95a80a8b6c5"
]

H.diffVsGoldenFile output idGold

hprop_golden_governance_drep_extended_key_signing :: Property
hprop_golden_governance_drep_extended_key_signing =
propertyOnce . H.moduleWorkspace "tmp" $ \tempDir -> do
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
drep1cx359uxlhq4e8j3wddqxht9sfqp004t2n8v0jk5q4zmv27sh0h5

0 comments on commit 9f7eb2d

Please sign in to comment.