aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/msb/rest-service-discovery
diff options
context:
space:
mode:
authorHuabingZhao <zhao.huabing@zte.com.cn>2017-09-08 10:23:44 +0800
committerHuabingZhao <zhao.huabing@zte.com.cn>2017-09-08 10:23:55 +0800
commit749d5fcaa4fbae15e7e7dde922325f755f54397e (patch)
tree3f05d496edd16d10b11a46fc5572544b5abcfa5a /test/csit/tests/msb/rest-service-discovery
parente9830799c584a540491f836e16939768b71dc473 (diff)
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 <zhao.huabing@zte.com.cn>
Diffstat (limited to 'test/csit/tests/msb/rest-service-discovery')
-rw-r--r--test/csit/tests/msb/rest-service-discovery/__init__.robot2
-rw-r--r--test/csit/tests/msb/rest-service-discovery/test1.robot14
2 files changed, 16 insertions, 0 deletions
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