Matt Broadstone
4a0fa8bf9c
fix flakey qos test
...
the qos autotest required initially for us to wait for messages to
be added to the queue before running the test, and this was flakey
at best. these changes make it much more dependable
2014-07-28 12:58:37 -04:00
Matt Broadstone
fa132d7c72
guarantee frames are written
...
wait for the END frame to be written, guaranteeing that data will
be written when you think it has been.
2014-07-28 11:36:52 -04:00
Matt Broadstone
5c6cd23e10
move property definition/access to Message
...
MessageProperties is currently defined in Frame::Content, which makes it
cumbersome to use when working directly with a Message itself. I attempted
to make this easier by using typedefs, but it's become pretty obvious that
it belongs in the Message class itself.
2014-07-21 16:54:12 -04:00
Matt Broadstone
dec9ef72d3
added test for invalid routing keys
...
also added a debug message for attempts to write shortstr's greater
than acceptable length.
2014-06-30 18:42:39 -04:00
Matt Broadstone
a89dbb3805
add tests for proper uri validation
...
this is the missing component from PR #41 , tests a number of example
amqp uri's provided by the RabbitMQ spec/documentation
2014-06-26 16:05:47 -04:00
Matt Broadstone
12a03f959f
add qos support to channel
...
AMQP Basic qos support added to Channel class. There is an option
for global qos which is currently not added. Also, added auto tests
for qos definition, proper qos operation and verifying that RabbitMQ
does not support prefetchSize.
2014-06-26 10:28:58 -04:00
Matt Broadstone
9bd5610ac7
added auto test for issue #33
2014-06-25 21:18:22 -04:00
Matt Broadstone
92384ce7cb
add an auto test for synchronous get
2014-06-25 20:54:50 -04:00
Matt Broadstone
8879211c80
refactor queue auto tests
...
refactored queue declaration code to a single method
added a test for the synchronous Get AMQP api, emitting an empty signal
2014-06-24 21:10:54 -04:00
Matt Broadstone
fcc3d36bba
remove manual tests
...
all of these original tests have been moved to the tutorials
2014-06-24 21:08:33 -04:00
Matt Broadstone
cab23c97cc
add support for cancelling a consumer
...
cancel method and cancelled signal added to Queue, added auto tests
to guarantee conditions surrounding the cancel process
2014-06-24 11:09:19 -04:00
Matt Broadstone
c43c2d6788
ensure consuming only occurs once per queue
...
a Queue can act as a consumer in QAMQP, but previously we did no checks
to ensure that a Queue sent a request to consume only once. This commit
adds API for checking and ensuring that this is the case. Also, I reverted
the changes to allow multiple consumer tags because this was incorrect.
Also included is a new signal "consuming" to notify when consumption occurs,
and auto tests have been updated to use this, as well as verify that it
can only occur once per-consumer
2014-06-24 10:30:05 -04:00
Matt Broadstone
50e38c7455
add auto test for immediate publish option
...
as of RabbitMQ 3.x the immediate publishing bit is no longer supported,
added a test to ensure proper functionality.
2014-06-23 19:21:41 -04:00
Matt Broadstone
4f808bef92
add publish options
...
- add publish options to Exchange (these need to move to a Basic abstraction)
- listen for bmReturn in Exchange to catch errors
- added auto tests to check behavior of an invalid mandatory publish
- cleaned up bit fields in exchange and queue
2014-06-23 15:36:03 -04:00
Matt Broadstone
b5d77e17e3
revert reordering publish arguments
...
I originally changed the publishing arguments to take a routingKey first
which is pretty nonstandard across implementations. Reverting for
conformity.
2014-06-17 15:14:23 -04:00
Matt Broadstone
14f9b7e955
semi-complete tests around queue requirements
2014-06-11 16:14:33 -04:00
Matt Broadstone
352669f392
added all tests around exchange declaration
2014-06-11 15:49:05 -04:00
Matt Broadstone
4a09094140
added autotest for invalid exchange declarations
2014-06-11 14:38:42 -04:00
Matt Broadstone
496e00abb9
move error constants to global namespace
2014-06-11 13:44:30 -04:00
Matt Broadstone
e1522771e3
refactor exchange test to create a client and connect/disconnect after each test
2014-06-11 11:36:59 -04:00
Matt Broadstone
c2dad7d6bb
added RemoveOptions to Exchange, remove auto deletion (this should be handled by the AutoDelete option), and added
...
a test for an invalid remove(roIfUnused)
2014-06-10 21:41:28 -04:00
Matt Broadstone
8e2b66677d
add roForce to Queue, replace forceRemove
2014-06-10 21:27:59 -04:00
Matt Broadstone
478597063c
updated queue tests to include purge test, and reenable removeIfEmpty test
2014-06-10 13:03:52 -04:00
Matt Broadstone
4422924219
convert QAMQP::Queue to a proper QQueue subclass, move MessageProperties to QAMQP namespace
2014-06-10 09:05:42 -04:00
Matt Broadstone
55da181788
a little closer to proper tuning
2014-06-09 19:39:09 -04:00
Matt Broadstone
1510e1f6c6
provide access to tuning variables, add checks for frameMax per spec in a number of areas,
...
add an incomplete autotest for using connection tuning parameters
2014-06-09 19:27:24 -04:00
Matt Broadstone
182b493119
increase default delay in waitForSignal to 5sec for travis tests
2014-06-09 15:18:37 -04:00
Matt Broadstone
aff5fb70b7
added autotests for exclusive queues
2014-06-09 15:10:35 -04:00
Matt Broadstone
50a588e678
allow for creation of a queue with no name, added auto test for validation
2014-06-09 14:07:13 -04:00
Matt Broadstone
60167321a9
add test for incompatible authentication mechanisms
2014-06-06 16:49:45 -04:00
Matt Broadstone
f11caabb14
add auto test for unbinding from an exchange
2014-06-06 14:40:05 -04:00
Matt Broadstone
bad40ac83b
- updated all manual tests to reorder publish parameters (routeKey first)
...
- updated all manual tests to remove queues with no name
2014-06-06 14:32:46 -04:00
Matt Broadstone
8599cec147
- added auto tests for binding to standard AMQP-defined exchanges
...
- removed name parameter from Queue::declare, reducing confusion. Updated manual test to reflect this change
2014-06-06 13:37:36 -04:00
Matt Broadstone
9b45f2ac58
- added auto tests for remove
...
- remove now takes flags rather than magical booleans
- fixed a bug delete -> deleteOk in QueuePrivate so we can listen for sync queue destruction
- added error signals to Client(Connection), and Channel
- removed automatic calls to remove a Queue when the channel is closed, or Queue is deleted
this behavior is already handled by the AutoDelete declare option
2014-06-06 12:10:51 -04:00
Matt Broadstone
af0ccf6e7d
disable autoReconnect auto test because of travis
2014-06-05 16:16:22 -04:00
Matt Broadstone
607af62b7a
added crude autotest for autoReconnect, made connect and disconnect private slots of Client
2014-06-05 16:09:52 -04:00
Matt Broadstone
d9d52e489a
Queue::messageReceived no longer passes the queue as a parameter (use sender() if you need it)
...
fixed qamqp manual test to send key before message
2014-06-05 15:44:14 -04:00
Matt Broadstone
01d792f38d
refactor Message to be explicitly shared class, rather than passing
...
shared pointers around directly
2014-06-05 15:37:41 -04:00
Matt Broadstone
eaee35df12
add a test for a default exchange to tst_QAMQPQueue
2014-06-04 10:24:45 -04:00
Matt Broadstone
9a4e1f2764
update travis config for qt5 builds, add build status to README.md
2014-06-03 22:16:57 -04:00
Matt Broadstone
e9dcb18c44
remove no longer needed auto test
2014-06-03 16:46:51 -04:00
Matt Broadstone
fde4bcf39a
overhauled tests, added TestCase class, made a few skeleton auto tests
2014-06-03 13:48:50 -04:00
Matt Broadstone
360e64b34b
add auto tests for standard exchange types
...
fixed a bug with reporting the removal of an exchange
added an ExchangeType enum for standard types
2014-06-02 11:00:04 -04:00
Matt Broadstone
3d69359431
renamed open/close methods to connectToHost/disconnectFromHost (to mirror Qt socket API), added the first auto tests!
2014-05-29 10:16:33 -04:00
Matt Broadstone
7a708cc39a
added dummy auto tests
2014-05-28 16:27:46 -04:00
Matt Broadstone
cd33957147
rename amqp => amqp_client
2014-05-28 13:05:51 -04:00
Matt Broadstone
7394092f60
turn qamqp into a proper library, set up test dir structure, moved qamqp test app to manual test
2014-05-28 12:52:42 -04:00
Matt Broadstone
565d0e04df
rename and move pro files
2014-05-28 12:36:50 -04:00
Matt Broadstone
0dfa78a9db
moved qamqp cli code to a manual test
2014-05-28 12:35:05 -04:00
Matt Broadstone
50e6eec7b1
remove old build files, added tests directory
2014-05-28 12:31:22 -04:00