Skip to content

Commit

Permalink
Adapt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Dec 14, 2023
1 parent 02b338f commit 2e68ad1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ hprop_golden_conway_governance_action_view_update_committee_yaml =
actionView <- execCardanoCLI
[ "conway", "governance", "action", "view"
, "--action-file", actionFile
, "--output-format", "yaml"
, "--output-yaml"
]
H.diffVsGoldenFile actionView goldenActionViewFile

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ hprop_golden_governance_governance_vote_view_yaml =
voteViewGold <- H.note "test/cardano-cli-golden/files/golden/governance/vote/voteViewYAML"
voteView <- execCardanoCLI
[ "conway", "governance", "vote", "view"
, "--output-format", "yaml"
, "--output-yaml"
, "--vote-file", voteFile
]

Expand Down
12 changes: 6 additions & 6 deletions cardano-cli/test/cardano-cli-golden/Test/Golden/TxView.hs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ _hprop_golden_view_byron_yaml =
-- View transaction body
result <-
execCardanoCLI
["transaction", "view", "--tx-body-file", transactionBodyFile, "--output-format", "yaml"]
["transaction", "view", "--tx-body-file", transactionBodyFile, "--output-yaml"]
H.diffVsGoldenFile result "test/cardano-cli-golden/files/golden/byron/transaction-view.out"

-- TODO: Expose command to view byron tx files
Expand Down Expand Up @@ -147,7 +147,7 @@ hprop_golden_view_shelley_yaml = let
-- View transaction body
result <-
execCardanoCLI
["transaction", "view", "--tx-body-file", transactionBodyFile, "--yaml"]
["transaction", "view", "--tx-body-file", transactionBodyFile, "--output-yaml"]

H.diffVsGoldenFile result "test/cardano-cli-golden/files/golden/shelley/transaction-view.out"

Expand Down Expand Up @@ -178,7 +178,7 @@ hprop_golden_view_allegra_yaml =
-- View transaction body
result <-
execCardanoCLI
["transaction", "view", "--tx-body-file", transactionBodyFile, "--output-format", "yaml"]
["transaction", "view", "--tx-body-file", transactionBodyFile, "--output-yaml"]
H.diffVsGoldenFile result "test/cardano-cli-golden/files/golden/allegra/transaction-view.out"

hprop_golden_view_mary_yaml :: Property
Expand Down Expand Up @@ -245,7 +245,7 @@ hprop_golden_view_mary_yaml =
-- View transaction body
result <-
execCardanoCLI
["transaction", "view", "--tx-body-file", transactionBodyFile, "--yaml"]
["transaction", "view", "--tx-body-file", transactionBodyFile, "--output-yaml"]
H.diffVsGoldenFile result "test/cardano-cli-golden/files/golden/mary/transaction-view.out"

createAlonzoTxBody :: Maybe FilePath -> FilePath -> Integration ()
Expand Down Expand Up @@ -302,7 +302,7 @@ hprop_golden_view_alonzo_yaml =
-- View transaction body
result <-
execCardanoCLI
["transaction", "view", "--tx-body-file", transactionBodyFile, "--output-format", "yaml"]
["transaction", "view", "--tx-body-file", transactionBodyFile, "--output-yaml"]
H.diffVsGoldenFile result "test/cardano-cli-golden/files/golden/alonzo/transaction-view.out"

hprop_golden_view_alonzo_signed_yaml :: Property
Expand All @@ -328,6 +328,6 @@ hprop_golden_view_alonzo_signed_yaml =
-- View transaction body
result <-
execCardanoCLI
["transaction", "view", "--tx-file", transactionFile, "--yaml"]
["transaction", "view", "--tx-file", transactionFile, "--output-yaml"]

H.diffVsGoldenFile result (golden </> "signed-transaction-view.out")

0 comments on commit 2e68ad1

Please sign in to comment.