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