add test case 4 for Internet2 deployment
Change-Id: I0f43a90b0358e7726aa2242f2dd84cb9315dbb11
diff --git a/TestON/tests/USECASE_SdnipI2/USECASE_SdnipI2.py b/TestON/tests/USECASE_SdnipI2/USECASE_SdnipI2.py
index 740304f..d7b8802 100644
--- a/TestON/tests/USECASE_SdnipI2/USECASE_SdnipI2.py
+++ b/TestON/tests/USECASE_SdnipI2/USECASE_SdnipI2.py
@@ -127,11 +127,17 @@
'''
ping test from 3 bgp peers to BGP speaker
'''
+
+ m2SIntentsNumberActual = main.ONOScli.m2SIntentInstalledNumber()
+ main.log.info( "MultiPointToSinglePoint intent number actual is:" )
+ main.log.info( m2SIntentsNumberActual )
+
main.case( "This case is to check ping between BGP peers and speakers" )
result1 = main.Mininet.pingHost( src = "speaker1", target = "peer64514" )
result2 = main.Mininet.pingHost( src = "speaker1", target = "peer64515" )
result3 = main.Mininet.pingHost( src = "speaker1", target = "peer64516" )
+
caseResult = result1 and result2 and result3
utilities.assert_equals( expect = main.TRUE, actual = caseResult,
onpass = "Speaker1 ping peers successful",
@@ -141,6 +147,7 @@
main.cleanup()
main.exit()
+
def CASE2( self, main ):
'''
point-to-point intents test for each BGP peer and BGP speaker pair
@@ -210,3 +217,21 @@
onfail = "***MultiPointToSinglePoint Intent Num in SDN-IP is \
wrong!***" )
+
+ def CASE4( self, main ):
+ '''
+ Ping test in data plane for each route
+ '''
+ main.case( "This case is to check ping for each route" )
+ result1 = main.Mininet.pingHost( src = "host64514", target = "host64515" )
+ result2 = main.Mininet.pingHost( src = "host64515", target = "host64516" )
+ result3 = main.Mininet.pingHost( src = "host64514", target = "host64516" )
+
+ caseResult = result1 and result2 and result3
+ utilities.assert_equals( expect = main.TRUE, actual = caseResult,
+ onpass = "Ping test for each route successful",
+ onfail = "Ping test for each route NOT successful" )
+
+ if caseResult == main.FALSE:
+ main.cleanup()
+ main.exit()