Refactor SFC testcase
authorGeorge Paraskevopoulos <geopar@intracom-telecom.com>
Mon, 29 Aug 2016 08:13:17 +0000 (11:13 +0300)
committerJose Lausuch <jose.lausuch@ericsson.com>
Wed, 31 Aug 2016 16:04:39 +0000 (16:04 +0000)
commit563a540585768d900d70ce79f2a871a9d1fab03e
tree1451029ee04a9643c2152cf8b1aaed80aaa9848e
parent8bfe49ee5a6d7b93b3ce7fb6aae0072acb1171d9
Refactor SFC testcase

- Change the way the test checks if the vxlan_tool has started.
  Now the vxlan_tool is detected even if another python process is up.
- Log the exceptions in the vxlan_tool check block. The exceptions that
  occur are not destructive for the testcase but it's better to be
  visible.
- Add a 60 seconds sleep before the testcase starts to give plenty of
  time to ODL to add the correct flows.
- Move the testcase success/fail check blocks inside the try blocks.
  The checks are performed on the stdout variable which is in scope
  only inside the try blocks.

Change-Id: I49dec176fb83117e9896ac1d19e8a5bd95e3d7cf
Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
testcases/features/sfc/sfc.py