blob: 58e5471b7c30cb1394bd64f6e9e934e532fad007 [file] [log] [blame]
HuabingZhaobde9a072017-09-06 20:01:57 +08001*** Settings ***
2Library Collections
3Library requests
4Library Telnet
5
6*** Test Cases ***
7Messag Broker Test2
8 [Documentation] Check if ActiveMQ listening port can be accessed
9 ${result} = get http://${MSB_DISCOVERY_IP}:10081/api/microservices/v1/services/ActiveMQ/version/null
10 Should Be Equal ${result.status_code} ${200}
11 ${json} = Set Variable ${result.json()}
12 ${activeMQ_ip} = Set Variable ${json["nodes"][0]["ip"]}
13 ${activeMQ_port} = Set Variable ${json["nodes"][0]["port"]}
14
15 Open Connection ${activeMQ_ip} port=${activeMQ_port}