HuabingZhao | bde9a07 | 2017-09-06 20:01:57 +0800 | [diff] [blame^] | 1 | *** Settings *** |
| 2 | Library Collections |
| 3 | Library requests |
| 4 | Library Telnet |
| 5 | |
| 6 | *** Test Cases *** |
| 7 | Messag 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} |