Skip to content

Commit

Permalink
Add test for drep retirement-certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhammann committed Oct 9, 2023
1 parent 5cc1126 commit a5d0487
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 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 @@ -60,3 +60,19 @@ hprop_golden_governance_drep_id_hex =
]

H.diffFileVsGoldenFile idFile idGold

hprop_golden_governance_drep_retirement_certificate :: Property
hprop_golden_governance_drep_retirement_certificate =
propertyOnce . H.moduleWorkspace "tmp" $ \tempDir -> do
drepVKeyFile <- noteInputFile "test/cardano-cli-golden/files/input/drep.vkey"
certFile <- H.noteTempFile tempDir "drep.retirement.cert"

void $ execCardanoCLI
[ "conway", "governance", "drep", "retirement-certificate"
, "--drep-verification-key-file", drepVKeyFile
, "--deposit-amt", "1000000"
, "--out-file", certFile
]

H.assertFileOccurences 1 "CertificateShelley" certFile
H.assertFileOccurences 1 "DRep Retirement Certificate" certFile

0 comments on commit a5d0487

Please sign in to comment.