Add sleep after balance masters in intent reroute tests
Change-Id: Iab9b63b81e1cb9ab90f71fd0671c2c01f2296da3
diff --git a/TestON/tests/SCPF/SCPFintentRerouteLat/SCPFintentRerouteLat.params b/TestON/tests/SCPF/SCPFintentRerouteLat/SCPFintentRerouteLat.params
index 9dfa7a4..246a177 100644
--- a/TestON/tests/SCPF/SCPFintentRerouteLat/SCPFintentRerouteLat.params
+++ b/TestON/tests/SCPF/SCPFintentRerouteLat/SCPFintentRerouteLat.params
@@ -34,6 +34,7 @@
<SLEEP>
<startup>10</startup>
+ <setmaster>5</setmaster>
<install>10</install>
<verify>3</verify>
<reroute>3</reroute>
diff --git a/TestON/tests/SCPF/SCPFintentRerouteLat/SCPFintentRerouteLat.py b/TestON/tests/SCPF/SCPFintentRerouteLat/SCPFintentRerouteLat.py
index fa861cf..eaffabc 100644
--- a/TestON/tests/SCPF/SCPFintentRerouteLat/SCPFintentRerouteLat.py
+++ b/TestON/tests/SCPF/SCPFintentRerouteLat/SCPFintentRerouteLat.py
@@ -74,6 +74,7 @@
main.startUpSleep = int(main.params['SLEEP']['startup'])
main.installSleep = int(main.params['SLEEP']['install'])
main.verifySleep = int(main.params['SLEEP']['verify'])
+ main.setMasterSleep = int(main.params['SLEEP']['setmaster'])
main.verifyAttempts = int(main.params['ATTEMPTS']['verify'])
main.sampleSize = int(main.params['TEST']['sampleSize'])
main.warmUp = int(main.params['TEST']['warmUp'])
@@ -209,6 +210,7 @@
if len(main.ONOSip) > 1:
main.CLIs[0].deviceRole("null:0000000000000003", main.ONOSip[0])
main.CLIs[0].deviceRole("null:0000000000000004", main.ONOSip[0])
+ time.sleep( main.setMasterSleep )
def CASE2( self, main ):
import time
diff --git a/TestON/tests/SCPF/SCPFintentRerouteLatWithFlowObj/SCPFintentRerouteLatWithFlowObj.params b/TestON/tests/SCPF/SCPFintentRerouteLatWithFlowObj/SCPFintentRerouteLatWithFlowObj.params
index 68c0a37..32735bc 100644
--- a/TestON/tests/SCPF/SCPFintentRerouteLatWithFlowObj/SCPFintentRerouteLatWithFlowObj.params
+++ b/TestON/tests/SCPF/SCPFintentRerouteLatWithFlowObj/SCPFintentRerouteLatWithFlowObj.params
@@ -35,6 +35,7 @@
<SLEEP>
<startup>10</startup>
<install>10</install>
+ <setmaster>5</setmaster>
<verify>5</verify>
<reroute>3</reroute>
# timeout for pexpect
diff --git a/TestON/tests/SCPF/SCPFintentRerouteLatWithFlowObj/SCPFintentRerouteLatWithFlowObj.py b/TestON/tests/SCPF/SCPFintentRerouteLatWithFlowObj/SCPFintentRerouteLatWithFlowObj.py
index 3ed5e27..70b8a1e 100644
--- a/TestON/tests/SCPF/SCPFintentRerouteLatWithFlowObj/SCPFintentRerouteLatWithFlowObj.py
+++ b/TestON/tests/SCPF/SCPFintentRerouteLatWithFlowObj/SCPFintentRerouteLatWithFlowObj.py
@@ -74,6 +74,7 @@
main.timeout = int(main.params['SLEEP']['timeout'])
main.startUpSleep = int(main.params['SLEEP']['startup'])
main.installSleep = int(main.params['SLEEP']['install'])
+ main.setMasterSleep = int(main.params['SLEEP']['setmaster'])
main.verifySleep = int(main.params['SLEEP']['verify'])
main.verifyAttempts = int(main.params['ATTEMPTS']['verify'])
main.sampleSize = int(main.params['TEST']['sampleSize'])
@@ -212,6 +213,7 @@
if len(main.ONOSip) > 1:
main.CLIs[0].deviceRole("null:0000000000000003", main.ONOSip[0])
main.CLIs[0].deviceRole("null:0000000000000004", main.ONOSip[0])
+ time.sleep( main.setMasterSleep )
def CASE2( self, main ):
import time