From e9cc6a51a3ab3d0b6eae485b034e16b476fa8f0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Thu, 3 Oct 2024 14:41:05 +0200 Subject: [PATCH] Adapt golden files --- .../test/cardano-cli-golden/files/golden/help.cli | 11 ++++++++++- .../cardano-cli-golden/files/golden/help/debug.cli | 8 +++++++- .../golden/help/debug_check-node-configuration.cli | 12 ++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/debug_check-node-configuration.cli diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli index f783c44d4c..f434f95e35 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli @@ -10203,7 +10203,11 @@ Usage: cardano-cli ping [-c|--count COUNT] Ping a cardano node either using node-to-node or node-to-client protocol. It negotiates a handshake and keeps sending keep alive messages. -Usage: cardano-cli debug (log-epoch-state | transaction) +Usage: cardano-cli debug + ( log-epoch-state + | check-node-configuration + | transaction + ) Debug commands @@ -10215,6 +10219,11 @@ Usage: cardano-cli debug log-epoch-state --socket-path SOCKET_PATH and log the epoch state to a file. The log file format is line delimited JSON. The command will not terminate. +Usage: cardano-cli debug check-node-configuration --node-configuration-file FILEPATH + [--fix] + + Check hashes and paths of genesis files in the given node configuration file. + Usage: cardano-cli debug transaction view Transaction commands diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/debug.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/debug.cli index 7f6cdf7153..08dc78c128 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/debug.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/debug.cli @@ -1,4 +1,8 @@ -Usage: cardano-cli debug (log-epoch-state | transaction) +Usage: cardano-cli debug + ( log-epoch-state + | check-node-configuration + | transaction + ) Debug commands @@ -10,4 +14,6 @@ Available commands: connect to a local node and log the epoch state to a file. The log file format is line delimited JSON. The command will not terminate. + check-node-configuration Check hashes and paths of genesis files in the given + node configuration file. transaction Transaction commands diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/debug_check-node-configuration.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/debug_check-node-configuration.cli new file mode 100644 index 0000000000..ecddf4b100 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/debug_check-node-configuration.cli @@ -0,0 +1,12 @@ +Usage: cardano-cli debug check-node-configuration --node-configuration-file FILEPATH + [--fix] + + Check hashes and paths of genesis files in the given node configuration file. + +Available options: + --node-configuration-file FILEPATH + Input filepath of the node configuration file. + --fix Modify the input file in place, fixing wrong genesis + hashes (if any). This may change the file's + formatting. + -h,--help Show this help text