Minor fixes for Fabric failure/recovery tests
- Print packets when sequence number diff > 1
- Save all fields to the db
Change-Id: I1c78069a90eda80e0abe75a880609cd1f6749138
diff --git a/TestON/tests/USECASE/SegmentRouting/SRStaging/SReNBLeafSpinePortstateFailure/SReNBLeafSpinePortstateFailure.py b/TestON/tests/USECASE/SegmentRouting/SRStaging/SReNBLeafSpinePortstateFailure/SReNBLeafSpinePortstateFailure.py
index 32fb9ab..b678557 100644
--- a/TestON/tests/USECASE/SegmentRouting/SRStaging/SReNBLeafSpinePortstateFailure/SReNBLeafSpinePortstateFailure.py
+++ b/TestON/tests/USECASE/SegmentRouting/SRStaging/SReNBLeafSpinePortstateFailure/SReNBLeafSpinePortstateFailure.py
@@ -123,4 +123,4 @@
dbHeaders.append( "%s-%s-to-%s" % ( shortDesc, srcComponent.shortName, dstComponent.shortName ) )
main.log.warn( json.dumps( main.downtimeResults, indent=4, sort_keys=True ) )
- main.funcs.cleanup( main, headerOrder=dbHeaders )
+ main.funcs.cleanup( main )
diff --git a/TestON/tests/USECASE/SegmentRouting/SRStaging/SRupstreamLeafSpinePortstateFailure/SRupstreamLeafSpinePortstateFailure.py b/TestON/tests/USECASE/SegmentRouting/SRStaging/SRupstreamLeafSpinePortstateFailure/SRupstreamLeafSpinePortstateFailure.py
index 09db839..4f62d2d 100644
--- a/TestON/tests/USECASE/SegmentRouting/SRStaging/SRupstreamLeafSpinePortstateFailure/SRupstreamLeafSpinePortstateFailure.py
+++ b/TestON/tests/USECASE/SegmentRouting/SRStaging/SRupstreamLeafSpinePortstateFailure/SRupstreamLeafSpinePortstateFailure.py
@@ -123,4 +123,4 @@
dbHeaders.append( "%s-%s-to-%s" % ( shortDesc, srcComponent.shortName, dstComponent.shortName ) )
main.log.warn( json.dumps( main.downtimeResults, indent=4, sort_keys=True ) )
- main.funcs.cleanup( main, headerOrder=dbHeaders )
+ main.funcs.cleanup( main )
diff --git a/TestON/tests/USECASE/SegmentRouting/SRStaging/dependencies/SRStagingTest.py b/TestON/tests/USECASE/SegmentRouting/SRStaging/dependencies/SRStagingTest.py
index cda1077..2f83ac7 100644
--- a/TestON/tests/USECASE/SegmentRouting/SRStaging/dependencies/SRStagingTest.py
+++ b/TestON/tests/USECASE/SegmentRouting/SRStaging/dependencies/SRStagingTest.py
@@ -1011,7 +1011,7 @@
if prevSeq:
diff = curSeq - prevSeq
if diff > 1:
- if DEBUGGING or diff > 5:
+ if DEBUGGING or diff > 1:
main.log.debug( "\nCurrent Packet: %s\n vs.\nPrevious Packet: %s" % ( packet, prevPacket ) )
duration = curTime - prevTime
millis = float( duration.days ) * 24 * 60 * 60 * 1000