[ https://issues.apache.org/jira/browse/QPID-1291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12634186#action_12634186 ]
whenry edited comment on QPID-1291 at 9/24/08 9:09 AM: -------------------------------------------------------------- Python diff on qpid/python/tests_0-10/management.py See https://issues.apache.org/jira/browse/QPID-1290 for the code that is being tested. was (Author: whenry): Python diff on qpid/python/tests_0-10/management.py > Test queueMoveMessages on the management interface. > --------------------------------------------------- > > Key: QPID-1291 > URL: https://issues.apache.org/jira/browse/QPID-1291 > Project: Qpid > Issue Type: Test > Components: Python Test Suite > Affects Versions: M4 > Reporter: William Henry > Attachments: test_movemessages_diff.txt > > > This test will test the queueMoveMessages and therefore also test > Broker::queueMoveMessages and Queue::move > It sets up a source queue and loads 20 messages on the queue using the direct > exchange, It then sets up a destination queue. > It then tests that moving 10 messages from src-queue to dest-queue was > successful by testing the return status of the call and the message depths of > the respective queues - both should be 10. > It then uses the '0' qty to see if that will result in ALL remaining messages > being moved to dest-queue (expected behavior). It checks status and message > depths. > It then tests to see if a bad source queue name results in a Invalid > Parameter status value 4) and then the same again for a bad destination > queue. > It then sees if passing a number larger than the current queue depth will > result in all the messages being moved. IT does this by using the quantity 40 > when attempting to move messages back from the destination queue to the > source queue. It again tests the queue depth. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.