blob: 28850a4a90ec92fc874f929b3dcf60770d73c138 [file] [log] [blame]
adminbae64d82013-08-01 10:50:15 -07001
2class MininetTest :
3
4 def __init__(self) :
5 self.default = ''
6
7 def CASE1(self,main) :
8
9 main.case("Testing the configuration of the host")
10 main.step("Host IP Checking using checkIP")
11 result = main.Mininet1.checkIP(main.params['CASE1']['destination'])
12 main.step("Verifying the result")
13 utilities.assert_equals(expect=main.TRUE,actual=result,onpass="Host h2 IP address configured",onfail="Host h2 IP address didn't configured")
14
15 def CASE2(self,main) :
16
17 main.case("Testing Reachabilty of all the hosts")
18 main.step("Checking Hosts reachability by using pingall")
19 result = main.Mininet1.pingall()
20 main.step("Verifying the result")
21 for source in main.params['SET1']['begin']:
22 main.log.info(str(main.params['SET1']['begin'][source]))
23 utilities.assert_equals(expect=main.TRUE,actual=result,onpass="All hosts are reacchable",onfail="Hosts are not reachable")