blob: 758c2a5a980ccd0c276b1e3989005cf940212e1a [file] [log] [blame]
adminbae64d82013-08-01 10:50:15 -07001
2class OnosTest :
3
4 def __init__(self) :
5 self.default = ''
6
7 def CASE1(self,main) :
8
9 main.case("Testing the ONOS sanity")
10 main.step("Testing the ONOS sanity")
11
12 Zookeeper1_status = main.Zookeeper1.status()
13 main.log.info(Zookeeper1_status)
14
15 Cassandra1_status = main.Cassandra1.status()
16 main.log.info(Cassandra1_status)
17
18 ONOS1_status = main.ONOS1.status()
19 if ONOS1_status:
20 main.log.info("ONOS is up")
21 else:
22 main.log.info("ONOS is down")
23
24 ONOS1_rest_status = main.ONOS1.rest_status()
25 main.log.info(ONOS1_rest_status)
26
27 Response = main.ONOSRESTAPI1.execute()
28 main.log.info(Response)
29
30 main.ONOS1.stop()
31 main.ONOS1.rest_stop()
32 main.Cassandra1.stop()
33 main.Zookeeper1.stop()