summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* QPID-4822: Allow Variant::parse() to produce VAR_UINT64 types.Andrew Stitcher2013-05-081-0/+27
| | | | | | | | - Extend qpid::messaging::Variant string parser to output unsigned 64 bit type where relevant (positive integer larger than signed 64 bits) - Added some unit tests for the qpid::messageing::Variant string parser git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1480376 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4820: fix incorrect AMQP 0-10 typecodesGordon Sim2013-05-081-0/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1480327 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4668: Correct use of delivery count (should be 0 on first delivery)Gordon Sim2013-05-081-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1480236 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4798: Fix up c++ code generation to use stripped spec files.Alan Conway2013-05-021-1/+1
| | | | | | | | The stripped specs have no <doc> elements, this was tripping up the code generator. Fixed the generator to process <doc> elements if they are present but to carry on without them if they are not. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1478582 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4775: C++ Broker add ACL property checks for delete queue and exchange.Charles E. Rolke2013-05-021-7/+239
| | | | | | | | | 0-18-based patch from Pavel Moravec was adjusted for trunk. Removed size properties from list of queue deletion check parameters. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1478418 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4790: replace old client queue.delete api with QMF callKenneth Anthony Giusti2013-05-013-25/+23
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1477979 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4786: Only have one thread processing session queue at a timeGordon Sim2013-05-011-0/+37
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1477975 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4720: C++ Broker headers exchange tests not using run-time comaprisons.Charles E. Rolke2013-04-292-44/+129
| | | | | | | | Main code modified only slighty so that tests can hook into actual logic. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1477317 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4339: simple paged queue implementationGordon Sim2013-04-294-5/+45
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1477236 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4787: HA brokers find self-address in brokers_url.Alan Conway2013-04-291-16/+15
| | | | | | | | | HA brokers need to know their own addresses, but it is not safe to simply use local hosts name and Broker::getPort() since the broker may be listening on multiple addresses. The solution is to have brokers check the ha-rokers-url for their own address while doing the initial status check of the cluster. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1477165 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4631: C++ Broker federated links are protected by ACL policy.Charles E. Rolke2013-04-293-16/+113
| | | | | | | | | This issue evolved a bit between the original discussion and the final commit. See https://reviews.apache.org/r/10658/ for the details. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1477112 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4651: C++ Broker add --log-disable optionCharles E. Rolke2013-04-263-8/+164
| | | | | | | | Reviewed at https://reviews.apache.org/r/10799/ git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1476409 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4756: only invoke property update callback if properties are presentKenneth Anthony Giusti2013-04-261-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1476373 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4748: Fix compilation warnings introduced by r1469661.Alan Conway2013-04-261-12/+12
| | | | | | Added explicit conversion from double to int64_t. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1476295 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4748: Fix to test broken (trivially) by r1469661Gordon Sim2013-04-221-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1470610 13f79535-47bb-0310-9956-ffa450edef68
* Fix warning about uninitialised variable when running test under valgrind; ↵Gordon Sim2013-04-221-1/+1
| | | | | | caused by r1469088, QPID-3689 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1470605 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4756: enable updateStats callback for QMFv2 object notificationsKenneth Anthony Giusti2013-04-191-15/+31
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1469974 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4748: Consistent handling of durations in broker configuration, ↵Alan Conway2013-04-191-0/+44
| | | | | | | | | | | | | | | | | | | | allowing sub-second intervals. Provides string conversion for sys::Duration, allowing intervals to be expressed like this: 10.5 - value in seconds, backward compatible. 10.5s - value in seconds 10.5ms - value in milliseconds 10.5us - value in microseconds 10.5ns - value in nanoseconds Converted the folllowing broker options to Duration: mgmtPubInterval, queueCleanInterval, linkMaintenanceInterval, linkHeartbeatInterval Did not convert: maxNegotiateTime. This is expressed in milliseconds so it would not be backward compatible to make it a Duration. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1469661 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: fix sporadic federation test_pull_from_queue_recovery test failuresKenneth Anthony Giusti2013-04-171-4/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1469045 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4728: add 'credit' parameter to Federation Bridge configuration.Kenneth Anthony Giusti2013-04-112-29/+108
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1467107 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4735: ACL file size/count upper limit checks incorrectCharles E. Rolke2013-04-102-2/+95
| | | | | | | | | | Merge IntMin and IntMax functions into a single function to contain duplicated code. Improve log messages so that reading a log file is less painful. Turn on ACL debug logging for main broker in ACL self test. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1466652 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4727:C++ Broker ACL keyword to reference default exchange.Charles E. Rolke2013-04-081-0/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1465719 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4689: fix dropped heartbeat indications and object update callbacksKenneth Anthony Giusti2013-04-052-0/+204
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1465050 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4697: Minor fixes to make distcheckAlan Conway2013-04-031-47/+52
| | | | | | | | - add qmfengine.py to DIST. - create directory qpid/bindings/perl if not already present. - ssl_test: don't run python part of tests if python client not available. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1464018 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: fix ssl_test to run in older python and nss environments.Kenneth Anthony Giusti2013-03-271-69/+72
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1461804 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: add SSL test that verifies hostname in certificateKenneth Anthony Giusti2013-03-223-13/+140
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1460013 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4586: Add generic (and somewhat experimental) tool for creating, ↵Gordon Sim2013-03-213-2/+145
| | | | | | deleting and listing qpidd entities e.g. domains and incoming- or outgoing- links git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1459434 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4558: C++ broker selectors: Improved error reportingAndrew Stitcher2013-03-201-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1458610 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4624: Implement IN operator for C++ broker selectorsAndrew Stitcher2013-03-181-0/+7
| | | | | | | | | - Implemented parser for IN operator - Implement In operator evaluator and unit tests - Syntax is a bit wider than the spec allowing full expressions in the contents of the IN expression not just strings. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1457998 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4621: Arithmetic operations for C++ broker selectorsAndrew Stitcher2013-03-181-68/+153
| | | | | | | | | | | | | | | - Rearranged Syntax and parser to support arithmetic - Implemented arithmetic syntax - Implemented arithmetic operators - Added some tests for arithmetic operations - Added explicit lexical tokens for all the comparison and arithmetic operations - Added the missing ',' token for us in the 'IN' comparison - Rearranged the lexer so that everything is not uniformly inside the hand crafted state machine. - Moved a bunch of testing code from the tokeniser to the unit test (much of this code might actually not be very useful anymore) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1457912 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4640: Deprecate autotools build system.Alan Conway2013-03-151-34/+17
| | | | | | | | | | | | This patch does the following: - Update INSTALL and README files to refer to the cmake build. - configure script prints a deprecation notice. The autotools instructions are still available in INSTALL-AUTOTOOLS, which also has a deprecation notice. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1457098 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4640: brokertest.py prints a message and skips tests if qmf.console not ↵Alan Conway2013-03-151-1/+4
| | | | | | | | | | available. Tests that use qmf.console will print a skip message if it is not available. For example: they may not be available when building from a distro rather than a checkout. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1457097 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4623: Fixed the unit test for unknown valuesAndrew Stitcher2013-03-151-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1457062 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4623: Fixed unknown semantics of "between" comparisonAndrew Stitcher2013-03-151-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1457058 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4623: Implemented parser and evaluator for BETWEEN comparisonsAndrew Stitcher2013-03-151-0/+7
| | | | | | | | | - The implementation uses a custom between operator rather than desugaring the syntax, because we can avoid repeated evaluation of the expression bing compared that way (this will also be true for the IN comparison operator). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1457029 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4649: use qpid uuid library instead of pythonKenneth Anthony Giusti2013-03-153-6/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1456950 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4586: add ability to have qpidd establish outgoing connectionsGordon Sim2013-03-146-1/+193
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1456621 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4622: Implement 'LIKE' string matching operations in selectorAndrew Stitcher2013-03-141-0/+11
| | | | | | | | | - This implements <expression> [NOT] LIKE <string> [ESCAPE <character>] - The implementation uses the posix regex library (in BRE mode) on Unix systems - It uses std::tr1::regex on Visual Studio (in std::tr1::regex::basic mode) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1456561 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4559 - Added handling of the queue-delete preconditions in the qmf ↵Ted Ross2013-03-131-1/+38
| | | | | | | | | broker method. Patch contributed by Ernie Allen. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1456081 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4576: commit "ready" message if session is transactional; patch from ↵Gordon Sim2013-03-121-1/+4
| | | | | | Pavel Moravec git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1455549 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Separate catch/finally blocks in ha_tests.py to work on older python.Alan Conway2013-03-121-35/+36
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1455540 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4630: HA Fix starting from persistent store.Alan Conway2013-03-071-13/+11
| | | | | | | | | | This was implemented in r1390123 but broken by subsequent changes. When re-starting a persistent HA cluster, the broker that becomes primary keeps its recovered queues while backup brokers discard their recovered queues and catch up from the primary. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1453971 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4630: HA enable store tests if legacystore is built.Alan Conway2013-03-073-3/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1453970 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4558: Selectors for C++ broker - fixes windows builds and 32-bit buildsCharles E. Rolke2013-03-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1453898 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4558: Selectors for C++ brokerAndrew Stitcher2013-03-061-6/+2
| | | | | | | - Changed unit test code that relied on non C++03 feature Windows compiler spotted this problem. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1453536 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4558: Selectors for C++ brokerAndrew Stitcher2013-03-041-45/+143
| | | | | | | | | | | | | - Added numeric and boolean values * To literals and identifier values * To the code that extracts values from message properties - Added the full set of comparison operators - Implemented full "unknown" semantics for all operators. - Implemented extended "is null" and "is not null" operators that allow expressions as well as just identifiers. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1452525 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4558: Selectors for C++ brokerAndrew Stitcher2013-03-043-0/+222
| | | | | | | | | | | | | | | | | | | - Initial Selectors implemented: * Only string values supported (no numerics or bools) - Parses and executes the forms: * A=B * A<>B * I IS NULL * I IS NOT NULL - where A, B are strings or identifiers - I is an identifier * Conditional expressions can include the AND, OR and NOT operators and use parentheses. - Only limited special identifiers return useful values (although they are all recognised) - Unit tests for selector language git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1452523 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4604: C++ Broker queue limits controlled by ACL file. Patch from Ernie ↵Charles E. Rolke2013-03-011-39/+123
| | | | | | | | | | Allen. See https://reviews.apache.org/r/9703/ git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1451737 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4582: Legacystore self test fail. Remove them from the test buildCharles E. Rolke2013-03-011-1/+1
| | | | | | | | until the tests are rewritten to account for porting issues. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1451642 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4607: C++ Broker connection limit counting failsCharles E. Rolke2013-02-271-68/+78
| | | | | | | | | | | | | | | Repair a few small but critical errors in program logic. Repair several misconceptions in the self test including: * provide visibility to connections (not sessions) so that they may be closed. * dodge names that may survive open connections from other tests. Tests may pass if run first but then fail if run 30th. The whole acl.py module could use a clean up pass to close out the 50+ open connections that exist that the end of the test. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1450841 13f79535-47bb-0310-9956-ffa450edef68