HuabingZhao | bde9a07 | 2017-09-06 20:01:57 +0800 | [diff] [blame^] | 1 | *** Settings *** |
| 2 | Library Collections |
| 3 | Library requests |
| 4 | |
| 5 | *** Test Cases *** |
| 6 | Messag Broker Test1 |
| 7 | [Documentation] Check if ActiveMQ index page can be accessed |
| 8 | ${result} = get http://${MSB_DISCOVERY_IP}:10081/api/microservices/v1/services/ActiveMQ/version/null |
| 9 | Should Be Equal ${result.status_code} ${200} |
| 10 | ${json} = Set Variable ${result.json()} |
| 11 | ${activeMQ_ip} = Set Variable ${json["nodes"][0]["ip"]} |
| 12 | ${activeMQ_port} = Set Variable ${json["nodes"][0]["port"]} |
| 13 | |
| 14 | ${result} = get http://${activeMQ_ip}:8161 |
| 15 | Should Be Equal ${result.status_code} ${200} |
| 16 | |