Commit Graph

582 Commits

Author SHA1 Message Date
Michael Klishin 073cc57dcb Don't require peer cert 2014-11-25 23:51:30 +03:00
Michael Klishin 0dc8b8e22d Require TLS certificate in TLS authentication tests
Otherwise we get platform-specific failures and even generic client exceptions.
This case is potentially valid but is likely to be really rare (if you use TLS,
you probably also authenticate, using credentials or the certificate).

In the original patch this scenario was expected to fail. We now go back
to square 1.
2014-11-25 23:44:42 +03:00
Michael Klishin b1147f355c Pick most recent TLS version available 2014-11-25 23:20:38 +03:00
Michael Klishin d68f2b063e Use TLS v1.1 because v1.2 is not available on CI machines 2014-11-25 21:46:23 +03:00
Michael Klishin df5eb6aa57 Certificate authencation needs to be enabled explicitly, as with STOMP
Using the same ssl_cert_login app key.
2014-11-24 21:22:09 +03:00
Michael Klishin 0e298907aa Make it clear that this test does not expect an authentication failure 2014-11-24 21:21:20 +03:00
Michael Klishin 089ef7e86f Rename TLS test package 2014-11-24 17:01:10 +03:00
Michael Klishin 6eca0b71f8 Only ignore test/build/ but not test/build.xml and test/build.properties 2014-11-24 13:13:27 +03:00
Michael Klishin cee8eb2fd8 Client MQTT authentication using x509 certificates
Original patch by Eric Rauer.
2014-11-21 14:54:33 +00:00
Matthias Radestock bc1cdd77d5 merge stable into default 2014-03-31 13:29:39 +01:00
Matthias Radestock 299bcc1d5b eliminate race in testConnectFirst test
the test was highly timing sensitive; it published 1000 messages and
expected one of those publishes to fail due to the socket getting
closed by the server when encountering the first publish. So if the
client was quick enough / the server slow enough, all the publishes
would go through before the server processed the first one and closed
the socket. Cue test failure.

The new test sends an mqtt 'ping' and waits for a response. Not only
is this non-racy and doesn't require any magic timouts, it also is a
better exercise of the server logic: A 'publish' on a connection which
hasn't seen a 'connect' will fail anyway, even w/o the server code in
place that detects the missing 'connect', since processing a 'publish'
requires an amqp client connection, which in turn is only established
on 'connect'. By contrast, a 'ping' does not require an amqp client
connection. Hence removing the "make sure we have seen a 'connect'"
logic now results in a 'ping' response being sent, which makes the
test fail, as expected.
2014-03-31 13:26:58 +01:00
Simon MacMullen 4e07b1d640 Update copyright for 2014 2014-03-17 17:25:23 +00:00
Simon MacMullen 2206e2ae64 Allow running tests on a Mac 2014-02-03 17:51:02 +00:00
Simon MacMullen 9bde9ce822 Revert part of f438760bff27 since the exception is now an IOException. 2013-10-03 11:34:09 +01:00
Emile Joubert 69b255af77 Propagate Erlang client API change 2013-09-24 11:24:21 +01:00
Emile Joubert 50f162ea0d Swap connect and setting callback 2013-07-31 15:28:22 +01:00
Emile Joubert 23a100db9a Merged stable into default 2013-07-31 13:57:31 +01:00
Emile Joubert 48fbca2834 Automatically subscribe when connecting 2013-07-26 17:43:25 +01:00
Simon MacMullen bb95f34e47 s/VMware/GoPivotal/g 2013-07-01 10:49:14 +01:00
Simon MacMullen 73d32f6c6b Specify the version of the paho MQTT client to use, and some API tweaks to use the latest version. Why not just use the version that used to work? Well, it required some non-standard ant stuff to build. 2013-04-15 16:38:10 +01:00
Emile Joubert f973d137c3 Update copyright 2013 2013-01-23 13:06:40 +00:00
Emile Joubert ad7d5bdbf0 Turn off file-based client persistence in tests 2012-11-13 11:30:17 +00:00
Emile Joubert 44d9fa8b17 Tests require Java AMQP 2012-11-12 13:35:35 +00:00
Emile Joubert 7a10b4a7ec Interoperability fixes 2012-11-05 20:30:45 +00:00
Emile Joubert b88a0e3373 Increase test delay 2012-09-25 09:52:41 +01:00
Emile Joubert 11c2e485ec Prefer https to git protocol for firewall reasons 2012-09-17 15:37:02 +01:00
Emile Joubert 03dc8b5849 Make tests run from umbrella and pass more reliably 2012-09-17 14:57:31 +01:00
Emile Joubert a53c389211 Remove implicit rules for compiling java 2012-08-10 10:16:15 +01:00
Emile Joubert c904f78b2e Run tests from Makefile 2012-08-09 18:55:45 +01:00
Emile Joubert d3f4a2dc24 Updates 2012-08-05 23:52:54 +01:00
Emile Joubert ec215b34bd Clean sessions, and anonymous connections 2012-07-16 14:57:31 +01:00
Emile Joubert f79bf51275 Tests 2012-07-05 18:08:23 +01:00