diff --git a/cardano-cli/test/cardano-cli-golden/Test/Golden/Governance/DRep.hs b/cardano-cli/test/cardano-cli-golden/Test/Golden/Governance/DRep.hs index 40947e1b55..b3b4aa73fe 100644 --- a/cardano-cli/test/cardano-cli-golden/Test/Golden/Governance/DRep.hs +++ b/cardano-cli/test/cardano-cli-golden/Test/Golden/Governance/DRep.hs @@ -86,6 +86,24 @@ hprop_golden_governance_drep_id_hex = H.diffFileVsGoldenFile idFile idGold +hprop_golden_governance_drep_extended_key_signing :: Property +hprop_golden_governance_drep_extended_key_signing = + propertyOnce . H.moduleWorkspace "tmp" $ \tempDir -> do + skeyFile <- noteInputFile "test/cardano-cli-golden/files/input/governance/drep/extended-key-signing/drep.skey" + txBody <- noteInputFile "test/cardano-cli-golden/files/input/governance/drep/extended-key-signing/tx.body" + + outGold <- H.note "test/cardano-cli-golden/files/golden/governance/drep/extended-key-signing/tx.signed" + outFile <- H.noteTempFile tempDir "outFile" + + void $ execCardanoCLI + [ "conway", "transaction", "sign" + , "--tx-body-file", txBody + , "--signing-key-file", skeyFile + , "--out-file", outFile + ] + + H.diffFileVsGoldenFile outFile outGold + hprop_golden_governance_drep_retirement_certificate_vkey_file :: Property hprop_golden_governance_drep_retirement_certificate_vkey_file = propertyOnce . H.moduleWorkspace "tmp" $ \tempDir -> do diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/governance/drep/extended-key-signing/tx.signed b/cardano-cli/test/cardano-cli-golden/files/golden/governance/drep/extended-key-signing/tx.signed new file mode 100644 index 0000000000..5eaaff652d --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/governance/drep/extended-key-signing/tx.signed @@ -0,0 +1,5 @@ +{ + "type": "Witnessed Tx ConwayEra", + "description": "Ledger Cddl Format", + "cborHex": "84a50081825820829e3fd4847f53f0291370fc900b24cc7c7cc4f69676bbed9ca6e281dae9d60a00018182581d6063a11787740d8c90b6d335eefb8bb2f9e23066a3340e8c89d31ed74e1a002b2d03021a000299bd031a010f14d904d901028184108200581c8f4fefcf28017a57b41517a67d56ef4c0dc04181a11d35178dd53f4c1a001e8480f6a10081825820b18eacea2003b68e39137545e9d42ce5bca133ca0334d6a75aa9cb1fd02be7ec5840051079704c9d41192356287965e189d9fe7f693693a72a454f34e6f1c27c5523fe4c8b841931a6d7bb0f59d09b0dcc406834f990845e115a7329ef4285d38208f5f6" +} diff --git a/cardano-cli/test/cardano-cli-golden/files/input/governance/drep/extended-key-signing/drep.skey b/cardano-cli/test/cardano-cli-golden/files/input/governance/drep/extended-key-signing/drep.skey new file mode 100644 index 0000000000..b393520d68 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/input/governance/drep/extended-key-signing/drep.skey @@ -0,0 +1,5 @@ +{ + "type": "DRepExtendedSigningKey_ed25519_bip32", + "description": "Delegate Representative Signing Key", + "cborHex": "588048b9578fe1a8fde546fcf5c134a7928b5213f3c2d49766becea5e3078a96354fb3ab263592401d61853957110a688cac3137649efba52994153fb6fd6b29c585b18eacea2003b68e39137545e9d42ce5bca133ca0334d6a75aa9cb1fd02be7ec90e91f5357e2c68949f0f09717c5b9809b6a74d5f87ea35383c82841f2357564" +} diff --git a/cardano-cli/test/cardano-cli-golden/files/input/governance/drep/extended-key-signing/tx.body b/cardano-cli/test/cardano-cli-golden/files/input/governance/drep/extended-key-signing/tx.body new file mode 100644 index 0000000000..5d18cd3311 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/input/governance/drep/extended-key-signing/tx.body @@ -0,0 +1,5 @@ +{ + "type": "Unwitnessed Tx ConwayEra", + "description": "Ledger Cddl Format", + "cborHex": "84a50081825820829e3fd4847f53f0291370fc900b24cc7c7cc4f69676bbed9ca6e281dae9d60a00018182581d6063a11787740d8c90b6d335eefb8bb2f9e23066a3340e8c89d31ed74e1a002b2d03021a000299bd031a010f14d904d901028184108200581c8f4fefcf28017a57b41517a67d56ef4c0dc04181a11d35178dd53f4c1a001e8480f6a0f5f6" +}