From f7b460426bfefe882a9c3eeec6519af08dc19c3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Mon, 6 Jan 2025 21:45:11 +0100 Subject: [PATCH] transaction id: test new flags --- .../Test/Golden/Shelley/Transaction/Id.hs | 7 +++++++ .../files/golden/shelley/transaction-id.json | 1 + 2 files changed, 8 insertions(+) create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/shelley/transaction-id.json diff --git a/cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Transaction/Id.hs b/cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Transaction/Id.hs index e502dca789..7de4d39ad5 100644 --- a/cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Transaction/Id.hs +++ b/cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Transaction/Id.hs @@ -21,3 +21,10 @@ hprop_golden_shelley_transaction_id = propertyOnce $ do output1 <- execCardanoCLI baseCmd goldenFile1 <- H.note "test/cardano-cli-golden/files/golden/shelley/transaction-id-flagless" H.diffVsGoldenFile output1 goldenFile1 + + output2 <- execCardanoCLI $ baseCmd ++ ["--output-text"] + H.diffVsGoldenFile output2 goldenFile1 + + output3 <- execCardanoCLI $ baseCmd ++ ["--output-json"] + goldenFile2 <- H.note "test/cardano-cli-golden/files/golden/shelley/transaction-id.json" + H.diffVsGoldenFile output3 goldenFile2 diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/shelley/transaction-id.json b/cardano-cli/test/cardano-cli-golden/files/golden/shelley/transaction-id.json new file mode 100644 index 0000000000..f0f491c300 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/shelley/transaction-id.json @@ -0,0 +1 @@ +{"txhash":"345b88a38821ce10b1a19c41cbc9b48a55c26001cee4a7d2ad83fd9ddb157667"}