diff --git a/cardano-cli/test/cardano-cli-golden/Test/Golden/EraBased/Governance/VerifyPoll.hs b/cardano-cli/test/cardano-cli-golden/Test/Golden/EraBased/Governance/VerifyPoll.hs index c3be9464d9..b9a6195347 100644 --- a/cardano-cli/test/cardano-cli-golden/Test/Golden/EraBased/Governance/VerifyPoll.hs +++ b/cardano-cli/test/cardano-cli-golden/Test/Golden/EraBased/Governance/VerifyPoll.hs @@ -15,8 +15,8 @@ import Test.Cardano.CLI.Util import Hedgehog (Property) import qualified Hedgehog as H -import qualified Hedgehog.Internal.Property as H import qualified Hedgehog.Extras as H +import qualified Hedgehog.Internal.Property as H {- HLINT ignore "Use camelCase" -} @@ -25,7 +25,7 @@ hprop_golden_governanceVerifyPoll = propertyOnce $ do pollFile <- noteInputFile "test/cardano-cli-golden/files/input/governance/polls/basic.json" txFile <- noteInputFile "test/cardano-cli-golden/files/input/governance/verify/valid" goldenVkFile <- VerificationKeyFilePath . File <$> - H.note "test/cardano-cli-golden/files/golden/governance/cold.vk" + H.note "test/cardano-cli-golden/files/input/governance/cold.vk" stdout <- BSC.pack <$> execCardanoCLI [ "babbage", "governance", "verify-poll" 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 3da370227c..9e0f871120 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 @@ -117,11 +117,11 @@ hprop_golden_governance_drep_metadata_hash = propertyOnce . H.moduleWorkspace "t , "--out-file", outputDRepMetadataHash ] - H.diffFileVsGoldenFile goldenDRepMetadataHash outputDRepMetadataHash + H.diffFileVsGoldenFile outputDRepMetadataHash goldenDRepMetadataHash hprop_golden_governance_drep_registration_certificate :: Property hprop_golden_governance_drep_registration_certificate = propertyOnce . H.moduleWorkspace "tmp" $ \tempDir -> do - drepKeyFile <- noteInputFile "test/cardano-cli-golden/files/golden/governance/drep/drep.vkey" + drepKeyFile <- noteInputFile "test/cardano-cli-golden/files/input/governance/drep/drep.vkey" goldenFile <- noteInputFile "test/cardano-cli-golden/files/golden/governance/drep/drep_registration_certificate.json" outFile <- H.noteTempFile tempDir "drep-reg-cert.txt" @@ -135,4 +135,4 @@ hprop_golden_governance_drep_registration_certificate = propertyOnce . H.moduleW , "--out-file", outFile ] - H.diffFileVsGoldenFile goldenFile outFile + H.diffFileVsGoldenFile outFile goldenFile diff --git a/cardano-cli/test/cardano-cli-golden/Test/Golden/Governance/StakeAddress.hs b/cardano-cli/test/cardano-cli-golden/Test/Golden/Governance/StakeAddress.hs index 3b51f7b499..723d55a800 100644 --- a/cardano-cli/test/cardano-cli-golden/Test/Golden/Governance/StakeAddress.hs +++ b/cardano-cli/test/cardano-cli-golden/Test/Golden/Governance/StakeAddress.hs @@ -83,7 +83,7 @@ hprop_golden_conway_stakeaddress_delegate_pool_and_drep = propertyOnce . H.moduleWorkspace "tmp" $ \tempDir -> do vkeyFile <- noteInputFile "test/cardano-cli-golden/files/input/conway/stake.vkey" vkeyPool <- noteInputFile "test/cardano-cli-golden/files/input/conway/poolCold.vkey" - vkeyDrep <- noteInputFile "test/cardano-cli-golden/files/golden/governance/drep/drep.vkey" + vkeyDrep <- noteInputFile "test/cardano-cli-golden/files/input/governance/drep/drep.vkey" delegFile <- H.noteTempFile tempDir "deleg" delegGold <- H.note "test/cardano-cli-golden/files/golden/governance/stakeaddress/poolAndDrepVkeyDeleg.cert" @@ -95,4 +95,4 @@ hprop_golden_conway_stakeaddress_delegate_pool_and_drep = , "--out-file", delegFile ] - H.diffFileVsGoldenFile delegFile delegGold \ No newline at end of file + H.diffFileVsGoldenFile delegFile delegGold diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/governance/drep/drep_metadata_hash b/cardano-cli/test/cardano-cli-golden/files/golden/governance/drep/drep_metadata_hash index 95dd810f73..0b7988d9a3 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/governance/drep/drep_metadata_hash +++ b/cardano-cli/test/cardano-cli-golden/files/golden/governance/drep/drep_metadata_hash @@ -1 +1 @@ -c9c4e907d758c260823be6999dbbcf2826ac1cdc0fe5f0c9394ac7fa17c74811 +c9c4e907d758c260823be6999dbbcf2826ac1cdc0fe5f0c9394ac7fa17c74811 \ No newline at end of file diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/governance/cold.vk b/cardano-cli/test/cardano-cli-golden/files/input/governance/cold.vk similarity index 100% rename from cardano-cli/test/cardano-cli-golden/files/golden/governance/cold.vk rename to cardano-cli/test/cardano-cli-golden/files/input/governance/cold.vk diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/governance/drep/drep.vkey b/cardano-cli/test/cardano-cli-golden/files/input/governance/drep/drep.vkey similarity index 100% rename from cardano-cli/test/cardano-cli-golden/files/golden/governance/drep/drep.vkey rename to cardano-cli/test/cardano-cli-golden/files/input/governance/drep/drep.vkey diff --git a/cardano-cli/test/cardano-cli-test/Test/Cli/CliIntermediateFormat.hs b/cardano-cli/test/cardano-cli-test/Test/Cli/CliIntermediateFormat.hs index 823b7c4159..7bbbaf770f 100644 --- a/cardano-cli/test/cardano-cli-test/Test/Cli/CliIntermediateFormat.hs +++ b/cardano-cli/test/cardano-cli-test/Test/Cli/CliIntermediateFormat.hs @@ -17,9 +17,9 @@ import qualified Hedgehog.Extras.Test.File as H -- | We test to make sure that we can deserialize a tx body in the intermediate format hprop_backwardsCompatibleCliFormat :: Property hprop_backwardsCompatibleCliFormat = propertyOnce $ H.moduleWorkspace "tmp" $ \tempDir -> do - txBodyFile <- noteInputFile "test/cardano-cli-test/files/golden/babbage/deprecated-cli-format.body" - witness <- noteInputFile "test/cardano-cli-test/files/golden/babbage/tx-key-witness" - initialUtxo1SigningKeyFile <- noteInputFile "test/cardano-cli-test/files/golden/shelley/keys/payment_keys/signing_key" + txBodyFile <- noteInputFile "test/cardano-cli-test/files/input/babbage/deprecated-cli-format.body" + witness <- noteInputFile "test/cardano-cli-test/files/input/babbage/tx-key-witness" + initialUtxo1SigningKeyFile <- noteInputFile "test/cardano-cli-test/files/input/shelley/keys/payment_keys/signing_key" signedTransactionFile <- noteTempFile tempDir "signed.tx" diff --git a/cardano-cli/test/cardano-cli-test/Test/Cli/Pioneers/Exercise2.hs b/cardano-cli/test/cardano-cli-test/Test/Cli/Pioneers/Exercise2.hs index ed3fd3ba36..77f1ef815a 100644 --- a/cardano-cli/test/cardano-cli-test/Test/Cli/Pioneers/Exercise2.hs +++ b/cardano-cli/test/cardano-cli-test/Test/Cli/Pioneers/Exercise2.hs @@ -36,9 +36,9 @@ hprop_createTransaction = propertyOnce . H.moduleWorkspace "tmp" $ \tempDir -> d void $ execCardanoCLI [ "transaction", "build-raw" , "--tx-in", "91999ea21177b33ebe6b8690724a0c026d410a11ad7521caa350abdafa5394c3#0" - , "--auxiliary-script-file", "test/cardano-cli-test/files/golden/shelley/multisig/scripts/all" + , "--auxiliary-script-file", "test/cardano-cli-test/files/input/shelley/multisig/scripts/all" , "--tx-in", "91999ea21177b33ebe6b8690724a0c026d410a11ad7521caa350abdafa5394c3#0" - , "--auxiliary-script-file", "test/cardano-cli-test/files/golden/shelley/multisig/scripts/all" + , "--auxiliary-script-file", "test/cardano-cli-test/files/input/shelley/multisig/scripts/all" , "--tx-out", "addr1v9wmu83pzajplrtpsq6tsqdgwr98x888trpmah2u0ezznsge7del3+100000000" , "--fee", "1000000" , "--invalid-hereafter", "500000" diff --git a/cardano-cli/test/cardano-cli-test/files/golden/babbage/deprecated-cli-format.body b/cardano-cli/test/cardano-cli-test/files/input/babbage/deprecated-cli-format.body similarity index 100% rename from cardano-cli/test/cardano-cli-test/files/golden/babbage/deprecated-cli-format.body rename to cardano-cli/test/cardano-cli-test/files/input/babbage/deprecated-cli-format.body diff --git a/cardano-cli/test/cardano-cli-test/files/golden/babbage/tx-key-witness b/cardano-cli/test/cardano-cli-test/files/input/babbage/tx-key-witness similarity index 100% rename from cardano-cli/test/cardano-cli-test/files/golden/babbage/tx-key-witness rename to cardano-cli/test/cardano-cli-test/files/input/babbage/tx-key-witness diff --git a/cardano-cli/test/cardano-cli-test/files/golden/shelley/keys/payment_keys/signing_key b/cardano-cli/test/cardano-cli-test/files/input/shelley/keys/payment_keys/signing_key similarity index 100% rename from cardano-cli/test/cardano-cli-test/files/golden/shelley/keys/payment_keys/signing_key rename to cardano-cli/test/cardano-cli-test/files/input/shelley/keys/payment_keys/signing_key diff --git a/cardano-cli/test/cardano-cli-test/files/golden/shelley/multisig/scripts/all b/cardano-cli/test/cardano-cli-test/files/input/shelley/multisig/scripts/all similarity index 100% rename from cardano-cli/test/cardano-cli-test/files/golden/shelley/multisig/scripts/all rename to cardano-cli/test/cardano-cli-test/files/input/shelley/multisig/scripts/all