Skip to content

Commit 1b58628

Browse files
committed
Add a test of get_info on an endpoint other than chain_ro; the test fails as expeced due to a bug
1 parent ff1d96c commit 1b58628

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/plugin_http_api_test.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,13 @@ def test_ChainApi(self) :
128128
command = "get_info"
129129
endpoint=self.endpoint("chain_ro")
130130

131-
# get_info without parameter
131+
# get_info without parameter with default chain_ro endpoint
132132
ret_json = self.nodeos.processUrllibRequest(resource, command, endpoint=endpoint)
133133
self.assertIn("server_version", ret_json["payload"])
134+
# get_info without parameter with an endpoint (catelog) other than chain_ro
135+
# get_info should work on any end point
136+
ret_json = self.nodeos.processUrllibRequest(resource, command, endpoint=self.endpoint("producer_ro"))
137+
self.assertIn("server_version", ret_json["payload"])
134138
# get_info with empty content parameter
135139
ret_json = self.nodeos.processUrllibRequest(resource, command, self.empty_content_dict, endpoint=endpoint)
136140
self.assertIn("server_version", ret_json["payload"])

0 commit comments

Comments
 (0)