From 218dc39f369faae0be09bffbc5ac2a9e030459f9 Mon Sep 17 00:00:00 2001 From: Martin Kourim Date: Sat, 25 Jun 2022 22:43:11 +0200 Subject: [PATCH] `query protocol-state` is still broken See https://github.com/input-output-hk/cardano-node/issues/3883 --- cardano_node_tests/tests/test_protocol.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cardano_node_tests/tests/test_protocol.py b/cardano_node_tests/tests/test_protocol.py index e32130e12..f2725a155 100644 --- a/cardano_node_tests/tests/test_protocol.py +++ b/cardano_node_tests/tests/test_protocol.py @@ -56,7 +56,18 @@ class TestProtocol: def test_protocol_state_keys(self, cluster: clusterlib.ClusterLib): """Check output of `query protocol-state`.""" common.get_test_id(cluster) - protocol_state = cluster.get_protocol_state() + + # TODO: the query is currently broken + query_currently_broken = False + try: + protocol_state = cluster.get_protocol_state() + except clusterlib.CLIError as err: + if "currentlyBroken" not in str(err): + raise + query_currently_broken = True + if query_currently_broken: + pytest.xfail("`query protocol-state` is currently broken - cardano-node issue #3883") + assert tuple(sorted(protocol_state)) == PROTOCOL_STATE_KEYS @allure.link(helpers.get_vcs_link())