Commit Graph

158 Commits

Author SHA1 Message Date
Dejan Bosanac fc3d90e8b7 https://issues.apache.org/jira/browse/AMQ-5377 - mqtt wildcard conversion 2014-10-01 12:18:32 +02:00
Daniel Kulp d510b8b334 Remove some unneeded repos, move one to just the module that needs it, add a defaultGoal 2014-08-19 12:15:46 -04:00
Timothy Bish eaed01992e fix the test builds. 2014-08-13 09:37:18 -04:00
Timothy Bish 59f8cfc604 https://issues.apache.org/jira/browse/AMQ-5290
Minor cleanup, change transport option from subscriptionStrategyName to
just subscriptionStrategy.
2014-08-12 14:59:51 -04:00
Timothy Bish ec049a0882 https://issues.apache.org/jira/browse/AMQ-5290
Some more refactorings to allow the strategies to have more control of
the subsciption model in use.
2014-08-11 14:03:35 -04:00
Timothy Bish 145b64ac2a Fix test name so it gets included in the surefire test runs. 2014-08-08 17:41:50 -04:00
Christian Posta c42b874972 Test for https://issues.apache.org/jira/browse/AMQ-5290 2014-08-06 15:53:39 -07:00
Timothy Bish 413e4840d6 https://issues.apache.org/jira/browse/AMQ-5290
Adds a subscription strategy model where the default is the normal
durable topic subscription based approach or a strategy that maps all
subscriptions and publish operations to a Virtual Topic model.  A
network of brokers can network the Queues instead of having the durable
topics subscriptions repaeted on each Broker.
2014-08-06 17:41:19 -04:00
Timothy Bish 052d293143 https://issues.apache.org/jira/browse/AMQ-5308
Improve performance of the codec for large message processing.
2014-08-05 12:43:36 -04:00
Dejan Bosanac c99e2d8372 https://issues.apache.org/jira/browse/AMQ-4719 - allowLinkStealing was not set/used properly by default on mqtt connector 2014-08-05 16:23:45 +02:00
Timothy Bish 7c04ead460 https://issues.apache.org/jira/browse/AMQ-5307
Fixed the MQTTCodec to properly handle frames that come in split up or
bunched together.
2014-08-04 18:58:03 -04:00
Timothy Bish d8f9686d2a https://issues.apache.org/jira/browse/AMQ-5290
Clean up some code to make future work a bit simpler.
2014-07-31 17:49:59 -04:00
Timothy Bish 5de0c8e2fb https://issues.apache.org/jira/browse/AMQ-5298
Fix the NPE case
2014-07-31 17:23:35 -04:00
Timothy Bish efa55278ec https://issues.apache.org/jira/browse/AMQ-5299
Fix duplicate call to unsubscribe.
2014-07-30 20:03:48 -04:00
Timothy Bish 2cd54248c6 https://issues.apache.org/jira/browse/AMQ-5290
Reduce memory overhead of the MQTT Protocol converter by not storing the
UTF8Buffer instances and instead simply store the needed String values.
We always access the String value anyway so all of the UTF8Buffer object
we store carry the overhead of both marshalled UTF-8 bytes and an
unmarshalled String object.
2014-07-30 12:00:38 -04:00
Timothy Bish 829a186f2a Revert to using non-parameterized tests, makes it simpler to debug. 2014-07-29 20:16:00 -04:00
Timothy Bish f55edcfa25 https://issues.apache.org/jira/browse/AMQ-5187
Allow virtual destination to recover retained messages.
2014-07-29 17:20:25 -04:00
Timothy Bish b11fc8faf4 Updated link stealing test to account for isConnected state not being
immediately updated which can lead to failure on a very fast machine.
2014-07-29 15:08:52 -04:00
Dhiraj Bokde bba026a42e Removed redundant broker stop/start in unit test 2014-07-28 14:24:38 -07:00
Dhiraj Bokde e8c5a9fdb4 https://issues.apache.org/jira/browse/AMQ-4719 added enableLinkStealing=true for MQTTSslTransportFactory, test for duplicate client ids for MQTT 2014-07-28 14:15:02 -07:00
Timothy Bish 8d04e2be8e Remove unneeded broker stop / start at test begin. 2014-07-28 15:57:08 -04:00
Dhiraj Bokde 73908d6498 https://issues.apache.org/jira/browse/AMQ-5292 Added support for publishDollarTopics transport option for MQTT to support Topics with '$' prefix 2014-07-28 12:38:43 -07:00
Timothy Bish 619864dd42 https://issues.apache.org/jira/browse/AMQ-5288
Fix MQTT to return meaningful error codes on connect fail.
2014-07-24 13:31:17 -04:00
Timothy Bish fb569e3fbc Refactored MQTT test suite to use parameterized tests and ensure that
the various tests are run on the currently supported transport
connectors.
2014-07-23 18:46:11 -04:00
Timothy Bish 93f686c5cf Test code cleanup 2014-07-23 15:57:52 -04:00
Daniel Kulp 4de5219a8f No point in waiting around for 5 seconds to prove that nothing will be received. 4 minutes off tests. 2014-07-21 15:56:05 -04:00
Timothy Bish 3653f81b5b https://issues.apache.org/jira/browse/AMQ-5233
Return the right code when a client connects with bad credentials.
2014-07-21 15:55:06 -04:00
Kevin Earls eae2112028 Exclude some MQTT tests on HP-UX, see AMQ-5267 2014-07-10 10:32:20 +02:00
Kevin Earls d4a376d885 added/updated timeouts to help resolve CI failures 2014-07-09 16:24:03 +02:00
Dejan Bosanac fa086396a7 [maven-release-plugin] prepare for next development iteration 2014-06-05 11:59:29 +02:00
Dejan Bosanac 58dd93e42e [maven-release-plugin] prepare release activemq-5.10.0 2014-06-05 11:59:17 +02:00
Dejan Bosanac c2cf78542f [maven-release-plugin] prepare for next development iteration 2014-06-04 11:33:17 +02:00
Dejan Bosanac 5bc741f227 [maven-release-plugin] prepare release activemq-5.10.0 2014-06-04 11:33:03 +02:00
Dhiraj Bokde 6c859676b3 Fixed AMQ-5160, fixed durable subscription retroactive recovery 2014-05-26 11:07:19 +02:00
Dhiraj Bokde 8644090377 Fixed AMQ-5160, fixed race condition for retained messages 2014-05-26 11:07:19 +02:00
Dhiraj Bokde 70f7c5805c Fixed AMQ-5160, fixed test testNoMessageReceivedAfterUnsubscribeMQTT 2014-05-26 11:07:19 +02:00
Dhiraj Bokde 0a39782bf5 Fixed AMQ-5160, polished MQTT tests 2014-05-26 11:07:19 +02:00
Dhiraj Bokde 88c6ee97e0 Fixed AMQ-5160, remove durable subscription in onUnsubscribe() 2014-05-26 11:07:19 +02:00
Dhiraj Bokde b36adffe71 Fixed AMQ-5160, removed redundant MQTTRetainedMessages 2014-05-26 11:07:19 +02:00
Dhiraj Bokde a581d010aa Fixed AMQ-5160, Added RegionBroker.getConnectionContext(), made Topic.recoverRetroactiveMessages() public to force message recovery from MQTTProtocolConverter for duplicate subscriptions, added new tests for retained messages and JMX interoperability 2014-05-26 11:07:18 +02:00
Dhiraj Bokde bcb60a482c Partial fix for AMQ-5160, attempts to resolve retained messages using subscription recovery policy, but fails to resend retained messages for duplicate subscriptions 2014-05-26 11:07:18 +02:00
Dejan Bosanac 64baf092f0 https://issues.apache.org/jira/browse/AMQ-5160 - test for retained messages wildcard security issue 2014-05-06 11:44:28 +02:00
Hadrian Zbarcea 4215db2f26 Temporarily disable failing test 2014-05-01 15:25:31 -04:00
Timothy Bish f4a8b117ce https://issues.apache.org/jira/browse/AMQ-5127
Add test case to show this is now fixed in 5.10
2014-03-31 12:42:44 -04:00
Timothy Bish 45c0dfb2bc https://issues.apache.org/jira/browse/AMQ-5092
Add patch that fixes the missing test case.
2014-03-24 10:16:12 -04:00
Timothy Bish afddc1a832 https://issues.apache.org/jira/browse/AMQ-5092
Apply patch3 to fix packet id generation
2014-03-21 17:10:06 -04:00
Dejan Bosanac 9c67f0df71 https://issues.apache.org/jira/browse/AMQ-5112 - improving mqtt tests 2014-03-21 11:25:32 +01:00
Dejan Bosanac 4ba4aa21d3 https://issues.apache.org/jira/browse/AMQ-5112 - mqtt transport thread safety 2014-03-20 11:31:44 +01:00
gtully bf8eb0e6ca https://issues.apache.org/jira/browse/AMQ-5108 - MQTT subscriptions for cleansession=true MUST be non-durable - patch applied with thanks to Dhiraj Bokde 2014-03-19 14:24:51 +00:00
Dejan Bosanac ac23b01749 AMQ-5101 - MQTT SUBACK packet MUST use return code 0x80 to report failed topic subscriptions 2014-03-14 14:10:12 +01:00
gtully 67f151fe0b https://issues.apache.org/jira/browse/AMQ-5092 - apply patch from Dhiraj Bokde with thanks 2014-03-12 13:00:38 +00:00
Hiram Chirino e7e317dc7e Applying patch AMQ-5074: MQTT paths with empty levels are not handled correctly.
Thanks Dhiraj!
2014-02-24 09:05:23 -05:00
Timothy Bish 7e56f348bc https://issues.apache.org/jira/browse/AMQ-5066
apply patch after review
2014-02-19 14:12:49 -05:00
Timothy Bish 0db7e69b4e https://issues.apache.org/jira/browse/AMQ-5065
Patch applied.
2014-02-19 14:09:34 -05:00
Timothy Bish b97fa15d53 https://issues.apache.org/jira/browse/AMQ-5059
apply patch
2014-02-17 13:33:07 -05:00
Timothy Bish b679787917 https://issues.apache.org/jira/browse/AMQ-5058 2014-02-17 12:35:33 -05:00
Hadrian Zbarcea 7b555c2898 AMQ-5047. Fix packaging issues related to maven version 2014-02-15 16:15:04 -05:00
Timothy Bish a059bf4a90 https://issues.apache.org/jira/browse/AMQ-5051
fix potential NPE
2014-02-13 16:39:12 -05:00
Hiram Chirino 706830268e More improvements for AMQ-5043. Drop all messages sent to topics starting '$' to honor MQTT 3.1.1 spec requirments. 2014-02-12 13:53:18 -05:00
Hiram Chirino 6e68a37115 More improvements for AMQ-5043. Reworked the MQTT inactivity monitor so that it's more accurate. 2014-02-12 13:26:16 -05:00
Hiram Chirino e2a7d6af5a More improvements for AMQ-5043. 2014-02-12 10:59:40 -05:00
Hiram Chirino 9735806030 Attempts to fix many of the compatibility issues with MQTT highlighted by AMQ-5043. 2014-02-11 17:53:24 -05:00
Kevin Earls c027552035 Upgraded surefire plugin to 2.16. AMQ-5006 2014-01-30 14:22:44 +01:00
Hiram Chirino ad3041034b Implements AMQ-4990: Add support for the changes in MQTT 3.1.1 2014-01-24 09:18:12 -05:00
Kevin Earls 18e163de5e Added @Ignore to testReceiveMessageSentWhileOffline as it was failing regularly on both. See AMQ-4712 2014-01-21 15:10:26 +01:00
rajdavies 6683eb652f Fix for https://issues.apache.org/jira/browse/AMQ-4927 2013-12-10 13:36:09 +00:00
Hiram Chirino bc4f4e92a6 Fixes AMQ-4896 - MQTT does not properly restore durable subs with the Paho client. 2013-11-18 12:11:34 -05:00
Hiram Chirino 030c2cca31 Fixing AMQ-4892: MQTT clients disconnecting due to socket error do not publish the configured last will and testament message. 2013-11-15 15:51:15 -05:00
Kevin Earls e57aeb3786 Changed timeouts to 1 minute from 30 because of occasional long runs on CI boxes. None of these tests takes more than 5 seconds on my mac 2013-11-14 15:33:26 +01:00
Hiram Chirino 02a821defe Improve the Paho over NIO tests, allow scaling the test using a -DPahoMQTNioTTest.CLIENTS=xxxx mvn build arg. 2013-11-12 10:55:51 -05:00
Hiram Chirino 61fadba43a Adding Paho over NIO tests. 2013-11-12 09:55:37 -05:00
Rob Davies d2ddd1dcad Fix for https://issues.apache.org/jira/browse/AMQ-4719 2013-11-12 08:08:42 +00:00
Hiram Chirino bc9751ac23 Adding an mqtt test that uses the eclipse paho client. 2013-11-11 16:06:59 -05:00
gtully 864aa6798f [maven-release-plugin] prepare for next development iteration 2013-10-14 23:38:35 +01:00
gtully 87c9bbebac [maven-release-plugin] prepare release activemq-5.9.0 2013-10-14 23:38:22 +01:00
gtully ee0933c71e [maven-release-plugin] prepare for next development iteration 2013-10-11 14:51:36 +01:00
gtully b276006911 [maven-release-plugin] prepare release activemq-5.9.0 2013-10-11 14:51:24 +01:00
Christian Posta a63a8320ea Fix for https://issues.apache.org/jira/browse/AMQ-4695 where user could not subscribe anonymously even though authn and authz was set up for it 2013-09-03 12:05:00 -07:00
Christian Posta e59ea6d03f added test from mailing list to show MQTT --> JMS mapping works with BytesMessage
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1517556 13f79535-47bb-0310-9956-ffa450edef68
2013-08-26 15:21:15 +00:00
Christian Posta 4dc1ddcd21 added quick test for cleanSession=false and wildcard sub for MQTT from IRC chat
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1513655 13f79535-47bb-0310-9956-ffa450edef68
2013-08-13 21:09:40 +00:00
Robert Davies 8335dfcf77 added test for unsubscribe
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1500057 13f79535-47bb-0310-9956-ffa450edef68
2013-07-05 16:21:28 +00:00
Robert Davies 72e484c68f fixed some failing tests
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1499843 13f79535-47bb-0310-9956-ffa450edef68
2013-07-04 18:57:49 +00:00
Bosanac Dejan 33ec1cf99b https://issues.apache.org/jira/browse/AMQ-4617 - mqtt over ws protocol
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1499777 13f79535-47bb-0310-9956-ffa450edef68
2013-07-04 14:54:29 +00:00
Timothy A. Bish e2b932ef03 test case for: https://issues.apache.org/jira/browse/AMQ-4585
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1494283 13f79535-47bb-0310-9956-ffa450edef68
2013-06-18 20:22:51 +00:00
Timothy A. Bish 2484c67cb1 test case for: https://issues.apache.org/jira/browse/AMQ-4585
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1494222 13f79535-47bb-0310-9956-ffa450edef68
2013-06-18 17:37:01 +00:00
Timothy A. Bish 3845c7caa7 fix and test for: https://issues.apache.org/jira/browse/AMQ-4576
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1492447 13f79535-47bb-0310-9956-ffa450edef68
2013-06-12 22:10:34 +00:00
Hiram R. Chirino e168b3cd6e No need to send MQTT debugging to console anymore.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1484318 13f79535-47bb-0310-9956-ffa450edef68
2013-05-19 17:20:30 +00:00
Hiram R. Chirino f20e17ae32 Latest hawtdispatch snapshot should fix the hang in the MQTT SSL test.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1484012 13f79535-47bb-0310-9956-ffa450edef68
2013-05-17 22:03:38 +00:00
Hiram R. Chirino 1ee9848d9b Also log SSL info.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1483952 13f79535-47bb-0310-9956-ffa450edef68
2013-05-17 19:06:39 +00:00
Hiram R. Chirino d2d41805c5 Add more logging to aid in failing test diagnosis.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1483838 13f79535-47bb-0310-9956-ffa450edef68
2013-05-17 14:59:08 +00:00
Hiram R. Chirino 5bb563dd1c Send logging to console so we can troubleshoot the build failures on the CI machines easier.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1483593 13f79535-47bb-0310-9956-ffa450edef68
2013-05-16 22:22:41 +00:00
Hiram R. Chirino e0ae445900 For AMQ-4338: Lets see if using a newer MQTT client helps. Also hook into the client tracing and use the auto fail test support base class to timeout the tests if they take too long.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1481092 13f79535-47bb-0310-9956-ffa450edef68
2013-05-10 16:52:47 +00:00
Timothy A. Bish 7b5f9563cd Fix for: https://issues.apache.org/jira/browse/AMQ-4392
Unregister the connection on the Broker side so client's with the same client ID can reconnect. 

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1458900 13f79535-47bb-0310-9956-ffa450edef68
2013-03-20 15:56:12 +00:00
Timothy A. Bish a42420d444 Use the client and server keystore from the activemq-unit-tests module since the current ones in activemq-mqtt are expired.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1457054 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 18:37:03 +00:00
Timothy A. Bish bba7b38d2f Fix test name and drop the message count to 1000 which should be plenty.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1451009 13f79535-47bb-0310-9956-ffa450edef68
2013-02-27 22:35:20 +00:00
Timothy A. Bish f60da9866f Apply patch for: https://issues.apache.org/jira/browse/AMQ-4338
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1450366 13f79535-47bb-0310-9956-ffa450edef68
2013-02-26 19:16:06 +00:00
Timothy A. Bish 6e8bd45180 add patch for: https://issues.apache.org/jira/browse/AMQ-4338
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1448470 13f79535-47bb-0310-9956-ffa450edef68
2013-02-20 23:17:15 +00:00
Gary Tully 56174e770d [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1443026 13f79535-47bb-0310-9956-ffa450edef68
2013-02-06 15:45:26 +00:00
Gary Tully 5e257808f3 [maven-release-plugin] prepare release activemq-5.8.0
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1443024 13f79535-47bb-0310-9956-ffa450edef68
2013-02-06 15:43:41 +00:00
Timothy A. Bish a55aae00e7 Scrub the pom files and remove old cruft and leftovers from the recent refactoring
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1439680 13f79535-47bb-0310-9956-ffa450edef68
2013-01-28 22:44:25 +00:00