diff --git a/cardano-cli/cardano-cli.cabal b/cardano-cli/cardano-cli.cabal index 10e201867c..e0548f34c1 100644 --- a/cardano-cli/cardano-cli.cabal +++ b/cardano-cli/cardano-cli.cabal @@ -358,7 +358,10 @@ test-suite cardano-cli-golden build-tool-depends: cardano-cli:cardano-cli , tasty-discover:tasty-discover - other-modules: Test.Golden.Byron.SigningKeys + other-modules: Test.Golden.Babbage.Governance.AnswerPoll + Test.Golden.Babbage.Governance.CreatePoll + Test.Golden.Babbage.Governance.VerifyPoll + Test.Golden.Byron.SigningKeys Test.Golden.Byron.Tx Test.Golden.Byron.TxBody Test.Golden.Byron.UpdateProposal @@ -379,9 +382,6 @@ test-suite cardano-cli-golden Test.Golden.Shelley.Genesis.KeyGenGenesis Test.Golden.Shelley.Genesis.KeyGenUtxo Test.Golden.Shelley.Genesis.KeyHash - Test.Golden.Shelley.Governance.AnswerPoll - Test.Golden.Shelley.Governance.CreatePoll - Test.Golden.Shelley.Governance.VerifyPoll Test.Golden.Shelley.Key.ConvertCardanoAddressKey Test.Golden.Shelley.Metadata.StakePoolMetadata Test.Golden.Shelley.MultiSig.Address diff --git a/cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Governance/AnswerPoll.hs b/cardano-cli/test/cardano-cli-golden/Test/Golden/Babbage/Governance/AnswerPoll.hs similarity index 66% rename from cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Governance/AnswerPoll.hs rename to cardano-cli/test/cardano-cli-golden/Test/Golden/Babbage/Governance/AnswerPoll.hs index fcf4658534..ba0b85a557 100644 --- a/cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Governance/AnswerPoll.hs +++ b/cardano-cli/test/cardano-cli-golden/Test/Golden/Babbage/Governance/AnswerPoll.hs @@ -1,6 +1,6 @@ {-# LANGUAGE OverloadedStrings #-} -module Test.Golden.Shelley.Governance.AnswerPoll where +module Test.Golden.Babbage.Governance.AnswerPoll where import Control.Monad (void) @@ -14,13 +14,13 @@ import qualified Hedgehog.Extras.Test.Golden as H {- HLINT ignore "Use camelCase" -} -hprop_golden_shelleyGovernanceAnswerPollNeg1Invalid :: Property -hprop_golden_shelleyGovernanceAnswerPollNeg1Invalid = propertyOnce . H.moduleWorkspace "governance-answer-poll" $ \tempDir -> do - pollFile <- noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/polls/basic.json" +hprop_golden_babbageGovernanceAnswerPollNeg1Invalid :: Property +hprop_golden_babbageGovernanceAnswerPollNeg1Invalid = propertyOnce . H.moduleWorkspace "governance-answer-poll" $ \tempDir -> do + pollFile <- noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/polls/basic.json" outFile <- H.noteTempFile tempDir "answer-file.json" result <- tryExecCardanoCLI - [ "legacy", "governance", "answer-poll" + [ "babbage", "governance", "answer-poll" , "--poll-file", pollFile , "--answer", "-1" , "--out-file", outFile @@ -30,14 +30,14 @@ hprop_golden_shelleyGovernanceAnswerPollNeg1Invalid = propertyOnce . H.moduleWor either (const H.success) (const H.failure) result -hprop_golden_shelleyGovernanceAnswerPoll0 :: Property -hprop_golden_shelleyGovernanceAnswerPoll0 = propertyOnce . H.moduleWorkspace "governance-answer-poll" $ \tempDir -> do - pollFile <- noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/polls/basic.json" - expectedAnswerFile <- noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/polls/basic.answer.0.json" +hprop_golden_babbageGovernanceAnswerPoll0 :: Property +hprop_golden_babbageGovernanceAnswerPoll0 = propertyOnce . H.moduleWorkspace "governance-answer-poll" $ \tempDir -> do + pollFile <- noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/polls/basic.json" + expectedAnswerFile <- noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/polls/basic.answer.0.json" outFile <- H.noteTempFile tempDir "answer-file.json" void $ execCardanoCLI - [ "legacy", "governance", "answer-poll" + [ "babbage", "governance", "answer-poll" , "--poll-file", pollFile , "--answer", "0" , "--out-file", outFile @@ -45,14 +45,14 @@ hprop_golden_shelleyGovernanceAnswerPoll0 = propertyOnce . H.moduleWorkspace "go H.diffFileVsGoldenFile outFile expectedAnswerFile -hprop_golden_shelleyGovernanceAnswerPollPos1 :: Property -hprop_golden_shelleyGovernanceAnswerPollPos1 = propertyOnce . H.moduleWorkspace "governance-answer-poll" $ \tempDir -> do - pollFile <- noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/polls/basic.json" - expectedAnswerFile <- noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/polls/basic.answer.1.json" +hprop_golden_babbageGovernanceAnswerPollPos1 :: Property +hprop_golden_babbageGovernanceAnswerPollPos1 = propertyOnce . H.moduleWorkspace "governance-answer-poll" $ \tempDir -> do + pollFile <- noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/polls/basic.json" + expectedAnswerFile <- noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/polls/basic.answer.1.json" outFile <- H.noteTempFile tempDir "answer-file.json" void $ execCardanoCLI - [ "legacy", "governance", "answer-poll" + [ "babbage", "governance", "answer-poll" , "--poll-file", pollFile , "--answer", "1" , "--out-file", outFile @@ -60,13 +60,13 @@ hprop_golden_shelleyGovernanceAnswerPollPos1 = propertyOnce . H.moduleWorkspace H.diffFileVsGoldenFile outFile expectedAnswerFile -hprop_golden_shelleyGovernanceAnswerPollPos2Invalid :: Property -hprop_golden_shelleyGovernanceAnswerPollPos2Invalid = propertyOnce . H.moduleWorkspace "governance-answer-poll" $ \tempDir -> do - pollFile <- noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/polls/basic.json" +hprop_golden_babbageGovernanceAnswerPollPos2Invalid :: Property +hprop_golden_babbageGovernanceAnswerPollPos2Invalid = propertyOnce . H.moduleWorkspace "governance-answer-poll" $ \tempDir -> do + pollFile <- noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/polls/basic.json" outFile <- H.noteTempFile tempDir "answer-file.json" result <- tryExecCardanoCLI - [ "legacy", "governance", "answer-poll" + [ "babbage", "governance", "answer-poll" , "--poll-file", pollFile , "--answer", "2" , "--out-file", outFile diff --git a/cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Governance/CreatePoll.hs b/cardano-cli/test/cardano-cli-golden/Test/Golden/Babbage/Governance/CreatePoll.hs similarity index 75% rename from cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Governance/CreatePoll.hs rename to cardano-cli/test/cardano-cli-golden/Test/Golden/Babbage/Governance/CreatePoll.hs index 96ad904e68..1a50fba4cc 100644 --- a/cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Governance/CreatePoll.hs +++ b/cardano-cli/test/cardano-cli-golden/Test/Golden/Babbage/Governance/CreatePoll.hs @@ -1,6 +1,6 @@ {-# LANGUAGE OverloadedStrings #-} -module Test.Golden.Shelley.Governance.CreatePoll where +module Test.Golden.Babbage.Governance.CreatePoll where import Control.Monad (void) @@ -13,13 +13,13 @@ import qualified Hedgehog.Extras.Test.File as H {- HLINT ignore "Use camelCase" -} -hprop_golden_shelleyGovernanceCreatePoll :: Property -hprop_golden_shelleyGovernanceCreatePoll = +hprop_golden_babbageGovernanceCreatePoll :: Property +hprop_golden_babbageGovernanceCreatePoll = propertyOnce . H.moduleWorkspace "tmp" $ \tempDir -> do pollFile <- noteTempFile tempDir "poll.json" stdout <- execCardanoCLI - [ "legacy", "governance", "create-poll" + [ "babbage", "governance", "create-poll" , "--question", "Pineapples on pizza?" , "--answer", "yes" , "--answer", "no" @@ -27,19 +27,19 @@ hprop_golden_shelleyGovernanceCreatePoll = ] void $ H.readFile pollFile - noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/create/basic.json" + noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/create/basic.json" >>= H.readFile >>= (H.===) stdout H.assertFileOccurences 1 "GovernancePoll" pollFile H.assertEndsWithSingleNewline pollFile -hprop_golden_shelleyGovernanceCreateLongPoll :: Property -hprop_golden_shelleyGovernanceCreateLongPoll = +hprop_golden_babbageGovernanceCreateLongPoll :: Property +hprop_golden_babbageGovernanceCreateLongPoll = propertyOnce . H.moduleWorkspace "tmp" $ \tempDir -> do pollFile <- noteTempFile tempDir "poll.json" stdout <- execCardanoCLI - [ "legacy", "governance", "create-poll" + [ "babbage", "governance", "create-poll" , "--question", "What is the most adequate topping to put on a pizza (please consider all possibilities and take time to answer)?" , "--answer", "pineapples" , "--answer", "only traditional topics should go on a pizza, this isn't room for jokes" @@ -47,7 +47,7 @@ hprop_golden_shelleyGovernanceCreateLongPoll = ] void $ H.readFile pollFile - noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/create/long-text.json" + noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/create/long-text.json" >>= H.readFile >>= (H.===) stdout H.assertFileOccurences 1 "GovernancePoll" pollFile diff --git a/cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Governance/VerifyPoll.hs b/cardano-cli/test/cardano-cli-golden/Test/Golden/Babbage/Governance/VerifyPoll.hs similarity index 62% rename from cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Governance/VerifyPoll.hs rename to cardano-cli/test/cardano-cli-golden/Test/Golden/Babbage/Governance/VerifyPoll.hs index 488a7e9564..d6d086bd15 100644 --- a/cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Governance/VerifyPoll.hs +++ b/cardano-cli/test/cardano-cli-golden/Test/Golden/Babbage/Governance/VerifyPoll.hs @@ -1,7 +1,7 @@ {-# LANGUAGE LambdaCase #-} {-# LANGUAGE OverloadedStrings #-} -module Test.Golden.Shelley.Governance.VerifyPoll where +module Test.Golden.Babbage.Governance.VerifyPoll where import Cardano.Api @@ -19,15 +19,15 @@ import qualified Hedgehog.Internal.Property as H {- HLINT ignore "Use camelCase" -} -hprop_golden_shelleyGovernanceVerifyPoll :: Property -hprop_golden_shelleyGovernanceVerifyPoll = propertyOnce $ do - pollFile <- noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/polls/basic.json" - txFile <- noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/verify/valid" +hprop_golden_babbageGovernanceVerifyPoll :: Property +hprop_golden_babbageGovernanceVerifyPoll = propertyOnce $ do + pollFile <- noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/polls/basic.json" + txFile <- noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/verify/valid" vkFile <- VerificationKeyFilePath . File <$> - noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/cold.vk" + noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/cold.vk" stdout <- BSC.pack <$> execCardanoCLI - [ "legacy", "governance", "verify-poll" + [ "babbage", "governance", "verify-poll" , "--poll-file", pollFile , "--tx-file", txFile ] @@ -39,52 +39,52 @@ hprop_golden_shelleyGovernanceVerifyPoll = propertyOnce $ do let expected = prettyPrintJSON $ serialiseToRawBytesHexText <$> [verificationKeyHash vk] H.assert $ expected `BSC.isInfixOf` stdout -hprop_golden_shelleyGovernanceVerifyPollMismatch :: Property -hprop_golden_shelleyGovernanceVerifyPollMismatch = propertyOnce $ do - pollFile <- noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/polls/basic.json" - txFile <- noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/verify/mismatch" +hprop_golden_babbageGovernanceVerifyPollMismatch :: Property +hprop_golden_babbageGovernanceVerifyPollMismatch = propertyOnce $ do + pollFile <- noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/polls/basic.json" + txFile <- noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/verify/mismatch" result <- tryExecCardanoCLI - [ "legacy", "governance", "verify-poll" + [ "babbage", "governance", "verify-poll" , "--poll-file", pollFile , "--tx-file", txFile ] either (const H.success) (H.failWith Nothing) result -hprop_golden_shelleyGovernanceVerifyPollNoAnswer :: Property -hprop_golden_shelleyGovernanceVerifyPollNoAnswer = propertyOnce $ do - pollFile <- noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/polls/basic.json" - txFile <- noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/verify/none" +hprop_golden_babbageGovernanceVerifyPollNoAnswer :: Property +hprop_golden_babbageGovernanceVerifyPollNoAnswer = propertyOnce $ do + pollFile <- noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/polls/basic.json" + txFile <- noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/verify/none" result <- tryExecCardanoCLI - [ "legacy", "governance", "verify-poll" + [ "babbage", "governance", "verify-poll" , "--poll-file", pollFile , "--tx-file", txFile ] either (const H.success) (H.failWith Nothing) result -hprop_golden_shelleyGovernanceVerifyPollMalformedAnswer :: Property -hprop_golden_shelleyGovernanceVerifyPollMalformedAnswer = propertyOnce $ do - pollFile <- noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/polls/basic.json" - txFile <- noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/verify/malformed" +hprop_golden_babbageGovernanceVerifyPollMalformedAnswer :: Property +hprop_golden_babbageGovernanceVerifyPollMalformedAnswer = propertyOnce $ do + pollFile <- noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/polls/basic.json" + txFile <- noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/verify/malformed" result <- tryExecCardanoCLI - [ "legacy", "governance", "verify-poll" + [ "babbage", "governance", "verify-poll" , "--poll-file", pollFile , "--tx-file", txFile ] either (const H.success) (H.failWith Nothing) result -hprop_golden_shelleyGovernanceVerifyPollInvalidAnswer :: Property -hprop_golden_shelleyGovernanceVerifyPollInvalidAnswer = propertyOnce $ do - pollFile <- noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/polls/basic.json" - txFile <- noteInputFile "test/cardano-cli-golden/files/golden/shelley/governance/verify/invalid" +hprop_golden_babbageGovernanceVerifyPollInvalidAnswer :: Property +hprop_golden_babbageGovernanceVerifyPollInvalidAnswer = propertyOnce $ do + pollFile <- noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/polls/basic.json" + txFile <- noteInputFile "test/cardano-cli-golden/files/golden/babbage/governance/verify/invalid" result <- tryExecCardanoCLI - [ "legacy", "governance", "verify-poll" + [ "babbage", "governance", "verify-poll" , "--poll-file", pollFile , "--tx-file", txFile ] diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/shelley/governance/cold.vk b/cardano-cli/test/cardano-cli-golden/files/golden/babbage/governance/cold.vk similarity index 100% rename from cardano-cli/test/cardano-cli-golden/files/golden/shelley/governance/cold.vk rename to cardano-cli/test/cardano-cli-golden/files/golden/babbage/governance/cold.vk diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/shelley/governance/create/basic.json b/cardano-cli/test/cardano-cli-golden/files/golden/babbage/governance/create/basic.json similarity index 100% rename from cardano-cli/test/cardano-cli-golden/files/golden/shelley/governance/create/basic.json rename to cardano-cli/test/cardano-cli-golden/files/golden/babbage/governance/create/basic.json diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/shelley/governance/create/long-text.json b/cardano-cli/test/cardano-cli-golden/files/golden/babbage/governance/create/long-text.json similarity index 100% rename from cardano-cli/test/cardano-cli-golden/files/golden/shelley/governance/create/long-text.json rename to cardano-cli/test/cardano-cli-golden/files/golden/babbage/governance/create/long-text.json diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/shelley/governance/polls/basic.answer.0.json b/cardano-cli/test/cardano-cli-golden/files/golden/babbage/governance/polls/basic.answer.0.json similarity index 100% rename from cardano-cli/test/cardano-cli-golden/files/golden/shelley/governance/polls/basic.answer.0.json rename to cardano-cli/test/cardano-cli-golden/files/golden/babbage/governance/polls/basic.answer.0.json diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/shelley/governance/polls/basic.answer.1.json b/cardano-cli/test/cardano-cli-golden/files/golden/babbage/governance/polls/basic.answer.1.json similarity index 100% rename from cardano-cli/test/cardano-cli-golden/files/golden/shelley/governance/polls/basic.answer.1.json rename to cardano-cli/test/cardano-cli-golden/files/golden/babbage/governance/polls/basic.answer.1.json diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/shelley/governance/polls/basic.json b/cardano-cli/test/cardano-cli-golden/files/golden/babbage/governance/polls/basic.json similarity index 100% rename from cardano-cli/test/cardano-cli-golden/files/golden/shelley/governance/polls/basic.json rename to cardano-cli/test/cardano-cli-golden/files/golden/babbage/governance/polls/basic.json diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/shelley/governance/verify/valid b/cardano-cli/test/cardano-cli-golden/files/golden/babbage/governance/verify/valid similarity index 100% rename from cardano-cli/test/cardano-cli-golden/files/golden/shelley/governance/verify/valid rename to cardano-cli/test/cardano-cli-golden/files/golden/babbage/governance/verify/valid diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_answer-poll.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_answer-poll.cli similarity index 61% rename from cardano-cli/test/cardano-cli-golden/files/golden/help/governance_answer-poll.cli rename to cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_answer-poll.cli index 5b98ca49e6..010c8f307d 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_answer-poll.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_answer-poll.cli @@ -1,6 +1,6 @@ -Usage: cardano-cli governance answer-poll --poll-file FILE - [--answer INT] - [--out-file FILE] +Usage: cardano-cli babbage governance answer-poll --poll-file FILE + [--answer INT] + [--out-file FILE] Answer an SPO poll diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_create-poll.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_create-poll.cli similarity index 57% rename from cardano-cli/test/cardano-cli-golden/files/golden/help/governance_create-poll.cli rename to cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_create-poll.cli index 1549cb8231..a2ae7fbd74 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_create-poll.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_create-poll.cli @@ -1,7 +1,7 @@ -Usage: cardano-cli governance create-poll --question STRING - (--answer STRING) - [--nonce UINT] - --out-file FILE +Usage: cardano-cli babbage governance create-poll --question STRING + (--answer STRING) + [--nonce UINT] + --out-file FILE Create an SPO poll diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_verify-poll.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_verify-poll.cli similarity index 61% rename from cardano-cli/test/cardano-cli-golden/files/golden/help/governance_verify-poll.cli rename to cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_verify-poll.cli index 30915e6559..1ee21545fd 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/governance_verify-poll.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_governance_verify-poll.cli @@ -1,6 +1,6 @@ -Usage: cardano-cli governance verify-poll --poll-file FILE - --tx-file FILE - [--out-file FILE] +Usage: cardano-cli babbage governance verify-poll --poll-file FILE + --tx-file FILE + [--out-file FILE] Verify an answer to a given SPO poll diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_governance_answer-poll.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_answer-poll.cli similarity index 87% rename from cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_governance_answer-poll.cli rename to cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_answer-poll.cli index 0c788de0f2..6f74d1dfff 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_governance_answer-poll.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_answer-poll.cli @@ -1,4 +1,4 @@ -Usage: cardano-cli legacy governance answer-poll --poll-file FILE +Usage: cardano-cli latest governance answer-poll --poll-file FILE [--answer INT] [--out-file FILE] diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_governance_create-poll.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_create-poll.cli similarity index 89% rename from cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_governance_create-poll.cli rename to cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_create-poll.cli index 18a3e7f2b2..aae43025f8 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_governance_create-poll.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_create-poll.cli @@ -1,4 +1,4 @@ -Usage: cardano-cli legacy governance create-poll --question STRING +Usage: cardano-cli latest governance create-poll --question STRING (--answer STRING) [--nonce UINT] --out-file FILE diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_governance_verify-poll.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_verify-poll.cli similarity index 87% rename from cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_governance_verify-poll.cli rename to cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_verify-poll.cli index 32671bada3..8fa45ec966 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_governance_verify-poll.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_governance_verify-poll.cli @@ -1,4 +1,4 @@ -Usage: cardano-cli legacy governance verify-poll --poll-file FILE +Usage: cardano-cli latest governance verify-poll --poll-file FILE --tx-file FILE [--out-file FILE] diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_governance.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_governance.cli index b8aa60f019..1ac6d67f4c 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_governance.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/legacy_governance.cli @@ -2,9 +2,6 @@ Usage: cardano-cli legacy governance ( create-mir-certificate | create-genesis-key-delegation-certificate | create-update-proposal - | create-poll - | answer-poll - | verify-poll ) Governance commands @@ -18,6 +15,3 @@ Available commands: create-genesis-key-delegation-certificate Create a genesis key delegation certificate create-update-proposal Create an update proposal - create-poll Create an SPO poll - answer-poll Answer an SPO poll - verify-poll Verify an answer to a given SPO poll