Skip to content

Commit

Permalink
Adapt golden tests: consistent vote anchor options
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhammann committed Oct 11, 2023
1 parent 666490e commit 5f41283
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ hprop_golden_governance_governance_vote_create =
, "--governance-action-index", "5"
, "--drep-verification-key-file", vkeyFile
, "--out-file", voteFile
, "--vote-anchor-url", "https://example.com/vote"
, "--vote-anchor-text", "I don't like this proposal, because it's bad. I'm not going to tell you why I voted yes nonetheless."
, "--vote-url", "https://example.com/vote"
, "--vote-text", "I don't like this proposal, because it's bad. I'm not going to tell you why I voted yes nonetheless."
]

H.diffFileVsGoldenFile voteFile voteGold
Expand Down
7 changes: 4 additions & 3 deletions cardano-cli/test/cardano-cli-golden/files/golden/help.cli
Original file line number Diff line number Diff line change
Expand Up @@ -6496,9 +6496,10 @@ Usage: cardano-cli conway governance vote create (--yes | --no | --abstain)
| --cc-hot-key-hash STRING
)
--out-file FILE
[--vote-anchor-url TEXT
( --vote-anchor-text TEXT
| --vote-anchor-file FILE
[--vote-url TEXT
( --vote-text TEXT
| --vote-file FILE
| --vote-hash HASH
)]

Vote creation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ Usage: cardano-cli conway governance vote create (--yes | --no | --abstain)
| --cc-hot-key-hash STRING
)
--out-file FILE
[--vote-anchor-url TEXT
( --vote-anchor-text TEXT
| --vote-anchor-file FILE
[--vote-url TEXT
( --vote-text TEXT
| --vote-file FILE
| --vote-hash HASH
)]

Vote creation.
Expand Down Expand Up @@ -45,7 +46,8 @@ Available options:
Filepath of the Consitutional Committee hot key.
--cc-hot-key-hash STRING Constitutional Committee key hash (hex-encoded).
--out-file FILE Output filepath of the vote.
--vote-anchor-url TEXT vote anchor URL
--vote-anchor-text TEXT Input vote anchor contents as UTF-8 encoded text.
--vote-anchor-file FILE Input vote anchor contents as a text file.
--vote-url TEXT vote anchor URL
--vote-text TEXT Input vote as UTF-8 encoded text.
--vote-file FILE Input vote as a text file.
--vote-hash HASH Vote anchor data hash.
-h,--help Show this help text

0 comments on commit 5f41283

Please sign in to comment.