Refactor tests to use ONOSSetup.checkOnosNodes function
Change-Id: Ibb3f20ed64eec356d0303621c654fdc8db82ea0c
diff --git a/TestON/tests/HA/HAfullNetPartition/HAfullNetPartition.py b/TestON/tests/HA/HAfullNetPartition/HAfullNetPartition.py
index 9020edc..0aba15f 100644
--- a/TestON/tests/HA/HAfullNetPartition/HAfullNetPartition.py
+++ b/TestON/tests/HA/HAfullNetPartition/HAfullNetPartition.py
@@ -346,23 +346,7 @@
main.Cluster.runningNodes[ node ].active = True
main.Cluster.reset()
- main.step( "Checking ONOS nodes" )
- nodeResults = utilities.retry( main.Cluster.nodesCheck,
- False,
- sleep=15,
- attempts=50 )
-
- utilities.assert_equals( expect=True, actual=nodeResults,
- onpass="Nodes check successful",
- onfail="Nodes check NOT successful" )
-
- if not nodeResults:
- for ctrl in main.Cluster.active():
- main.log.debug( "{} components not ACTIVE: \n{}".format(
- ctrl.name,
- ctrl.CLI.sendline( "onos:scr-list | grep -v ACTIVE" ) ) )
- main.log.error( "Failed to start ONOS, stopping test" )
- main.cleanAndExit()
+ main.testSetUp.checkOnosNodes( main.Cluster )
def CASE7( self, main ):
"""