Commit Graph

8573 Commits

Author SHA1 Message Date
Timothy Bish ace101a03a https://issues.apache.org/jira/browse/AMQ-5560
Use the type descriptor and not the key, also check object type since
Map from Proton is not enforcing.  Remove some dead code and uneeded
mutex locks for id generation.
2015-03-05 12:40:47 -05:00
Jeff Genender 58ed95d7c8 AMQ-5636 - Update DBCP to a much more recent version 2015-03-05 08:36:26 -07:00
gtully ab28b771e3 https://issues.apache.org/jira/browse/AMQ-5640 - fix by ensuring parent stat is updated on dest init, thanks for the nice test Torsten 2015-03-05 14:46:59 +00:00
gtully 42b606da9d seems 3 or 4 journal files are needed - on occasion test fails with 4 2015-03-05 14:29:20 +00:00
gtully 8c66fba0aa https://issues.apache.org/jira/browse/AMQ-5568 - fix and test - only delete lock file if lock was held on stop 2015-03-05 13:27:40 +00:00
gtully 113a3815b0 remove deprecated usage of junit framework 2015-03-05 13:27:40 +00:00
Timothy Bish 00e4b25357 https://issues.apache.org/jira/browse/AMQ-5621
Test cleanup
2015-03-04 18:40:31 -05:00
Timothy Bish 6380bf3762 https://issues.apache.org/jira/browse/PROTON-833
Clean up a couple more tests.
2015-03-04 18:16:59 -05:00
gtully 5313ad8a96 remove stack trace from auth failure log warn - stack trace is already covered by debug service level logging 2015-03-04 22:06:05 +00:00
gtully 11afd5f0bc https://issues.apache.org/jira/browse/AMQ-5639 - implement and test - relaxing the restriction on advisories to those that are relevant to the bridge 2015-03-04 21:33:00 +00:00
Timothy Bish fe9e38622d Merge branch 'master' into amqp-sasl-auth 2015-03-04 14:10:50 -05:00
Timothy Bish 67ccfcad88 https://issues.apache.org/jira/browse/AMQ-5470
Allow for early SASL authentication and failure if credentials not
valid.
2015-03-04 14:06:04 -05:00
Robert Gemmell 6b18857b53 AMQ-5637: support mapping between the AMQP Subject field and JMSType header
https://issues.apache.org/jira/browse/AMQ-5637
2015-03-04 18:44:23 +00:00
Daniel Kulp cad1a2a8cd Open up the xbean osgi import range to include 4.x 2015-03-04 12:43:44 -05:00
Timothy Bish 7fdfdeba79 https://issues.apache.org/jira/browse/AMQ-5621
Turn off JMX, switch to JUnit 4 style test with timeout, actually
shutdown the running broker and clean up in tear down method.
2015-03-04 10:44:03 -05:00
Dejan Bosanac ac24a08b8b IDERunner util class that can run full distro from IDE 2015-03-04 11:57:37 +01:00
Timothy Bish 257a4fa416 https://issues.apache.org/jira/browse/AMQ-5621
Clean up test, don't start JMX connector as it is not needed, add
timeout.
2015-03-03 19:16:28 -05:00
Timothy Bish 4d5bb4ab7b https://issues.apache.org/jira/browse/AMQ-5629
Fix exception string to reflect type being read.
2015-03-03 16:51:21 -05:00
Timothy Bish 4b346360be https://issues.apache.org/jira/browse/AMQ-5628
Fix getDouble to use Double.valueOf instead of Float.valueOf for
conversions.
2015-03-03 16:28:28 -05:00
Timothy Bish 6e038d5ffd https://issues.apache.org/jira/browse/AMQ-5632
Return null from getBytes if no value present.
2015-03-03 16:17:40 -05:00
Timothy Bish ad57cc6fcb https://issues.apache.org/jira/browse/AMQ-5631
Support for temporary topic delete
2015-03-03 15:55:28 -05:00
Timothy Bish 2ec586f267 https://issues.apache.org/jira/browse/AMQ-5593
Add support for JMS mapping compliant temp topic and temp queue creation
as well as responding correctly to authorization errors if the
connection has no rights to create them.  Also cleans up code to use a
consistent createDestination implementation that uses the names only and
not attempt to interpret the client only destination annotations.
2015-03-03 13:02:36 -05:00
gtully 741e3aad3e https://issues.apache.org/jira/browse/AMQ-5630 - add rejectDurableConsumers boolen attribute - when true, requests to create durable subscriptions will fail with a JMSException - not allowed 2015-03-03 13:30:10 +00:00
Timothy Bish 4fe2bd534a https://issues.apache.org/jira/browse/AMQ-5622
Fix some issues with STOMP v1.2 protocol support.
2015-03-02 16:12:44 -05:00
Timothy Bish bb83bf5746 https://issues.apache.org/jira/browse/AMQ-5606
if the client throws the correct exception type, don't fail the test.
2015-03-02 11:19:57 -05:00
gtully ecebd2413b https://issues.apache.org/jira/browse/AMQ-5626 - fix and test. on restart, next index needs to ingore priority to find the last used entry 2015-03-02 14:44:58 +00:00
gtully 260e28ecad https://issues.apache.org/jira/browse/AMQ-5620 - avoid potential deadlock on shutdown - waiting on connections to stop before stopping the pa would be an alternative but may block for ever, auto rollback ensures there is no need 2015-03-02 14:44:58 +00:00
Dejan Bosanac 4f57744934 https://issues.apache.org/jira/browse/AMQ-5594 - mqtt and virtual topic subs; more refined removing of destinations, as we don't want to remove all descendant destination in a wildcard case 2015-03-02 14:40:07 +01:00
Timothy Bish adef03e5a4 https://issues.apache.org/jira/browse/AMQ-5617
Fix tests to always set an client ID for the durable subscription cases,
the legacy client doesn't seem to care but the new one will throw an
exception if not set.
2015-02-27 19:11:01 -05:00
Timothy Bish 709b64b3d2 https://issues.apache.org/jira/browse/AMQ-5621
Remove need for hard sleep
2015-02-27 16:22:26 -05:00
Timothy Bish 0683d8be94 https://issues.apache.org/jira/browse/AMQ-5621
This test doesn't need to bind to the RMI connector to create Queue via
the JMX MBean.
2015-02-27 15:39:03 -05:00
Timothy Bish 84c1419c3d https://issues.apache.org/jira/browse/AMQ-5621
Add the ability to toggle the default value of the ManagementContext
createConnector variable and set it to false for the surefire runs of
the unit tests, this should resolve failures of tests for no other
reason than a previous test failed to shutdown its broker.  Also speeds
up tests as they don't need to create this resource in order to use the
MBeans.
2015-02-27 14:59:31 -05:00
Timothy Bish 7af7c0143f https://issues.apache.org/jira/browse/AMQ-5597
Clean up the durable subscription unsubscribe handling to be in line
with the AMQP JMS mapping spec and switch to the QPid 0.32-SNAPSHOT
build for now to allow us to track and other changes we might want to
feed back there before release.
2015-02-27 12:18:49 -05:00
Timothy Bish 5667e4ddcc https://issues.apache.org/jira/browse/AMQ-5621
Disable the JMX bits on some additional tests that don't use it.
2015-02-26 19:26:41 -05:00
Timothy Bish b5ef92814e https://issues.apache.org/jira/browse/AMQ-5617
Direct all the JMSClient tests to use the indirect calls to create their
connection, the Joram tests are a bit harder to make generic and can
wait for now.
2015-02-26 17:35:04 -05:00
Timothy Bish eaf773da57 https://issues.apache.org/jira/browse/AMQ-5617
Fix test failure and give it a more meaningful name.
2015-02-26 16:06:33 -05:00
Timothy Bish 276ef15024 remove a warning. 2015-02-26 15:23:26 -05:00
Timothy Bish 240278dbef https://issues.apache.org/jira/browse/AMQ-5617
Consolidate remaining dirct JMS client type usages to the context.
Rename some tests so be consistent.
2015-02-26 15:22:45 -05:00
Timothy Bish 8f0bf6060a https://issues.apache.org/jira/browse/AMQ-5617
Refactor as a general test case that covers the scenario accross all the
transport types.
2015-02-26 15:06:16 -05:00
Timothy Bish 4fa420bbd1 https://issues.apache.org/jira/browse/AMQ-5617
Absorbe these into the general JMSClientTest that covers all four
transport types.
2015-02-26 14:48:57 -05:00
Timothy Bish 12202c9702 https://issues.apache.org/jira/browse/AMQ-5617
Rename these and move to the general tests folder as they cover specific
use cases that are applicable beyond the issue the were created for.
2015-02-26 14:47:12 -05:00
Timothy Bish 7a8085c0a4 https://issues.apache.org/jira/browse/AMQ-5617
Remove this older test as the test in JMSClientTest ->
testProduceConsumer covers this accross all four transport variants.
2015-02-26 14:35:51 -05:00
Timothy Bish 79568f16cc https://issues.apache.org/jira/browse/AMQ-5621
Cleanup a couple to show what can be done to reduce test time.
2015-02-26 14:27:34 -05:00
Timothy Bish f00d2fbde4 Remove the AMQ option from the PersistenceAdapterChose enum as that one
is long gone.
2015-02-26 10:40:18 -05:00
Timothy Bish 36bd069e8f https://issues.apache.org/jira/browse/AMQ-5617
First pass removes most direct usages of the qpid client bits and cleans
up some tests so that they all start to use the common test support
class features.
2015-02-25 21:16:33 -05:00
Timothy Bish f988ca6e49 https://issues.apache.org/jira/browse/AMQ-5615
reorganize the connection response code to only pump once all state is
process.
2015-02-25 10:17:40 -05:00
gtully 0142c4dc89 https://issues.apache.org/jira/browse/AMQ-5614 - additional expiration attribute on dead letter strategy and tests 2015-02-25 14:32:43 +00:00
gtully be919fbc94 https://issues.apache.org/jira/browse/AMQ-4483 - rework to use destination option to indicate dlq, dlq strategy is typically not in place for dlq dests, option is set when a dlq is first used via region broker sendTodlq, fix and tests 2015-02-25 14:32:43 +00:00
Timothy Bish 441973b483 Bump logging to see if we can tell why the session commit hangs in the
transacted consumer test.
2015-02-24 13:34:12 -05:00
Timothy Bish 02dc6ce982 Clean up some tests, reduce resources used and reduce runtime, convert
to JUnit 4 when possible and add timeouts.
2015-02-23 19:53:14 -05:00