Lager strips trailing newline characters but OTP logger with the default
formatter adds a newline at the end. To avoid unintentional multi-line log
messages we have to revisit most messages logged.
Some log entries are intentionally multiline, others
are printed to stdout directly: newlines are required there
for sensible formatting.
* Upgrade to stomp.py 4.1.24 to gain Python 3.9 compatibility
* Adjust to modern client/plugin disconnection delay
* Remove tests that are not really possible to test with
a regular well-behaved client (missed heartbeats)
Hopefully we should learn more when we hit another failure with the
plugin failing to listen to its TCP port.
While here, remove the try/catch block around the execution of
rabbitmqctl(8):
* It swallowed the exception and the error was ignored, hoping
subsequent line would cause the testcase to fail.
* The print() was misformed: the `.format()` call was applied to the
print() return value, not the string, leading to a useless message being
printed.
* CalledProcessError.stderr does not exist according to the
documentation, so even if the print() was correct, it would never work.
subprocess already prints the command output to stdout. So let's get rid
of this try/catch which only broke things in many ways.
To be able to use quorum queues. Note deliveries from a classic queue
come with a context to inform back the queue about the handling of the
message (credit flow). Deliveries from a quorum queue do have this
context because quorum queues do not use credit flow. So supporting
quorum queues is not just about propagating the type header to AMQP
but needs also to handle both kinds of deliveries.
Fixes#138
Add some more test cases and fix simple_test_send_rec use the headers argument to conn.send
Add AMQP -> STOMP test validating a custom header
Send headers in AMQP message and verify STOMP receipt