adding TestON
diff --git a/TestON/tests/FvtTest/.svn/entries b/TestON/tests/FvtTest/.svn/entries
new file mode 100644
index 0000000..b51d7ac
--- /dev/null
+++ b/TestON/tests/FvtTest/.svn/entries
@@ -0,0 +1,171 @@
+9
+
+dir
+65
+svn://192.168.150.61/OpenFlow/tests/PoxTest
+svn://192.168.150.61/OpenFlow
+
+
+
+2012-12-05T18:46:42.405397Z
+65
+paxterra
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+8b1d8634-a80c-44fc-ab7b-cc53e6f68013
+
+
+
+
+
+
+0
+
+PoxTest.params
+file
+
+
+
+
+2012-12-05T16:08:24.000000Z
+e79bef68fc6f00acd8bf2028a7e2cab0
+2012-12-05T18:46:42.405397Z
+65
+paxterra
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+326
+
+PoxTest.py
+file
+
+
+
+
+2012-12-05T16:08:24.000000Z
+4a2b2aaeb2a2eeed4b70f1adebca7231
+2012-12-05T18:46:42.405397Z
+65
+paxterra
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+637
+
+PoxTest.topo
+file
+
+
+
+
+2012-12-05T16:08:24.000000Z
+827eb99b5a13c33d371ffc6aca740464
+2012-12-05T18:46:42.405397Z
+65
+paxterra
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+805
+
+__init__.py
+file
+
+
+
+
+2012-12-05T16:08:24.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2012-12-05T18:46:42.405397Z
+65
+paxterra
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+0
+
diff --git a/TestON/tests/FvtTest/.svn/format b/TestON/tests/FvtTest/.svn/format
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/TestON/tests/FvtTest/.svn/format
@@ -0,0 +1 @@
+9
diff --git a/TestON/tests/FvtTest/.svn/text-base/PoxTest.params.svn-base b/TestON/tests/FvtTest/.svn/text-base/PoxTest.params.svn-base
new file mode 100644
index 0000000..bbadcaa
--- /dev/null
+++ b/TestON/tests/FvtTest/.svn/text-base/PoxTest.params.svn-base
@@ -0,0 +1,12 @@
+[PARAMS]
+ 'testcases' = '[1]'
+ 'mail' = 'anilkumar.s@paxterrasolutions.com,paxweb@paxterrasolutions.com'
+ #'log_dir' = '/home/user/Desktop/openflow_logs/'
+ [[CASE1]]
+ 'destination' = 'h2'
+ 'src' = 'h2'
+ 'target'= 'h3'
+ 'controller' = 'c1'
+ [[[STEP1]]]
+ 'host' = 'h2'
+
diff --git a/TestON/tests/FvtTest/.svn/text-base/PoxTest.py.svn-base b/TestON/tests/FvtTest/.svn/text-base/PoxTest.py.svn-base
new file mode 100644
index 0000000..49e63af
--- /dev/null
+++ b/TestON/tests/FvtTest/.svn/text-base/PoxTest.py.svn-base
@@ -0,0 +1,15 @@
+class PoxTest:
+ '''
+ Testing Basic Pox Functionalities
+ '''
+ def __init__(self):
+ self.default = ""
+
+ def CASE1(self,main):
+ main.case("Checking the control flow of POX")
+ main.step("Checking the host reachability using pingHost ")
+
+ result = main.Mininet1.pingHost(src=main.params['CASE1']['src'],
+ target=main.params['CASE1']['target'],
+ controller=main.params['CASE1']['controller'])
+ utilities.assert_equals(expect=main.TRUE,actual=result,onpass="Ping executed successfully",onfail="Ping Failed")
diff --git a/TestON/tests/FvtTest/.svn/text-base/PoxTest.topo.svn-base b/TestON/tests/FvtTest/.svn/text-base/PoxTest.topo.svn-base
new file mode 100644
index 0000000..b4560cb
--- /dev/null
+++ b/TestON/tests/FvtTest/.svn/text-base/PoxTest.topo.svn-base
@@ -0,0 +1,25 @@
+[TOPOLOGY]
+
+ [[COMPONENT]]
+ [[["Mininet1"]]]
+ 'host' = '192.168.56.101'
+ 'user' = 'openflow'
+ 'password' = 'openflow'
+ 'type' = "Mininet"
+ [[[["COMPONENTS"]]]]
+ # Specify the Option for mininet
+ 'topo' = 'single'
+ 'topocount' = '3'
+ 'switch' = 'ovsk'
+ 'controller' = 'remote'
+ [[["POX2"]]]
+ 'host' = '192.168.56.101'
+ 'user' = 'openflow'
+ 'password' = 'openflow'
+ 'type' = 'POX'
+ 'test_target' = '1'
+ 'no-cli' = '1' #or '0' if want to run in cli mode
+ [[[["COMPONENTS"]]]]
+ 'pox_lib_location' = "/home/openflow/pox/"
+ [[[[["samples.of_tutorial"]]]]]
+
diff --git a/TestON/tests/FvtTest/.svn/text-base/__init__.py.svn-base b/TestON/tests/FvtTest/.svn/text-base/__init__.py.svn-base
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/TestON/tests/FvtTest/.svn/text-base/__init__.py.svn-base
diff --git a/TestON/tests/FvtTest/FvtTest.ospk b/TestON/tests/FvtTest/FvtTest.ospk
new file mode 100644
index 0000000..36af331
--- /dev/null
+++ b/TestON/tests/FvtTest/FvtTest.ospk
@@ -0,0 +1,20 @@
+CASE 1
+
+ NAME "Checking FVT"
+ STEP "Checking the FVT"
+ STORE ON FVT DO simplePacket USING "SRC_MAC_FOR_CTL0_0" IN pkt
+ in_port = 3
+ STORE ON FVT DO genPacketIn USING in_port AS in_port, pkt AS pkt IN msg
+ snd_list = ["switch", 0, msg]
+ exp_list = [["controller", 0, msg]]
+ STORE ON FVT DO ofmsgSndCmp USING snd_list , exp_list , xid_ignore AS True, hdr_only AS True IN res
+ ASSERT res EQUALS True ONPASS "Received expected message" ONFAIL "Received unexpected message"
+
+ COMMENT "Packet_in for controller1"
+ STORE ON FVT DO simplePacket USING "SRC_MAC_FOR_CTL1_0" IN pkt
+ in_port = 3
+ STORE ON FVT DO genPacketIn USING in_port AS in_port, pkt AS pkt IN msg
+ snd_list = ["switch", 0, msg]
+ exp_list = [["controller", 1, msg]]
+ STORE ON FVT DO ofmsgSndCmp USING snd_list , exp_list , xid_ignore AS True IN res
+ ASSERT res EQUALS True ONPASS "Received expected message" ONFAIL "Received unexpected message"
diff --git a/TestON/tests/FvtTest/FvtTest.params b/TestON/tests/FvtTest/FvtTest.params
new file mode 100644
index 0000000..dfff20e
--- /dev/null
+++ b/TestON/tests/FvtTest/FvtTest.params
@@ -0,0 +1,13 @@
+<PARAMS>
+ <testcases> [1]</testcases>
+ <mail> anil4haart@gmail.com,paxweb@paxterrasolutions.com</mail>
+ <CASE1>
+ <destination> h2</destination>
+ <src>h2</src>
+ <target> h3 </target>
+ <controller> c1 </controller>
+ <STEP1>
+ <host> h2</host>
+ </STEP1>
+ </CASE1>
+</PARAMS>
diff --git a/TestON/tests/FvtTest/FvtTest.py b/TestON/tests/FvtTest/FvtTest.py
new file mode 100644
index 0000000..678cdaa
--- /dev/null
+++ b/TestON/tests/FvtTest/FvtTest.py
@@ -0,0 +1,40 @@
+'''
+
+ * TestON is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+
+ * TestON is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+
+'''
+class FvtTest :
+
+ def __init__(self) :
+ self.default = ''
+
+ def CASE1(self,main) :
+
+
+ main.case("Checking FVT")
+ main.step("Checking the FVT")
+ pkt = main.FVT.simplePacket("SRC_MAC_FOR_CTL0_0")
+ in_port = 3
+ msg = main.FVT.genPacketIn(in_port=in_port, pkt=pkt)
+ snd_list = ["switch", 0, msg]
+ exp_list = [["controller", 0, msg]]
+ res = main.FVT.ofmsgSndCmp(snd_list , exp_list , xid_ignore=True, hdr_only=True)
+ utilities.assert_equals(expect=True,actual=res,onpass="Received expected message",onfail="Received unexpected message")
+
+ #Packet_in for controller1
+ pkt = main.FVT.simplePacket("SRC_MAC_FOR_CTL1_0")
+ in_port = 3
+ msg = main.FVT.genPacketIn(in_port=in_port, pkt=pkt)
+ snd_list = ["switch", 0, msg]
+ exp_list = [["controller", 1, msg]]
+ res = main.FVT.ofmsgSndCmp(snd_list , exp_list , xid_ignore=True)
+ utilities.assert_equals(expect=True,actual=res,onpass="Received expected message",onfail="Received unexpected message")
diff --git a/TestON/tests/FvtTest/FvtTest.topo b/TestON/tests/FvtTest/FvtTest.topo
new file mode 100644
index 0000000..aa440e4
--- /dev/null
+++ b/TestON/tests/FvtTest/FvtTest.topo
@@ -0,0 +1,13 @@
+<TOPOLOGY>
+
+ <COMPONENT>
+ <FVT>
+ <host>192.168.56.101</host>
+ <user> openflow</user>
+ <password> openflow</password>
+ <type>FvtApiDriver</type>
+ <COMPONENTS>
+ </COMPONENTS>
+ </FVT>
+ </COMPONENT>
+</TOPOLOGY>
diff --git a/TestON/tests/FvtTest/__init__.py b/TestON/tests/FvtTest/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/TestON/tests/FvtTest/__init__.py