Initial tests for Transactional Maps
Work towards [ONOS-2108]
- ONOS cli driver functions for Transactional Maps
- Test steps to add and get using Transactional Maps for both
partitioned and in-memory maps added to the HA Tests
- minor refactoring of an exception handling block in teston.py
Still to come:
- Test values after restarts
- Induce failure during transactions( need additional supoort in
ONOS )
Change-Id: Ia5e8d7459ef554b4191b27275e8d9797a6346748
diff --git a/TestON/core/teston.py b/TestON/core/teston.py
index ae6fc4e..c2cb118 100644
--- a/TestON/core/teston.py
+++ b/TestON/core/teston.py
@@ -39,7 +39,7 @@
global path, drivers_path, core_path, tests_path,logs_path
location = os.path.abspath( os.path.dirname( __file__ ) )
path = re.sub( "(core|bin)$", "", location )
-drivers_path = path+"drivers/"
+drivers_path = path+"drivers"
core_path = path+"core"
tests_path = path+"tests"
logs_path = path+"logs/"
@@ -527,9 +527,8 @@
try :
import json
response_dict = json.loads(response)
- except Exception, e:
- self.log.exception( e )
- self.log.error("Json Parser is unable to parse the string")
+ except Exception:
+ self.log.exception( "Json Parser is unable to parse the string" )
return response_dict
elif ini_match :
self.log.info(" Response is in 'INI' format and Converting to '"+return_format+"' format")