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 Aug 8, 2024
1 parent f327e2e commit 00a96fb
Show file tree
Hide file tree
Showing 19 changed files with 287 additions and 29 deletions.
58 changes: 29 additions & 29 deletions cardano-cli/test/cardano-cli-golden/files/golden/help.cli
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,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 @@ -1648,7 +1648,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 @@ -2852,7 +2852,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 @@ -2958,7 +2958,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 @@ -4179,7 +4179,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 @@ -5543,7 +5543,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 @@ -7164,7 +7164,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 @@ -8805,7 +8805,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 @@ -10015,7 +10015,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 @@ -10100,6 +10100,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 (CBOR encoded)

Usage: cardano-cli legacy query ledger-state --socket-path SOCKET_PATH
[--cardano-mode
[--epoch-slots SLOTS]]
Expand All @@ -10111,16 +10121,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 @@ -11333,7 +11333,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 @@ -11413,14 +11413,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 @@ -11429,7 +11421,15 @@ Usage: cardano-cli query ledger-peer-snapshot --socket-path SOCKET_PATH
)
--out-file FILE

Dump the current ledger peer snapshot
Dump the current ledger peer snapshot (CBOR encoded)

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]]
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 @@ -39,6 +40,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
Loading

0 comments on commit 00a96fb

Please sign in to comment.