Skip to content

Commit

Permalink
Recreated queries for golden tests
Browse files Browse the repository at this point in the history
  • Loading branch information
crocodile-dentist committed Jun 4, 2024
1 parent eaaa6a1 commit 846fbcb
Show file tree
Hide file tree
Showing 19 changed files with 286 additions and 28 deletions.
56 changes: 28 additions & 28 deletions cardano-cli/test/cardano-cli-golden/files/golden/help.cli
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ Usage: cardano-cli shelley node issue-op-cert

Issue a node operational certificate

Usage: cardano-cli shelley query
Usage: cardano-cli shelley query
( protocol-parameters
| tip
| stake-pools
Expand Down Expand Up @@ -1647,7 +1647,7 @@ Usage: cardano-cli allegra node issue-op-cert

Issue a node operational certificate

Usage: cardano-cli allegra query
Usage: cardano-cli allegra query
( protocol-parameters
| tip
| stake-pools
Expand Down Expand Up @@ -2851,7 +2851,7 @@ Usage: cardano-cli mary node issue-op-cert

Issue a node operational certificate

Usage: cardano-cli mary query
Usage: cardano-cli mary query
( protocol-parameters
| tip
| stake-pools
Expand Down Expand Up @@ -2957,7 +2957,7 @@ Usage: cardano-cli mary query ledger-peer-snapshot --socket-path SOCKET_PATH
--out-file FILE

Dump the current snapshot of ledger peers

Usage: cardano-cli mary query protocol-state --socket-path SOCKET_PATH
[--cardano-mode
[--epoch-slots SLOTS]]
Expand Down Expand Up @@ -4178,7 +4178,7 @@ Usage: cardano-cli alonzo node issue-op-cert

Issue a node operational certificate

Usage: cardano-cli alonzo query
Usage: cardano-cli alonzo query
( protocol-parameters
| tip
| stake-pools
Expand Down Expand Up @@ -5542,7 +5542,7 @@ Usage: cardano-cli babbage node issue-op-cert

Issue a node operational certificate

Usage: cardano-cli babbage query
Usage: cardano-cli babbage query
( protocol-parameters
| tip
| stake-pools
Expand Down Expand Up @@ -7182,7 +7182,7 @@ Usage: cardano-cli conway node issue-op-cert

Issue a node operational certificate

Usage: cardano-cli conway query
Usage: cardano-cli conway query
( protocol-parameters
| tip
| stake-pools
Expand Down Expand Up @@ -8762,7 +8762,7 @@ Usage: cardano-cli latest node issue-op-cert

Issue a node operational certificate

Usage: cardano-cli latest query
Usage: cardano-cli latest query
( protocol-parameters
| tip
| stake-pools
Expand Down Expand Up @@ -9948,7 +9948,7 @@ Usage: cardano-cli legacy genesis hash --genesis FILE

Compute the hash of a genesis file

Usage: cardano-cli legacy query
Usage: cardano-cli legacy query
( protocol-parameters
| tip
| stake-pools
Expand Down Expand Up @@ -10033,6 +10033,16 @@ Usage: cardano-cli legacy query utxo --socket-path SOCKET_PATH

Get a portion of the current UTxO: by tx in, by address or the whole.

Usage: cardano-cli legacy query ledger-peer-snapshot --socket-path SOCKET_PATH
[--cardano-mode
[--epoch-slots SLOTS]]
( --mainnet
| --testnet-magic NATURAL
)
--out-file FILE

Dump the current ledger peer snapshot

Usage: cardano-cli legacy query ledger-state --socket-path SOCKET_PATH
[--cardano-mode
[--epoch-slots SLOTS]]
Expand All @@ -10044,16 +10054,6 @@ Usage: cardano-cli legacy query ledger-state --socket-path SOCKET_PATH
Dump the current ledger state of the node (Ledger.NewEpochState -- advanced
command)

Usage: cardano-cli legacy query ledger-peer-snapshot --socket-path SOCKET_PATH
[--cardano-mode
[--epoch-slots SLOTS]]
( --mainnet
| --testnet-magic NATURAL
)
--out-file FILE

Dump the current ledger peer snapshot

Usage: cardano-cli legacy query protocol-state --socket-path SOCKET_PATH
[--cardano-mode
[--epoch-slots SLOTS]]
Expand Down Expand Up @@ -11227,7 +11227,7 @@ Usage: cardano-cli genesis hash --genesis FILE

Compute the hash of a genesis file

Usage: cardano-cli query
Usage: cardano-cli query
( protocol-parameters
| tip
| stake-pools
Expand Down Expand Up @@ -11307,14 +11307,6 @@ Usage: cardano-cli query utxo --socket-path SOCKET_PATH

Get a portion of the current UTxO: by tx in, by address or the whole.

Usage: cardano-cli query ledger-state --socket-path SOCKET_PATH
[--cardano-mode [--epoch-slots SLOTS]]
(--mainnet | --testnet-magic NATURAL)
[--out-file FILE]

Dump the current ledger state of the node (Ledger.NewEpochState -- advanced
command)

Usage: cardano-cli query ledger-peer-snapshot --socket-path SOCKET_PATH
[--cardano-mode
[--epoch-slots SLOTS]]
Expand All @@ -11325,6 +11317,14 @@ Usage: cardano-cli query ledger-peer-snapshot --socket-path SOCKET_PATH

Dump the current ledger peer snapshot

Usage: cardano-cli query ledger-state --socket-path SOCKET_PATH
[--cardano-mode [--epoch-slots SLOTS]]
(--mainnet | --testnet-magic NATURAL)
[--out-file FILE]

Dump the current ledger state of the node (Ledger.NewEpochState -- advanced
command)

Usage: cardano-cli query protocol-state --socket-path SOCKET_PATH
[--cardano-mode [--epoch-slots SLOTS]]
(--mainnet | --testnet-magic NATURAL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Usage: cardano-cli allegra query
| stake-address-info
| utxo
| ledger-state
| ledger-peer-snapshot
| protocol-state
| stake-snapshot
| leadership-schedule
Expand Down Expand Up @@ -33,6 +34,7 @@ Available commands:
address or the whole.
ledger-state Dump the current ledger state of the node
(Ledger.NewEpochState -- advanced command)
ledger-peer-snapshot Dump the current snapshot of ledger peers
protocol-state Dump the current protocol state of the node
(Ledger.ChainDepState -- advanced command)
stake-snapshot Obtain the three stake snapshots for a pool, plus the
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Usage: cardano-cli allegra query ledger-peer-snapshot --socket-path SOCKET_PATH
[--cardano-mode
[--epoch-slots SLOTS]]
( --mainnet
| --testnet-magic NATURAL
)
--out-file FILE

Dump the current snapshot of ledger peers

Available options:
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--cardano-mode For talking to a node running in full Cardano mode
(default).
--epoch-slots SLOTS The number of slots per epoch for the Byron era.
(default: 21600)
--mainnet Use the mainnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--testnet-magic NATURAL Specify a testnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--out-file FILE The output file.
-h,--help Show this help text
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Usage: cardano-cli alonzo query
| stake-address-info
| utxo
| ledger-state
| ledger-peer-snapshot
| protocol-state
| stake-snapshot
| leadership-schedule
Expand Down Expand Up @@ -33,6 +34,7 @@ Available commands:
address or the whole.
ledger-state Dump the current ledger state of the node
(Ledger.NewEpochState -- advanced command)
ledger-peer-snapshot Dump the current snapshot of ledger peers
protocol-state Dump the current protocol state of the node
(Ledger.ChainDepState -- advanced command)
stake-snapshot Obtain the three stake snapshots for a pool, plus the
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Usage: cardano-cli alonzo query ledger-peer-snapshot --socket-path SOCKET_PATH
[--cardano-mode
[--epoch-slots SLOTS]]
( --mainnet
| --testnet-magic NATURAL
)
--out-file FILE

Dump the current snapshot of ledger peers

Available options:
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--cardano-mode For talking to a node running in full Cardano mode
(default).
--epoch-slots SLOTS The number of slots per epoch for the Byron era.
(default: 21600)
--mainnet Use the mainnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--testnet-magic NATURAL Specify a testnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--out-file FILE The output file.
-h,--help Show this help text
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Usage: cardano-cli babbage query
| stake-address-info
| utxo
| ledger-state
| ledger-peer-snapshot
| protocol-state
| stake-snapshot
| leadership-schedule
Expand Down Expand Up @@ -33,6 +34,7 @@ Available commands:
address or the whole.
ledger-state Dump the current ledger state of the node
(Ledger.NewEpochState -- advanced command)
ledger-peer-snapshot Dump the current snapshot of ledger peers
protocol-state Dump the current protocol state of the node
(Ledger.ChainDepState -- advanced command)
stake-snapshot Obtain the three stake snapshots for a pool, plus the
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Usage: cardano-cli babbage query ledger-peer-snapshot --socket-path SOCKET_PATH
[--cardano-mode
[--epoch-slots SLOTS]]
( --mainnet
| --testnet-magic NATURAL
)
--out-file FILE

Dump the current snapshot of ledger peers

Available options:
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--cardano-mode For talking to a node running in full Cardano mode
(default).
--epoch-slots SLOTS The number of slots per epoch for the Byron era.
(default: 21600)
--mainnet Use the mainnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--testnet-magic NATURAL Specify a testnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--out-file FILE The output file.
-h,--help Show this help text
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Usage: cardano-cli conway query
| stake-address-info
| utxo
| ledger-state
| ledger-peer-snapshot
| protocol-state
| stake-snapshot
| leadership-schedule
Expand Down Expand Up @@ -38,6 +39,7 @@ Available commands:
address or the whole.
ledger-state Dump the current ledger state of the node
(Ledger.NewEpochState -- advanced command)
ledger-peer-snapshot Dump the current snapshot of ledger peers
protocol-state Dump the current protocol state of the node
(Ledger.ChainDepState -- advanced command)
stake-snapshot Obtain the three stake snapshots for a pool, plus the
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Usage: cardano-cli conway query ledger-peer-snapshot --socket-path SOCKET_PATH
[--cardano-mode
[--epoch-slots SLOTS]]
( --mainnet
| --testnet-magic NATURAL
)
[ --volatile-tip
| --immutable-tip
]
--out-file FILE

Dump the current snapshot of ledger peers

Available options:
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--cardano-mode For talking to a node running in full Cardano mode
(default).
--epoch-slots SLOTS The number of slots per epoch for the Byron era.
(default: 21600)
--mainnet Use the mainnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--testnet-magic NATURAL Specify a testnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--volatile-tip Use the volatile tip as a target. (This is the
default)
--immutable-tip Use the immutable tip as a target.
--out-file FILE The output file.
-h,--help Show this help text
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Usage: cardano-cli latest query
| stake-address-info
| utxo
| ledger-state
| ledger-peer-snapshot
| protocol-state
| stake-snapshot
| leadership-schedule
Expand Down Expand Up @@ -33,6 +34,7 @@ Available commands:
address or the whole.
ledger-state Dump the current ledger state of the node
(Ledger.NewEpochState -- advanced command)
ledger-peer-snapshot Dump the current snapshot of ledger peers
protocol-state Dump the current protocol state of the node
(Ledger.ChainDepState -- advanced command)
stake-snapshot Obtain the three stake snapshots for a pool, plus the
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Usage: cardano-cli latest query ledger-peer-snapshot --socket-path SOCKET_PATH
[--cardano-mode
[--epoch-slots SLOTS]]
( --mainnet
| --testnet-magic NATURAL
)
--out-file FILE

Dump the current snapshot of ledger peers

Available options:
--socket-path SOCKET_PATH
Path to the node socket. This overrides the
CARDANO_NODE_SOCKET_PATH environment variable. The
argument is optional if CARDANO_NODE_SOCKET_PATH is
defined and mandatory otherwise.
--cardano-mode For talking to a node running in full Cardano mode
(default).
--epoch-slots SLOTS The number of slots per epoch for the Byron era.
(default: 21600)
--mainnet Use the mainnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--testnet-magic NATURAL Specify a testnet magic id. This overrides the
CARDANO_NODE_NETWORK_ID environment variable
--out-file FILE The output file.
-h,--help Show this help text
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Usage: cardano-cli legacy query
| stake-distribution
| stake-address-info
| utxo
| ledger-peer-snapshot
| ledger-state
| protocol-state
| stake-snapshot
Expand All @@ -30,6 +31,7 @@ Available commands:
filtered by stake address.
utxo Get a portion of the current UTxO: by tx in, by
address or the whole.
ledger-peer-snapshot Dump the current ledger peer snapshot
ledger-state Dump the current ledger state of the node
(Ledger.NewEpochState -- advanced command)
protocol-state Dump the current protocol state of the node
Expand Down
Loading

0 comments on commit 846fbcb

Please sign in to comment.