@@ -57,11 +57,9 @@ Start MCP Servers
5757 Sleep 5s
5858
5959Parse MCP JSON Output
60- [Arguments] ${stdout }
60+ [Arguments] ${input }
6161 ${parsed } = Evaluate
62- ... import json
63- ... json.loads(args[0])
64- ... ${stdout }
62+ ... json.loads('''${input } ''') json
6563 RETURN ${parsed }
6664
6765*** Settings ***
@@ -258,12 +256,15 @@ MCP HTTPS Server JSON DTO Verification
258256 Should Be Equal As Integers ${greet.rc } 0
259257 Should Contain ${greet.stdout } Hi JSON TEST
260258
261- # ${srvinfo}= Run Process ${STACKQL_MCP_CLIENT_EXE} exec \-\-client\-type\=http \-\-url\=https://127.0.0.1:9004 \-\-client\-cfg { "apply_tls_globally": true, "insecure_skip_verify": true, "ca_file": "test/server/mtls/credentials/pg_server_cert.pem", "promote_leaf_to_ca": true } \-\-exec.action server_info
262- # Should Be Equal As Integers ${srvinfo.rc} 0
263- # ${srvinfo_obj}= Parse MCP JSON Output ${srvinfo.stdout}
264- # Dictionary Should Contain Key ${srvinfo_obj} name
265- # Dictionary Should Contain Key ${srvinfo_obj} info
266- # Dictionary Should Contain Key ${srvinfo_obj} is_read_only
259+ ${srvinfo } = Run Process ${STACKQL_MCP_CLIENT_EXE } exec \-\-client\-type\=http \-\-url\=https://127.0.0.1:9004 \-\-client\-cfg { "apply_tls_globally": true, "insecure_skip_verify": true, "ca_file": "test/server/mtls/credentials/pg_server_cert.pem", "promote_leaf_to_ca": true } \-\-exec.action server_info
260+ ... stdout=${CURDIR }${/ } tmp${/ } MCP-Get-Server-Info-Json.txt
261+ ... stderr=${CURDIR }${/ } tmp${/ } MCP-Get-Server-Info-Json-stderr.txt
262+ Should Be Equal As Integers ${srvinfo.rc } 0
263+ Log response = ${srvinfo.stdout }
264+ ${srvinfo_obj } = Parse MCP JSON Output ${srvinfo.stdout }
265+ Dictionary Should Contain Key ${srvinfo_obj } name
266+ Dictionary Should Contain Key ${srvinfo_obj } info
267+ Dictionary Should Contain Key ${srvinfo_obj } read_only
267268
268269 # ${dbident}= Run Process ${STACKQL_MCP_CLIENT_EXE} exec \-\-client\-type\=http \-\-url\=https://127.0.0.1:9004 \-\-client\-cfg { "apply_tls_globally": true, "insecure_skip_verify": true, "ca_file": "test/server/mtls/credentials/pg_server_cert.pem", "promote_leaf_to_ca": true } \-\-exec.action db_identity
269270 # Should Be Equal As Integers ${dbident.rc} 0
0 commit comments