User VM's can test in TestON
Change-Id: I9dd60b757d16b0c09e9311ccf4a6616f129a0cb0
diff --git a/TestON/tests/SAMP/SAMPstartTemplate_3node/SAMPstartTemplate_3node.topo b/TestON/tests/SAMP/SAMPstartTemplate_3node/SAMPstartTemplate_3node.topo
index 612b658..163dfd2 100755
--- a/TestON/tests/SAMP/SAMPstartTemplate_3node/SAMPstartTemplate_3node.topo
+++ b/TestON/tests/SAMP/SAMPstartTemplate_3node/SAMPstartTemplate_3node.topo
@@ -15,8 +15,8 @@
<COMPONENTS>
<cluster_name></cluster_name> # Used as a prefix for cluster components. Defaults to 'ONOS'
<diff_clihost></diff_clihost> # if it has different host other than localhost for CLI. True or empty. OC# will be used if True.
- <karaf_username></karaf_username>
- <karaf_password></karaf_password>
+ <karaf_username>sdn</karaf_username>
+ <karaf_password>rocks</karaf_password>
<web_user></web_user>
<web_pass></web_pass>
<rest_port></rest_port>
diff --git a/TestON/tests/dependencies/Cluster.py b/TestON/tests/dependencies/Cluster.py
index 2e16a45..b905381 100644
--- a/TestON/tests/dependencies/Cluster.py
+++ b/TestON/tests/dependencies/Cluster.py
@@ -746,8 +746,15 @@
Returns True if it successfully checked
"""
results = True
- self.command( "getAddress", specificDriver=2 )
nodesOutput = self.command( "nodes", specificDriver=2 )
+ if None in nodesOutput:
+ return False
+ try:
+ self.command( "getAddress", specificDriver=2 )
+ except ( ValueError, TypeError ):
+ main.log.error( "Error parsing summary output" )
+ currentResult = False
+ return currentResult
ips = sorted( self.getIps( activeOnly=True ) )
for i in nodesOutput:
try: