adding TestON
diff --git a/TestON/tests/CassandraCheck/.OnosSanity.py.swp b/TestON/tests/CassandraCheck/.OnosSanity.py.swp
new file mode 100644
index 0000000..ac9cdc3
--- /dev/null
+++ b/TestON/tests/CassandraCheck/.OnosSanity.py.swp
Binary files differ
diff --git a/TestON/tests/CassandraCheck/CassandraCheck.params b/TestON/tests/CassandraCheck/CassandraCheck.params
new file mode 100644
index 0000000..ef3c9ba
--- /dev/null
+++ b/TestON/tests/CassandraCheck/CassandraCheck.params
@@ -0,0 +1,9 @@
+<PARAMS>
+ <testcases>3</testcases>
+ <Iterations>2</Iterations>
+ <WaitTime>20</WaitTime>
+ <TargetTime>20</TargetTime>
+ <RestIP>10.128.4.11</RestIP>
+ <NR_Switches>405</NR_Switches>
+ <NR_Links>802</NR_Links>
+</PARAMS>
diff --git a/TestON/tests/CassandraCheck/CassandraCheck.py b/TestON/tests/CassandraCheck/CassandraCheck.py
new file mode 100644
index 0000000..a05662c
--- /dev/null
+++ b/TestON/tests/CassandraCheck/CassandraCheck.py
@@ -0,0 +1,71 @@
+
+class CassandraCheck:
+
+ def __init__(self) :
+ self.default = ''
+
+ def CASE1(self,main) :
+ '''
+ First case is to simply check if ONOS, ZK, and Cassandra are all running properly.
+ If ONOS if not running properly, it will restart ONOS once before continuing.
+ It will then check if the ONOS has a view of all the switches and links as defined in the params file.
+ The test will only pass if ONOS is running properly, and has a full view of all topology elements.
+ '''
+ import time
+ main.case("Checking if the startup was clean...")
+ main.step("Testing startup Zookeeper")
+ data = main.Zookeeper1.isup()
+ utilities.assert_equals(expect=main.TRUE,actual=data,onpass="Zookeeper is up!",onfail="Zookeeper is down...")
+ main.step("Testing startup Cassandra")
+ data = main.Cassandra1.isup()
+ utilities.assert_equals(expect=main.TRUE,actual=data,onpass="Cassandra is up!",onfail="Cassandra is down...")
+ main.step("Testing startup ONOS")
+ main.ONOS1.start()
+ main.ONOS2.start()
+ main.ONOS3.start()
+ main.ONOS4.start()
+ main.ONOS5.start()
+ main.ONOS6.start()
+ main.ONOS7.start()
+ main.ONOS8.start()
+ data = main.ONOS1.isup()
+ if data == main.FALSE:
+ main.log.info("Something is funny... restarting ONOS")
+ main.ONOS1.stop()
+ time.sleep(3)
+ main.ONOS1.start()
+ time.sleep(5)
+ data = main.ONOS1.isup()
+ #topoview = main.ONOS1.check_status(main.params['RestIP'],main.params['NR_Switches'],main.params['NR_Links'])
+ topoview = main.TRUE
+ if topoview == main.TRUE & data == main.TRUE :
+ data = main.TRUE
+ else:
+ data = main.FALSE
+
+ utilities.assert_equals(expect=main.TRUE,actual=data,onpass="ONOS is up and running and has full view of topology",onfail="ONOS didn't start or has fragmented view of topology...")
+
+ def CASE2(self,main) :
+ '''
+ Second case is to stress adding and removing flows to see if it can crash any cassandras
+ '''
+ import time
+ main.case("Adding and deleting flows")
+ main.step("Adding 1008 flows")
+ #main.ONOS1.add_flow("~/flowdef_files/flowdef_3node_1008.txt")
+ main.ONOS1.add_flow("~/flowdef_files/flowdef_3node_1008.txt")
+ time.sleep(30)
+ main.ONOS1.delete_flow("all")
+ main.ONOS1.check_for_no_exceptions()
+ test = main.Cassandra1.isup()
+ utilities.assert_equals(expect=main.TRUE,actual=test,onpass="Cassandra is still good",onfail="Something broke on Cassandra")
+
+ def CASE3(self,main) :
+ '''
+ Merely testing if a specific driver call works
+ '''
+ main.case("Checking for exceptions")
+ main.step("Step 1")
+ test = main.ONOS1.check_for_no_exceptions()
+ utilities.assert_equals(expect=main.TRUE,actual=test)
+
diff --git a/TestON/tests/CassandraCheck/CassandraCheck.topo b/TestON/tests/CassandraCheck/CassandraCheck.topo
new file mode 100644
index 0000000..41e5854
--- /dev/null
+++ b/TestON/tests/CassandraCheck/CassandraCheck.topo
@@ -0,0 +1,133 @@
+<TOPOLOGY>
+ <COMPONENT>
+
+ <ONOS1>
+ <host>10.128.4.11</host>
+ <user>admin</user>
+ <password>onos_test</password>
+ <type>OnosCliDriver</type>
+ <connect_order>4</connect_order>
+ </ONOS1>
+ <ONOS2>
+ <host>10.128.4.12</host>
+ <user>admin</user>
+ <password>onos_test</password>
+ <type>OnosCliDriver</type>
+ <connect_order>5</connect_order>
+ </ONOS2>
+ <ONOS3>
+ <host>10.128.4.13</host>
+ <user>admin</user>
+ <password>onos_test</password>
+ <type>OnosCliDriver</type>
+ <connect_order>6</connect_order>
+ </ONOS3>
+ <ONOS4>
+ <host>10.128.4.14</host>
+ <user>admin</user>
+ <password>onos_test</password>
+ <type>OnosCliDriver</type>
+ <connect_order>7</connect_order>
+ </ONOS4>
+ <ONOS5>
+ <host>10.128.4.15</host>
+ <user>admin</user>
+ <password>onos_test</password>
+ <type>OnosCliDriver</type>
+ <connect_order>8</connect_order>
+ </ONOS5>
+ <ONOS6>
+ <host>10.128.4.16</host>
+ <user>admin</user>
+ <password>onos_test</password>
+ <type>OnosCliDriver</type>
+ <connect_order>9</connect_order>
+ </ONOS6>
+ <ONOS7>
+ <host>10.128.4.17</host>
+ <user>admin</user>
+ <password>onos_test</password>
+ <type>OnosCliDriver</type>
+ <connect_order>10</connect_order>
+ </ONOS7>
+ <ONOS8>
+ <host>10.128.4.18</host>
+ <user>admin</user>
+ <password>onos_test</password>
+ <type>OnosCliDriver</type>
+ <connect_order>11</connect_order>
+ </ONOS8>
+
+
+ <Zookeeper1>
+ <host>10.128.4.11</host>
+ <user>admin</user>
+ <password>onos_test</password>
+ <type>ZookeeperCliDriver</type>
+ <connect_order>2</connect_order>
+ <COMPONENTS>
+ </COMPONENTS>
+ </Zookeeper1>
+
+ <Cassandra1>
+ <host>10.128.4.11</host>
+ <user>admin</user>
+ <password>onos_test</password>
+ <type>CassandraCliDriver</type>
+ <connect_order>3</connect_order>
+ <COMPONENTS>
+ </COMPONENTS>
+ </Cassandra1>
+
+ <Mininet2>
+ <host>10.128.6.2</host>
+ <user>miniuser</user>
+ <password>onos_test</password>
+ <type>RemoteMininetDriver</type>
+ <connect_order>4</connect_order>
+ </Mininet2>
+ <Mininet3>
+ <host>10.128.6.3</host>
+ <user>miniuser</user>
+ <password>onos_test</password>
+ <type>RemoteMininetDriver</type>
+ <connect_order>4</connect_order>
+ </Mininet3>
+ <Mininet4>
+ <host>10.128.6.4</host>
+ <user>miniuser</user>
+ <password>onos_test</password>
+ <type>RemoteMininetDriver</type>
+ <connect_order>4</connect_order>
+ </Mininet4>
+ <Mininet5>
+ <host>10.128.6.5</host>
+ <user>miniuser</user>
+ <password>onos_test</password>
+ <type>RemoteMininetDriver</type>
+ <connect_order>4</connect_order>
+ </Mininet5>
+ <Mininet6>
+ <host>10.128.6.6</host>
+ <user>miniuser</user>
+ <password>onos_test</password>
+ <type>RemoteMininetDriver</type>
+ <connect_order>4</connect_order>
+ </Mininet6>
+ <Mininet7>
+ <host>10.128.6.7</host>
+ <user>miniuser</user>
+ <password>onos_test</password>
+ <type>RemoteMininetDriver</type>
+ <connect_order>4</connect_order>
+ </Mininet7>
+ <Mininet8>
+ <host>10.128.6.8</host>
+ <user>miniuser</user>
+ <password>onos_test</password>
+ <type>RemoteMininetDriver</type>
+ <connect_order>4</connect_order>
+ </Mininet8>
+
+ </COMPONENT>
+</TOPOLOGY>
diff --git a/TestON/tests/CassandraCheck/__init__.py b/TestON/tests/CassandraCheck/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/TestON/tests/CassandraCheck/__init__.py