blob: e84c7e1a3ec154928331558d7d409fa01eed8c03 [file] [log] [blame]
HuabingZhaobde9a072017-09-06 20:01:57 +08001*** Settings ***
2Library Collections
3Library requests
4
5*** Test Cases ***
6Messag 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