qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gmur...@apache.org
Subject qpid-dispatch git commit: DISPATCH-911 - Added explicit validation for new metric presettledDeliveries
Date Tue, 10 Apr 2018 14:09:10 GMT
Repository: qpid-dispatch
Updated Branches:
  refs/heads/master a2acb1724 -> 940dd41f4


DISPATCH-911 - Added explicit validation for new metric presettledDeliveries


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/940dd41f
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/940dd41f
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/940dd41f

Branch: refs/heads/master
Commit: 940dd41f4b7dfd541a2d998ad011c216ed4700e5
Parents: a2acb17
Author: Fernando Giorgetti <fgiorget@redhat.com>
Authored: Tue Apr 10 10:52:14 2018 -0300
Committer: Ganesh Murthy <gmurthy@redhat.com>
Committed: Tue Apr 10 10:08:53 2018 -0400

----------------------------------------------------------------------
 tests/system_tests_one_router.py | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/940dd41f/tests/system_tests_one_router.py
----------------------------------------------------------------------
diff --git a/tests/system_tests_one_router.py b/tests/system_tests_one_router.py
index 8d8cdb0..6dd0de4 100644
--- a/tests/system_tests_one_router.py
+++ b/tests/system_tests_one_router.py
@@ -2673,8 +2673,13 @@ class PresettledOverflowTest(MessagingHandler):
                             self.error = "Expected 250 dropped presettled deliveries but
got " + str(result[16])
                         else:
                             outs = local_node.query(type='org.apache.qpid.dispatch.routerStats')
+                            pos_presett = outs.attribute_names.index("presettledDeliveries")
                             pos = outs.attribute_names.index("droppedPresettledDeliveries")
                             results = outs.results[0]
+                            # Enforce presettledDeliveries metric is updated
+                            if results[pos_presett] < 500:
+                                self.error = "When querying router, expected 500 presettled
" \
+                                             "deliveries but got " + str(results[pos_presett])
                             # There is 250 from a previous test
                             if results[pos] < 500:
                                 self.error = "When querying router, expected 500 dropped
presettled " \


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message