From 749d5fcaa4fbae15e7e7dde922325f755f54397e Mon Sep 17 00:00:00 2001 From: HuabingZhao Date: Fri, 8 Sep 2017 10:23:44 +0800 Subject: Add msb integration test script Add test script for rest service discovery and access Issue-Id: MSB-61 Change-Id: I038769463004a2b4688efd7297b7d45d2b8be627 Signed-off-by: HuabingZhao --- test/csit/tests/msb/rest-service-discovery/__init__.robot | 2 ++ test/csit/tests/msb/rest-service-discovery/test1.robot | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 test/csit/tests/msb/rest-service-discovery/__init__.robot create mode 100644 test/csit/tests/msb/rest-service-discovery/test1.robot (limited to 'test/csit/tests/msb/rest-service-discovery') diff --git a/test/csit/tests/msb/rest-service-discovery/__init__.robot b/test/csit/tests/msb/rest-service-discovery/__init__.robot new file mode 100644 index 000000000..efd2221f2 --- /dev/null +++ b/test/csit/tests/msb/rest-service-discovery/__init__.robot @@ -0,0 +1,2 @@ +*** Settings *** +Documentation Microservices Service Bus - Messag Broker diff --git a/test/csit/tests/msb/rest-service-discovery/test1.robot b/test/csit/tests/msb/rest-service-discovery/test1.robot new file mode 100644 index 000000000..bb48d3fdc --- /dev/null +++ b/test/csit/tests/msb/rest-service-discovery/test1.robot @@ -0,0 +1,14 @@ +*** Settings *** +Library Collections +Library requests + +*** Test Cases *** +Messag Broker Test + [Documentation] Check if the test service enpoint can be get from MSB + ${result} = get http://${MSB_DISCOVERY_IP}:10081/api/microservices/v1/services/test/version/v1 + Should Be Equal ${result.status_code} ${200} + ${json} = Set Variable ${result.json()} + ${serviceName} = Get From Dictionary ${json} serviceName + ${protocol} = Get From Dictionary ${json} protocol + Should Be Equal ${serviceName} test + Should Be Equal ${protocol} REST \ No newline at end of file -- cgit 1.2.3-korg