admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 1 | ''' |
| 2 | |
| 3 | * TestON is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by |
| 5 | * the Free Software Foundation, either version 2 of the License, or |
| 6 | * (at your option) any later version. |
| 7 | |
| 8 | * TestON is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | |
| 13 | |
| 14 | ''' |
| 15 | |
| 16 | class PoxTest : |
| 17 | |
| 18 | def __init__(self) : |
| 19 | self.default = '' |
| 20 | |
| 21 | def CASE1(self,main) : |
| 22 | |
| 23 | main.case("Checking the control flow of POX") |
| 24 | main.step("Checking the host reachability using pingHost") |
| 25 | main.Mininet1.pingHost(src=main.params['CASE1']['src'], target=main.params['CASE1']['target'], controller=main.params['CASE1']['controller']) |
| 26 | result = main.last_result |
| 27 | utilities.assert_equals(expect=main.TRUE,actual=result,onpass="Ping executed successfully",onfail="Ping failed") |
| 28 | |
| 29 | |