Some changes for deldb
diff --git a/TestON/tests/RRCOnosSanity4nodesJ/RRCOnosSanity4nodesJ.params b/TestON/tests/RRCOnosSanity4nodesJ/RRCOnosSanity4nodesJ.params
index 3f0c13a..5471d4e 100644
--- a/TestON/tests/RRCOnosSanity4nodesJ/RRCOnosSanity4nodesJ.params
+++ b/TestON/tests/RRCOnosSanity4nodesJ/RRCOnosSanity4nodesJ.params
@@ -1,5 +1,5 @@
<PARAMS>
- <testcases>1,2,21,31,4,41,5,6,7,4,5,6,7</testcases>
+ <testcases>1,2,21,31,4,41,5,6,7,4,5,6,7,66</testcases>
<FLOWDEF>~/flowdef_files/Center_Triangle/flowdef_20.txt</FLOWDEF>
<CASE1>
<destination>h6</destination>
diff --git a/TestON/tests/RRCOnosSanity4nodesJ/RRCOnosSanity4nodesJ.py b/TestON/tests/RRCOnosSanity4nodesJ/RRCOnosSanity4nodesJ.py
index 8f64372..a5af4a4 100644
--- a/TestON/tests/RRCOnosSanity4nodesJ/RRCOnosSanity4nodesJ.py
+++ b/TestON/tests/RRCOnosSanity4nodesJ/RRCOnosSanity4nodesJ.py
@@ -28,14 +28,11 @@
main.Zookeeper2.start()
main.Zookeeper3.start()
main.Zookeeper4.start()
- main.ONOS1.handle.sendline("~/ONOS/onos.sh rc deldb")
- main.ONOS1.handle.sendline("y")
- main.ONOS2.handle.sendline("~/ONOS/onos.sh rc deldb")
- main.ONOS2.handle.sendline("y")
- main.ONOS3.handle.sendline("~/ONOS/onos.sh rc deldb")
- main.ONOS3.handle.sendline("y")
- main.ONOS4.handle.sendline("~/ONOS/onos.sh rc deldb")
- main.ONOS4.handle.sendline("y")
+ time.sleep(3)
+ main.RamCloud1.del_db()
+ main.RamCloud2.del_db()
+ main.RamCloud3.del_db()
+ main.RamCloud4.del_db()
for i in range(2):
uptodate = main.ONOS1.git_pull()
main.ONOS2.git_pull()
@@ -591,3 +588,20 @@
main.log.report("\tPING TEST FAIL")
utilities.assert_equals(expect=main.TRUE,actual=result,onpass="NO PACKET LOSS, HOST IS REACHABLE",onfail="PACKET LOST, HOST IS NOT REACHABLE")
+
+ def CASE66(self, main):
+ main.log.report("Checking ONOS logs for exceptions")
+ check1 = main.ONOS1.check_exceptions()
+ main.log.report("Exceptions in ONOS1 logs: \n" + check1)
+ check2 = main.ONOS2.check_exceptions()
+ main.log.report("Exceptions in ONOS2 logs: \n" + check2)
+ check3 = main.ONOS3.check_exceptions()
+ main.log.report("Exceptions in ONOS3 logs: \n" + check3)
+ check4 = main.ONOS4.check_exceptions()
+ main.log.report("Exceptions in ONOS4 logs: \n" + check4)
+ result = main.FALSE
+ if (check1 or check2 or check3 or check4):
+ result = main.TRUE
+ utilities.assert_equals(expect=main.TRUE,actual=result,onpass="No Exceptions found in the logs",onfail="Exceptions found")
+
+