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
Jean-Sébastien Pédron
686c90ddd5
Use monotonic_time() to compute elapsed time
...
... not `erlang:now()` (deprecated) or `os:timestamp()` (which could go
backward).
References rabbitmq/rabbitmq-server#233 .
2015-08-05 15:29:00 +02:00
Giuseppe Privitera
abb6d67c24
run ACK/NACK tests for all STOMP versions (1.0, 1.1, 1.2)
2015-07-24 21:42:18 +03:00
Michael Klishin
b48eff9f23
This test can be much higher level
...
It trips on the recent LF patch for no good reason.
2015-06-16 01:58:50 +03:00
Michael Klishin
158116be97
Unbreak highlighting in python-mode
2015-06-16 01:58:50 +03:00
Jean-Sébastien Pédron
d98eb00a18
Testsuite: Update to stomp.py 4.0.16
...
To help with the support of tests targetting a specific version of
STOMP, several helpers were added to base.py. The default STOMP version
is 1.0, the same as rabbitmq-stomp.
Fixes #12 .
2015-05-29 18:39:37 +02:00
Michael Klishin
d77af4af39
(c) year
2015-05-24 04:27:54 +03:00
Michael Klishin
050288c3cc
Don't use deprecated erlang:now/1
2015-04-30 20:06:07 +03:00
Michael Klishin
44667ea7d6
Notify stomp_processor when reader fails with an exception
...
Why not just link the two?
Then any network-related issue would
produce a scary crash report in the SASL log and
we won't give the processor some time to finish
what it may still be doing.
Fixes #7 .
2015-04-08 12:16:39 +02:00
Simon MacMullen
d7bf7b8dcb
Simplify. Enforce always running SSL tests. Don't create global variables in the Makefile namespace. Make the SSL test script work properly when run from the umbrella.
2014-11-28 14:40:13 +00:00
Michael Klishin
9d6bc79031
Support the requeue header for NACK frames
...
GitHub: references #2 .
2014-07-07 19:33:42 +04:00
Michael Klishin
9bf1add493
Squash some warnings
2014-06-26 09:33:01 +04:00
Michael Klishin
3e69e69c83
Bump timeout in this test
2014-06-24 11:59:07 +04:00
Michael Klishin
1a19b3f2a5
Correctly report blank destination errors, add a test
2014-04-07 13:49:23 +04:00
Simon MacMullen
514f0ce5fa
Update copyright for 2014
2014-03-17 17:25:25 +00:00
Simon MacMullen
dde1f102e1
s/VMware/GoPivotal/g
2013-07-01 10:49:15 +01:00
Simon MacMullen
368f5a0950
Merge bug25566
2013-06-05 15:02:46 +01:00
Emile Joubert
cee42f6abd
Allow unescaped colons in header values
2013-05-29 09:51:26 +01:00
Simon MacMullen
f3099f106f
Fix non-temp reply queues, and add a test.
2013-05-21 17:18:55 +01:00
Emile Joubert
31730f4f69
Prevent sending to /temp-queue destinations
2013-02-26 17:51:00 +00:00
Emile Joubert
b36857eadd
Rename
2013-02-25 16:35:26 +00:00
Emile Joubert
c1699b0cc9
Rename
2013-02-22 12:14:36 +00:00
Emile Joubert
da447d4267
Merge destination semantics with AMQP 1.0
2013-02-15 16:11:17 +00:00
Emile Joubert
e71cfda67b
Update copyright 2013
2013-01-23 12:25:55 +00:00
Emile Joubert
5b6ff927fc
More accurate reply-to handling
2013-01-03 13:02:01 +00:00
Emile Joubert
71fc94d73c
Merged default into bug24623
2012-11-14 12:00:27 +00:00
Emile Joubert
b55b9164cf
More refactoring
2012-11-12 15:50:52 +00:00
Emile Joubert
912a5def8e
Detect missing subsriptions
2012-11-08 14:37:25 +00:00
Emile Joubert
c8b54ccdef
Refactoring for 1.2 support
2012-11-07 15:33:05 +00:00
Emile Joubert
a14345ece0
Tests for 1.2
2012-11-07 14:05:54 +00:00
Emile Joubert
8a98a7ffcd
Temp destination queues interoperate with non-STOMP clients
2012-10-03 11:11:51 +01:00
Emile Joubert
e11ca5fe94
Merged bug25140 into default
2012-09-27 15:09:16 +01:00
Emile Joubert
c7ae5c705d
Authenticate via the erlang direct client
2012-09-19 14:37:05 +01:00
Simon MacMullen
d5a09d5d93
Add support for the five missing message properties: expiration, type, timestamp, app-id and user-id.
2012-09-12 16:04:30 +01:00
Steve Powell
6ac68896d8
Adjust test for no 0x10's in error frames.
2012-08-16 11:42:00 +01:00
Steve Powell
769254ae61
Merge default and resolve clashes.
2012-08-15 17:22:15 +01:00
Emile Joubert
ce85481bd8
Merged bug25067 into default
2012-08-13 10:44:47 +01:00
Emile Joubert
cd210c7be1
Merged bug24973 into default
2012-08-13 10:05:05 +01:00
Emile Joubert
79cd589d87
Trailing whitespace
2012-08-13 10:02:39 +01:00
Steve Powell
22c13bf19d
Unpick 25067 changes.
2012-08-10 15:34:34 +01:00
Emile Joubert
1f23514f6c
Indentation, whitespace, column-width
2012-08-07 11:02:27 +01:00
Emile Joubert
fb87d20937
Merged bug25036 into default
2012-08-06 12:26:13 +01:00
Steve Powell
1df32db65a
Hmm, tweak some more. Is this a real problem?
2012-08-03 11:59:31 +01:00
Steve Powell
6436af1552
Differentiate Authentication failures.
...
Adjust tests to check these.
2012-08-01 16:16:45 +01:00
Steve Powell
83c758e4c1
Merge in default
2012-08-01 14:12:54 +01:00
Steve Powell
ad4b9dee11
Reduce expectation in test.
2012-08-01 11:25:41 +01:00
Steve Powell
ff17e624fe
Attempt to test server cancel subscription
2012-08-01 10:46:24 +01:00
Steve Powell
cf95e6f5a3
Tweak delay to accomodate ci tests.
2012-07-26 10:06:49 +01:00
Steve Powell
458633f870
Merge in bug24973.
2012-07-25 16:51:00 +01:00
Steve Powell
2b2e4d756c
Check for invalid colon in header value
2012-07-25 16:47:54 +01:00
Steve Powell
9a579cbc70
Make incomplete header a fatal error
2012-07-25 16:28:43 +01:00
Steve Powell
f87babeb55
Complete parser rewrite and added some new tests.
2012-07-24 14:01:41 +01:00
Steve Powell
60032e3ba3
Removed CR as valid char in headers and command;
...
update tests to reject such frames
augment escapes to include \r as escape for CR
simplify grammar
2012-07-20 14:47:36 +01:00
Steve Powell
f72d6606fa
Add tests for trailing \r in COMMAND and header-value;
...
o serialize-header augmented to add extra \r to trailing \r
2012-07-19 16:50:46 +01:00
Steve Powell
db8ccc279f
Introduced parse_header_name with BACKSLASH escapes;
...
-- augmented unit test
-- modified serialise_header/1 to escape key as well as value
2012-07-18 17:18:56 +01:00
Steve Powell
d90db2ba9c
Use content-length header MACRO in tests.
2012-07-18 12:20:25 +01:00
Steve Powell
ece5363bb0
Tweak wait time in lifecycle tests for CI.
2012-07-17 11:55:29 +01:00
Steve Powell
bb3370087e
Improve diagnostics on destinations test failures.
2012-07-16 10:51:36 +01:00
Steve Powell
1d9bcf350b
Simplify frame unit tests.
2012-07-11 11:55:29 +01:00
Steve Powell
9abd4ebb42
Refactor test function
2012-07-10 16:12:48 +01:00
Steve Powell
44053f3418
Merge in default
2012-07-10 12:15:34 +01:00
Steve Powell
2ef71b4e10
Accept CRLF as inter-frame NL; command terminator and header terminator.
2012-07-10 12:14:26 +01:00
Steve Powell
47024a5ed3
Made test in test more explicit.
2012-07-09 15:22:12 +01:00
Steve Powell
01e73d952c
Increment default wait time for assertListenerAfter() used in lifecycle tests.
2012-07-06 14:55:38 +01:00
Steve Powell
2f2b39126c
Reworked base.py listener to record message arrival number
...
and change test in destinations.py to expect two responses and check the order of arrival.
Rename test to test_durable_subscription.
2012-07-06 14:53:45 +01:00
Steve Powell
23d1f80dbb
Instrumented base.py to get more info from errors on CI
2012-06-28 17:09:49 +01:00
Steve Powell
ab2d44b2da
Modified tests for interframe heartbeat, null bytes and carriage returns (sic) with test for intra-command carriage return.
2012-06-01 15:19:25 +01:00
Steve Powell
f60ef40e47
Added tests for interframe heartbeat, null bytes and carriage returns (sic) with test for intra-command carriage return.
2012-06-01 15:13:21 +01:00
Simon MacMullen
2301d4fd17
Unbreak the tests. Ahem.
2012-05-29 14:31:00 +01:00
Steve Powell
14f41ed45e
Destination on MESSAGE frames reflects SEND destination, not SUBSCRIBE destination;
...
Treat default exchange and amq.topic exchange specially;
Escape content;
Adjust tests to cope with new expectations.
2012-04-10 13:47:52 +01:00
Steve Powell
27ac436eb3
Update connect_options.py to check for error frame (if bad connect)
...
and to set default user before test (so it passes).
2012-03-26 10:53:34 +01:00
Simon MacMullen
e34be08226
Test implicit connections even if we *are* doing SSL tests, by turning implicit connect on just for the test.
2012-03-15 18:00:31 +00:00
Steve Powell
1f6d097f43
Updated test ssl.config to remove default user (and implicit connect);
...
adjusted tests to avoid using implicit connect everywhere;
put check in login_header to return undefined if lookup returns undefined.
2012-03-15 11:37:02 +00:00
Simon MacMullen
a40eed1dff
Add failing test. We can't implement this in Python since stomp.py seems buggy in this area anyway (I'm not sure it sends DISCONNECT).
2012-03-12 17:49:05 +00:00
Steve Powell
657e1103c4
Allow "server:.*" header on CONNECTED frames in tests.
2012-02-24 15:44:55 +00:00
Simon MacMullen
f08620d1eb
Forgot to add this...
2012-02-20 17:07:16 +00:00
Simon MacMullen
c5638606f7
"Promote" implicit_connect to the top level since it is no longer just for default_user
2012-02-20 16:44:57 +00:00
Simon MacMullen
e31a0f7dee
SSL client certificate authentication. In theory based on Shane Hathaway's patch but there's probably nothing left of it by now.
2012-02-20 16:07:18 +00:00
Emile Joubert
db6410658f
Merged bug24670 into default
2012-02-06 15:50:53 +00:00
Simon MacMullen
f358bf688c
Merge bug24606
2012-02-03 13:07:05 +00:00
Emile Joubert
d4f7bec443
Update copyright 2012
2012-02-02 17:52:58 +00:00
Matthias Radestock
d4dd7b7b96
refactor: use new rabbit_misc:format/2
2012-02-02 15:51:33 +00:00
Simon MacMullen
ccfbf4c6e4
Fix the little test client so it actually uses the parser correctly and does not drop messages.
2012-01-30 16:33:38 +00:00
Simon MacMullen
f3a4223ed8
Actually pay attention to the rabbit_stomp_frame:parse/2 API.
2012-01-30 14:55:00 +00:00
Simon MacMullen
9353dcbeaf
Continue on our quest towards being able to count.
2012-01-18 15:42:16 +00:00
Simon MacMullen
c832d157fd
Mask lumpiness
2012-01-18 15:38:11 +00:00
Simon MacMullen
df14cc2f21
Turns out I actually can't count. Previous version assumed one send stats for every recv stats, but the recv ones tend to run behind...
2012-01-18 15:29:11 +00:00
Simon MacMullen
4fe81c1ae6
A simple publish-and-consume-as-fast-as-you-can test since I'm not convinced about the performance of some of the clients we've poked at. I was going to call this multicast_plain but I think puns like that would be discouraged.
2012-01-18 12:08:14 +00:00
Steve Powell
4f304d6f8a
Put description in test.
2011-11-29 10:23:17 +00:00
Steve Powell
8a252ff86e
Simple test for rejection.
2011-11-25 13:15:51 +00:00
Emile Joubert
b8dc126e16
Whitespace
2011-11-10 18:17:47 +00:00