3030from blazingmq .dev .it .process .client import Client
3131import json
3232import multiprocessing .pool
33+ import pytest
34+
35+ pytest .skip (
36+ "Skip admin command routing tests until admin command routing is re-enabled" ,
37+ allow_module_level = True ,
38+ )
3339
3440
35- def test_primary_rerouting (multi_node : Cluster , domain_urls : tc . DomainUrls ) -> None :
41+ def test_primary_rerouting (multi_node : Cluster ) -> None :
3642 """
3743 Test: commands intended only for primary node are automatically routed to
3844 primary node and response it sent back when executed from non-primary
@@ -49,11 +55,6 @@ def test_primary_rerouting(multi_node: Cluster, domain_urls: tc.DomainUrls) -> N
4955 - CLUSTERS CLUSTER <name> STORAGE PARTITION <partitionId> ENABLE/DISABLE
5056 """
5157
52- # TODO Skip admin command routing tests until admin command routing is re-enabled
53- return
54-
55- du = domain_urls
56-
5758 admin = AdminClient ()
5859
5960 # find the first node which is not a known leader
@@ -115,7 +116,7 @@ def test_primary_rerouting(multi_node: Cluster, domain_urls: tc.DomainUrls) -> N
115116 admin .stop ()
116117
117118
118- def test_cluster_rerouting (multi_node : Cluster , domain_urls : tc . DomainUrls ) -> None :
119+ def test_cluster_rerouting (multi_node : Cluster ) -> None :
119120 """
120121 Test: commands intended for cluster are routed to all nodes in the cluster
121122 regardless of the node the command is initially sent to
@@ -133,11 +134,6 @@ def test_cluster_rerouting(multi_node: Cluster, domain_urls: tc.DomainUrls) -> N
133134 - CLUSTERS CLUSTER <name> STATE ELECTOR GET_ALL <param> <value>
134135 """
135136
136- # TODO Skip admin command routing tests until admin command routing is re-enabled
137- return
138-
139- du = domain_urls
140-
141137 admin = AdminClient ()
142138
143139 node = multi_node .nodes ()[0 ]
@@ -190,7 +186,7 @@ def test_cluster_rerouting(multi_node: Cluster, domain_urls: tc.DomainUrls) -> N
190186 admin .stop ()
191187
192188
193- def test_multi_response_encoding (multi_node : Cluster , domain_urls : tc . DomainUrls ):
189+ def test_multi_response_encoding (multi_node : Cluster ):
194190 """
195191 Test: JSON encoding options work with multiple responses (when routing to
196192 multiple nodes)
@@ -206,11 +202,6 @@ def test_multi_response_encoding(multi_node: Cluster, domain_urls: tc.DomainUrls
206202
207203 """
208204
209- # TODO Skip admin command routing tests until admin command routing is re-enabled
210- return
211-
212- du = domain_urls
213-
214205 def is_compact (json_str : str ) -> bool :
215206 return " " not in json_str
216207
@@ -277,8 +268,6 @@ def test_concurrently_routed_commands(multi_node: Cluster, domain_urls: tc.Domai
277268 Stage 2: Issue command in parallel
278269 Stage 3: Expect
279270 """
280- # TODO Skip admin command routing tests until admin command routing is re-enabled
281- return
282271
283272 # Connect a client to each node in the cluster
284273 clients = []
0 commit comments