File tree 1 file changed +20
-2
lines changed
1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 8
8
9
9
from cardano_node_tests .tests import common
10
10
from cardano_node_tests .utils import helpers
11
+ from cardano_node_tests .utils .versions import VERSIONS
11
12
12
13
LOGGER = logging .getLogger (__name__ )
13
14
14
15
15
- PROTOCOL_STATE_KEYS = ("csLabNonce" , "csProtocol" , "csTickn" )
16
+ PROTOCOL_STATE_KEYS_ALONZO = ("chainDepState" , "lastSlot" )
17
+ PROTOCOL_STATE_KEYS_ALONZO_DEP_STATE = ("csLabNonce" , "csProtocol" , "csTickn" )
18
+ PROTOCOL_STATE_KEYS = (
19
+ "candidateNonce" ,
20
+ "epochNonce" ,
21
+ "evolvingNonce" ,
22
+ "labNonce" ,
23
+ "lastEpochBlockNonce" ,
24
+ "lastSlot" ,
25
+ "oCertCounters" ,
26
+ )
16
27
PROTOCOL_PARAM_KEYS = (
17
28
"collateralPercentage" ,
18
29
"costModels" ,
@@ -64,7 +75,14 @@ def test_protocol_state_keys(self, cluster: clusterlib.ClusterLib):
64
75
if query_currently_broken :
65
76
pytest .xfail ("`query protocol-state` is currently broken - cardano-node issue #3883" )
66
77
67
- assert tuple (sorted (protocol_state )) == PROTOCOL_STATE_KEYS
78
+ if VERSIONS .cluster_era == VERSIONS .ALONZO :
79
+ assert tuple (sorted (protocol_state )) == PROTOCOL_STATE_KEYS_ALONZO
80
+ assert (
81
+ tuple (sorted (protocol_state ["chainDepState" ]))
82
+ == PROTOCOL_STATE_KEYS_ALONZO_DEP_STATE
83
+ )
84
+ elif VERSIONS .cluster_era > VERSIONS .ALONZO :
85
+ assert tuple (sorted (protocol_state )) == PROTOCOL_STATE_KEYS
68
86
69
87
@allure .link (helpers .get_vcs_link ())
70
88
@pytest .mark .xfail
You can’t perform that action at this time.
0 commit comments