summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2017-09-14 13:51:00 -0700
committerGary Wu <gary.i.wu@huawei.com>2017-09-14 13:51:00 -0700
commit2ca2b9f6f36b8a1698ce162abac53a5cb3c2856e (patch)
tree3ff1b902c1c5a5fbba3e5d7daf15867a95141988
parenta96b4bf5b917166b78e72ad504e718e905313d84 (diff)
Add return checks and logging for docker functions
Change-Id: I7cf2bf9397006034b155557bf4d4b155a5626a7a Issue-ID: INT-200 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
-rw-r--r--test/csit/tests/integration/vCPE/test1.robot11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/csit/tests/integration/vCPE/test1.robot b/test/csit/tests/integration/vCPE/test1.robot
index d9a9baf95..01a14e62f 100644
--- a/test/csit/tests/integration/vCPE/test1.robot
+++ b/test/csit/tests/integration/vCPE/test1.robot
@@ -17,15 +17,24 @@ SO ServiceInstance health check
Run Docker
[Arguments] ${image} ${name} ${parameters}=${EMPTY}
${result}= Run Process docker run --name ${name} ${parameters} -d ${image} shell=True
- Log all output: ${result.stdout}
+ Should Be Equal As Integers ${result.rc} 0
+ Log ${result.stdout}
${result}= Run Process docker inspect --format '{{ .NetworkSettings.IPAddress }}' ${name} shell=True
+ Should Be Equal As Integers ${result.rc} 0
+ Log ${result.stdout}
[Return] ${result.stdout}
Kill Docker
[Arguments] ${name}
${result}= Run Process docker logs ${name} shell=True
+ Should Be Equal As Integers ${result.rc} 0
+ Log ${result.stdout}
${result}= Run Process docker kill ${name} shell=True
+ Should Be Equal As Integers ${result.rc} 0
+ Log ${result.stdout}
${result}= Run Process docker rm ${name} shell=True
+ Should Be Equal As Integers ${result.rc} 0
+ Log ${result.stdout}
CheckUrl
[Arguments] ${url}