Commit Graph

35 Commits

Author SHA1 Message Date
Michael Klishin 1587e080b9
STOMP: remove a flaky Python test already covered in Erlang 2021-03-22 20:03:08 +03:00
Michael Klishin ca201bbd7d
STOMP: upgrade Python suite(s) to stomp.py 6.x 2021-03-13 06:08:27 +03:00
Michael Klishin 6598dafe90
STOMP: add a runner to transactions.py 2021-03-13 06:00:10 +03:00
Michael Klishin 32814fb664
STOMP: continue modernizing stomp.py test suites 2021-03-12 09:31:39 +03:00
Michael Klishin bc769343bb
STOMP: stomp.py suite cosmetics 2021-03-12 07:31:52 +03:00
Michael Klishin a5cd08394e
STOMP: further stomp.py suite modernization steps 2021-03-12 07:25:15 +03:00
Michael Klishin 0801b61e8f
STOMP: run Python tests on Python 3 2021-03-11 22:03:29 +03:00
Michael Klishin 97ff62d3b2
Drop trailing newlines from logged messages where possible
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.
2021-03-11 15:17:37 +01:00
Michael Klishin 3c38b42226
STOMP: modernize Python test suite
* 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)
2021-03-10 07:35:34 +03:00
dcorbacho 83f3eb1a4a
Test stream queues with STOMP
Stream queues require prefetch count and manual acknowledgment

(cherry picked from commit 45d3c3fecbf9f9782851bf580620a50bb4692a45)
2020-11-17 08:28:30 -08:00
Michael Klishin 921a3c29a2 Switch to MPL2 2020-07-14 21:55:55 +03:00
Jean-Sébastien Pédron d0e3ff9f45 python_SUITE: Add more log messages to test_util.py
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.
2020-05-12 17:25:57 +02:00
Jean-Sébastien Pédron cb095c20e9 python_SUITE: Use Pika 1.1.0
Pika 0.12.0 fails to compile for me with the latest Python 3.7.x (3.7.6
here).
2020-02-28 10:03:15 +01:00
Jean-Sébastien Pédron 656db39c67 python_SUITE: Skip quorum queue test if they are unavailable
To determine this, we look at the error reported by the broker when the
client tries to subscribe (and thus declare) a quorum queue.
2019-10-10 14:45:18 +02:00
Michael Klishin c8878fc963 Wait for a bit longer 2019-10-08 22:53:49 -05:00
Arnaud Cogoluègnes 2725600b02 Support x-queue-type argument
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
2019-10-04 14:44:19 +02:00
Michael Klishin 417aeac814 Use Pika 0.12.0 for Python 3.7 compatibility
See pika/pika#923.
2018-10-10 22:55:46 +03:00
Michael Klishin 720105add2 Python test suite: compatibility with Python 3.5+
"await" is a keyword as of PEP 492.
2018-07-11 22:13:13 +03:00
Michael Klishin c1559f4834 Python 3 compatbility: cosmetic drive-by changes 2018-04-03 00:36:59 +03:00
Michael Klishin 008d542d20 Ditto 2018-04-03 00:36:41 +03:00
Michael Klishin f24bc6dfdb Python 3 compatibility 2018-04-02 23:43:14 +03:00
Michael Klishin 469f899de8 Add a missing parenthesis 2018-04-02 23:42:51 +03:00
Michael Klishin 7c634f228b Python 3 compatibility 2018-04-02 23:27:42 +03:00
Michael Klishin 0d2a49b257 Use Pika 0.11.x 2018-04-02 23:00:36 +03:00
Michael Klishin 4b83bc91f8 Merge branch 'stable' 2017-10-01 13:04:34 +03:00
Michael Klishin fe9481cbfe Missing test expectation update from #121 2017-10-01 13:04:22 +03:00
Luke Bakken 8ec59d4445 Add test demonstrating topic permissions using Python 2017-06-14 10:58:52 -07:00
Michael Klishin 5038656062 Merge branch 'stable' 2017-06-10 09:29:07 +03:00
Luke Bakken fe222abd81 Add failing test that shows custom headers are not returned.
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
2017-06-09 11:15:37 -07:00
Gerhard Lazu 25aaa869a1 Merge branch 'stable' 2016-11-23 11:15:07 +00:00
Jean-Sébastien Pedron afc7a931ba Increase message receive timeout for redelivered.py
Signed-off-by: Gerhard Lazu <gerhard@rabbitmq.com>
2016-11-23 11:13:05 +00:00
Daniil Fedotov 450946b650 Fix test timing 2016-11-11 12:47:02 +00:00
Daniil Fedotov 5b159deb0c Missing parenthesis 2016-07-28 12:05:32 +01:00
Michael Klishin b8367e54ff Merge branch 'stable' 2016-07-25 16:09:27 -07:00
Daniil Fedotov ab642c9278 Moving files around 2016-07-22 11:21:16 +01:00