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
594d331904
Update copyright (year 2020)
2020-03-10 16:51:40 +01: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
Michael Klishin
98834380b3
(c) bump
2019-12-29 05:50:36 +03:00
Luke Bakken
32e0b1bcd2
Fix test by adding hide_server_info to schema
2019-10-28 11:48:08 -07:00
Luke Bakken
94bdf2a65e
Add support for hide_server_info
...
Fixes #140
Add test that fails
2019-10-28 11:37:53 -07: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
Jean-Sébastien Pédron
a77a41802a
amqqueue_SUITE: Format protocol version as e.g. "1_0" in test group names
...
This allows us to specify a group name in the `gmake ct-amqqueue t=...`
command line.
2019-07-23 11:29:58 +02:00
Spring Operator
12de902841
URL Cleanup
...
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.
* http://blog.listincomprehension.com/search/label/procket (200) with 1 occurrences could not be migrated:
([https](https://blog.listincomprehension.com/search/label/procket ) result ClosedChannelException).
* http://dozzie.jarowit.net/trac/wiki/TOML (200) with 1 occurrences could not be migrated:
([https](https://dozzie.jarowit.net/trac/wiki/TOML ) result SSLHandshakeException).
* http://dozzie.jarowit.net/trac/wiki/subproc (200) with 1 occurrences could not be migrated:
([https](https://dozzie.jarowit.net/trac/wiki/subproc ) result SSLHandshakeException).
* http://e2project.org (200) with 1 occurrences could not be migrated:
([https](https://e2project.org ) result AnnotatedConnectException).
* http://nitrogenproject.com/ (200) with 2 occurrences could not be migrated:
([https](https://nitrogenproject.com/ ) result ConnectTimeoutException).
* http://proper.softlab.ntua.gr (200) with 1 occurrences could not be migrated:
([https](https://proper.softlab.ntua.gr ) result SSLHandshakeException).
* http://yaws.hyber.org (200) with 1 occurrences could not be migrated:
([https](https://yaws.hyber.org ) result AnnotatedConnectException).
* http://choven.ca (503) with 1 occurrences could not be migrated:
([https](https://choven.ca ) result ConnectTimeoutException).
# Fixed URLs
## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.
* http://fixprotocol.org/ (301) with 1 occurrences migrated to:
https://fixtrading.org ([https](https://fixprotocol.org/ ) result SSLHandshakeException).
* http://erldb.org (UnknownHostException) with 1 occurrences migrated to:
https://erldb.org ([https](https://erldb.org ) result UnknownHostException).
* http://stomp.codehaus.org/Protocol (UnknownHostException) with 1 occurrences migrated to:
https://stomp.codehaus.org/Protocol ([https](https://stomp.codehaus.org/Protocol ) result UnknownHostException).
## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.
* http://cloudi.org/ with 27 occurrences migrated to:
https://cloudi.org/ ([https](https://cloudi.org/ ) result 200).
* http://erlware.org/ with 1 occurrences migrated to:
https://erlware.org/ ([https](https://erlware.org/ ) result 200).
* http://inaka.github.io/cowboy-trails/ with 1 occurrences migrated to:
https://inaka.github.io/cowboy-trails/ ([https](https://inaka.github.io/cowboy-trails/ ) result 200).
* http://ninenines.eu with 6 occurrences migrated to:
https://ninenines.eu ([https](https://ninenines.eu ) result 200).
* http://www.actordb.com/ with 2 occurrences migrated to:
https://www.actordb.com/ ([https](https://www.actordb.com/ ) result 200).
* http://www.cs.kent.ac.uk/projects/wrangler/Home.html with 1 occurrences migrated to:
https://www.cs.kent.ac.uk/projects/wrangler/Home.html ([https](https://www.cs.kent.ac.uk/projects/wrangler/Home.html ) result 200).
* http://www.rabbitmq.com/stomp.html with 2 occurrences migrated to:
https://www.rabbitmq.com/stomp.html ([https](https://www.rabbitmq.com/stomp.html ) result 200).
* http://www.rebar3.org with 1 occurrences migrated to:
https://www.rebar3.org ([https](https://www.rebar3.org ) result 200).
* http://contributor-covenant.org with 1 occurrences migrated to:
https://contributor-covenant.org ([https](https://contributor-covenant.org ) result 301).
* http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/ ) result 301).
* http://inaka.github.com/apns4erl with 1 occurrences migrated to:
https://inaka.github.com/apns4erl ([https](https://inaka.github.com/apns4erl ) result 301).
* http://inaka.github.com/edis/ with 1 occurrences migrated to:
https://inaka.github.com/edis/ ([https](https://inaka.github.com/edis/ ) result 301).
* http://lasp-lang.org/ with 1 occurrences migrated to:
https://lasp-lang.org/ ([https](https://lasp-lang.org/ ) result 301).
* http://saleyn.github.com/erlexec with 1 occurrences migrated to:
https://saleyn.github.com/erlexec ([https](https://saleyn.github.com/erlexec ) result 301).
* http://www.mozilla.org/MPL/ with 22 occurrences migrated to:
https://www.mozilla.org/MPL/ ([https](https://www.mozilla.org/MPL/ ) result 301).
* http://www.rabbitmq.com/man/rabbitmq-plugins.1.man.html with 1 occurrences migrated to:
https://www.rabbitmq.com/man/rabbitmq-plugins.1.man.html ([https](https://www.rabbitmq.com/man/rabbitmq-plugins.1.man.html ) result 301).
* http://zhongwencool.github.io/observer_cli with 1 occurrences migrated to:
https://zhongwencool.github.io/observer_cli ([https](https://zhongwencool.github.io/observer_cli ) result 301).
2019-03-20 03:23:56 -05:00
Luke Bakken
c246ffd3a5
Add test for default_topic_exchange, fixup parse_routing
2019-01-24 06:53:06 -08:00
Luke Bakken
96f336d47a
Add cuttlefish config and test
2019-01-23 10:15:47 -08:00
Michael Klishin
e91e498d06
New style config: support stomp.tcp_listen_options.*
...
That mimic tcp_listen_options.* for AMQP 0-9-1 and AMQP 1.0 listeners.
Closes #129 .
[#157922235 ]
2019-01-02 20:18:40 +03: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
36feef395c
One more test
2018-04-02 23:00:21 +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
cb5086bf44
Merge branch 'master' into rabbitmq-server-1229
2017-06-13 23:57:01 +03:00
Arnaud Cogoluègnes
c6fdd8fa17
Support variable expansion in topic authz
...
Part of rabbitmq/rabbitmq-server#1229
2017-06-12 10:35:52 +02: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
Michael Klishin
9be7f2efe0
Merge branch 'stable'
2017-04-02 22:03:38 +03:00
Michael Klishin
bbd0835011
(c) year
2017-04-02 21:49:30 +03:00
Daniil Fedotov
db74639159
Config schema test for plugin
...
Part of [#141481501 ]
Moved from rabbitmq-server
2017-03-17 11:02:07 +00:00
Jean-Sébastien Pédron
4ec02aaa62
Merge branch 'stable'
2017-03-08 10:06:32 +01:00
Jean-Sébastien Pédron
0de0421d6e
connections_SUITE: Match the new `connection_coarse_metrics` field
...
The tuple returned by a read of `connection_coarse_metrics` contains a
new counter at the end. We ignore it but the pattern matching must be
updated.
Before this, the testcase failed with the following error:
connections_SUITE:stats failed on line 150
Reason: {badmatch,[{<13606.2176.0>,38,117,6572,0}]}
2017-03-08 09:10:36 +01:00
Arnaud Cogoluègnes
d5f85fcae7
Set copyright year to 2017 in topic_SUITE.erl
2017-02-15 17:00:04 +01:00
Arnaud Cogoluègnes
f8379c5816
Polish proxy protocol test suite
...
Add license header, add call to rabbit_ct_helpers:testcase_started.
References rabbitmq/rabbitmq-server#589
2017-02-13 10:44:22 +01:00
Arnaud Cogoluègnes
3f95ad9a9c
Add support for proxy protocol
...
Part of rabbitmq/rabbitmq-server#589
2017-02-09 10:11:38 +01:00
Michael Klishin
cd65c2131f
This constant isn't used
2017-02-06 01:13:08 +03:00
Arnaud Cogoluègnes
1ce89c541b
Merge branch 'master' into rabbitmq-server-1085
2017-01-31 17:45:24 +01:00
Diana Corbacho
1004f3e24a
Merge branch 'stable'
2017-01-27 20:49:52 +00:00
Diana Corbacho
06314a0cc4
Add heartbeat to stats
2017-01-27 16:54:32 +00:00
Diana Corbacho
0a711ef29b
Test all stats are present
2017-01-27 12:45:04 +00:00
Diana Corbacho
73d22fd2e6
Tests stats are not leaked if connection failed
2017-01-27 12:31:09 +00:00
Arnaud Cogoluègnes
a1334bd626
Add topic authorisation for consumption
...
Part of rabbitmq/rabbitmq-server#1085
2017-01-23 15:19:07 +01:00
Diana Corbacho
c754c00971
Pass user who performed the action to test fixtures
2017-01-17 07:39:34 +00:00
Jean-Sébastien Pédron
1b9a11fbde
Do not use -include_lib() with own headers
...
This fixes the build outside of an Umbrella-like setup, ie. when
dependencies of this plugin are put into the `deps` subdirectory.
2016-12-08 18:10:02 +01:00
Diana Corbacho
9051a327c8
CLI command to list stomp connections
2016-12-08 10:50:56 +00:00
Jean-Sébastien Pédron
0c6318c9a8
Merge branch 'stable'
2016-11-25 10:38:27 +01:00
Gerhard Lazu
ddee4d8ef8
Use test name for the RabbitMQ node name
...
Each test case should have its own broker, rather than re-use the same
broker for the entire test suite.
Signed-off-by: Jean-Sébastien Pedron <jean-sebastien@rabbitmq.com>
2016-11-24 11:29:20 +00: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
Jean-Sébastien Pédron
dc7eb71382
Merge branch 'stable'
2016-09-05 16:36:58 +02:00
Jean-Sébastien Pédron
12faaf4683
*_SUITE: Stop the broker at the end of the testsuite
2016-09-05 16:19:49 +02: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
593bbac8a6
Install pika and stomppy when running tests
2016-07-22 11:48:44 +01:00
Daniil Fedotov
ab642c9278
Moving files around
2016-07-22 11:21:16 +01:00
Daniil Fedotov
03b4a0e75d
Run python tests from CT
2016-07-22 11:21:16 +01:00
Daniil Fedotov
485d091119
Move eunit tests to common test
2016-07-22 11:21:16 +01:00
Daniil Fedotov
0dcbe61bdc
Do not use time_compat
2016-05-12 10:23:42 +01:00
Michael Klishin
90bbe28495
Merge branch 'stable'
2016-03-31 13:26:48 +03:00
Michael Klishin
b467ea792b
Update low level frame parser tests
2016-03-30 20:50:57 +03:00
Michael Klishin
a6c726f195
Connect using an IPv4 address
...
Makes the test suite more reliable in environments with
weird/broken hosts files.
2016-03-23 21:31:16 +03:00
Daniil Fedotov
d7368006cd
no more foo
2016-03-18 12:35:17 +00:00
Daniil Fedotov
81b4fcfb18
tests sanity
2016-03-18 10:03:23 +00:00
Daniil Fedotov
9f5f238ca4
Stomp errors tests
2016-03-17 19:15:39 +00:00
Michael Klishin
861057e092
Use 'durable' and 'persistent' interchangeably in more places
...
Fixes #58 .
2016-02-15 12:49:51 +03:00
Michael Klishin
c9d19e1ab0
Update (c) info
2016-01-01 12:59:19 +03:00
Jean-Sébastien Pédron
7840ffebf1
Pika is an AMQP client, not a STOMP one, don't override the TCP port...
2015-12-16 14:52:52 +01:00
Jean-Sébastien Pédron
1f679b39b1
Use TCP ports 5673/5674 in the testsuite
...
The default STOMP port is 61613 but it's in the middle of the ephemeral
ports range on many operating systems. Therefore, there is a chance this
port is already in use which causes the testsuite to fail. Let's use a
port close to the AMQP default port.
2015-12-16 10:42:53 +01:00
Jean-Sébastien Pédron
0ea852b36f
rabbit_stomp_test: Fix how connections are accounted
...
We need to count IPv4 and IPv6 separately and explicitely. Counting IPv4
connections may fail on platforms where the IPv6 listener implicitely
handles IPv4. Counting IPv6 connections may fail if the host is not
configured for IPv6.
2015-12-16 09:40:04 +01:00
Loïc Hoguin
f180b1783f
Switch to Ranch for connection handling
2015-11-17 15:41:34 +01:00
Jean-Sébastien Pédron
e91f6902e8
ssl_lifecycle: Get SSL certs location from environment
2015-10-21 14:14:40 +02:00
Jean-Sébastien Pédron
fc95916ab8
test_util: Take rabbitmqctl location from environment
2015-10-21 13:13:48 +02:00
Jean-Sébastien Pédron
e7d43a95af
test_runner: Let the Makefile setup PYTHONPATH for us
2015-10-21 12:55:30 +02:00
Jean-Sébastien Pédron
69bc6cfd66
Initial move to erlang.mk
2015-10-19 17:30:58 +02:00
Giuseppe Privitera
968a10cff3
Merge branch 'stable'
2015-10-09 11:24:21 +01:00
Giuseppe Privitera
54036de283
implemented user generated queue names for /exchange & /topic
...
destinations
2015-10-07 13:50:04 +01:00
Michael Klishin
b5673745ab
Merge branch 'stable'
2015-09-30 04:13:37 +08:00
Michael Klishin
f6ee772c6f
Make trailing LF character optional
...
Fixes #39 .
2015-09-30 04:02:11 +08:00
Michael Klishin
e1565a19ff
Merge branch 'stable'
2015-09-17 01:46:39 +03:00
Giuseppe Privitera
194daff2df
added redelivered flag in MESSAGE frame headers
2015-09-16 18:31:51 +01:00
Michael Klishin
e04f811092
Merge branch 'stable'
2015-09-16 19:00:57 +03:00
Michael Klishin
a3f3317c10
Give a client some time to notice that connection was closed
2015-09-16 16:24:56 +03:00
Michael Klishin
6854d078f5
Split this test into two cases
2015-09-16 15:58:37 +03:00
Michael Klishin
802919a65e
We can use transient destinations here
2015-09-16 15:35:29 +03:00
Giuseppe Privitera
d3824cfc33
changed error message to be STOMP specific
2015-09-14 17:41:09 +01:00
Giuseppe Privitera
6afdecedd3
added tests for duplicate consumer tag
2015-09-14 16:46:12 +01:00
Michael Klishin
59051b38cd
Merge branch 'stable'
2015-09-10 02:07:01 +03:00
Giuseppe Privitera
b4971bebb2
decreased number of concurrent STOMP connections
...
on OSX default max number of open file is 256 (ulimit -n)
2015-09-07 17:38:25 +02:00
Giuseppe Privitera
dad20cc49c
fixed failing tests because of changed defaults (/topic is now auto_delete=true)
2015-09-03 10:49:58 +01:00
Michael Klishin
5b8ba91bbb
Merge branch 'stable'
2015-08-20 17:56:35 +03:00
Giuseppe Privitera
19220fe721
added pika to test dependencies
2015-08-20 13:39:15 +01:00
Giuseppe Privitera
96eb5e4dd2
added python tests for queue properties (i.e. x-message-ttl, etc.)
2015-08-20 13:17:02 +01:00
Michael Klishin
85037eb355
Relax this assertion a bit, wait less
2015-08-20 15:05:54 +03:00
Michael Klishin
2064d9e63d
Handle blank line responses, references #20
2015-08-20 14:57:28 +03:00
Michael Klishin
f9554d46a6
Adapt Erlang framing tests for #20
...
Due to the tests being accidentally commented out,
this came unnoticed.
We already have Python tests that test parsing of bodies
and headers with null characters.
One test needed adapting for #20 .
2015-08-20 14:06:19 +03:00