summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* QPID-4631: Lock down link creation using ACLqpid-4631Charles E. Rolke2013-04-184-8/+4
| | | | | | | | This commit makes link creation contingent on having an ACL file and then having an ACL rule approve the request. There is no longer a requirement for an explicit CREATE LINK rule; either 'allow all all' or 'deny all all' is sufficient. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/qpid-4631@1469525 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4631 create link lockdown - fix sasl_fed testCharles E. Rolke2013-03-271-0/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/qpid-4631@1461813 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4631: C++ Broker interbroker links protected by ACLCharles E. Rolke2013-03-222-3/+7
| | | | | | | | federation and federation-sys tests need acl file to allow link creation git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/qpid-4631@1459854 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4631: C++ Broker interbroker links protected by ACLCharles E. Rolke2013-03-221-0/+11
| | | | | | | | | This patch has the Acl code to observe CREATE LINK rules and the new link cration logic in the broker connection handler. Several self tests are broken by this patch and only ha_test.py has been repaired. The fix for these self tests are indicators of what customers must do to deal with this new feature. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/qpid-4631@1459822 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
* QPID-4601: HA backup broker shuts down after redeclaring exchangeAlan Conway2013-02-261-0/+15
| | | | | | | There was a bug in ExchangeRegistry, it was always setting disp=created even if the exchange was already present. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1450383 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4603: Teach qpid-send to send bool/int/float properties as well as stringsAndrew Stitcher2013-02-261-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1450289 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4116: Allow the path to qpid-send and qpid-receive programs to be ↵Gordon Sim2013-02-151-3/+7
| | | | | | specified; patch from Pavel Moravec. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1446578 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Rationalised unit test buildAndrew Stitcher2013-02-141-37/+48
| | | | | | | | | - Made an empty list of unit tests to build actually build all tests and made the default list empty, this gives much better behaviour in the usual case when adding and removing tests - Also sorted list of unit tests git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1446233 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4054: C++ Broker connection limits specified per-userCharles E. Rolke2013-02-123-1/+78
| | | | | | | | | | | | | | From the self-test log file: 2013-02-12 15:33:53 [Broker] notice Changing log hires timestamp to 1 2013-02-12 15:33:53.219003940 [Broker] debug Broker::setLogHiresTimestamp() ... 2013-02-12 15:33:53.491318800 [Broker] notice Changing log hires timestamp to 0 2013-02-12 15:33:53 [Broker] debug Broker::setLogHiresTimestamp() git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1445358 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4054 C++ Broker connection limits per userCharles E. Rolke2013-02-091-7/+215
| | | | | | | | | | | | | | 1. Constrain maximum limits to be a few ticks below Uint16_t max to avoid inadvertent wrapping and to allow room for some named constants such as UNLIMITED. 2. Add syntax to Acl rule file quota connections N user|group [user|group] 3. Pseudo user 'all' receives value from command line switch or from Acl rule file. 4. Named constant strings used in comparisons instead of local strings. 5. Connection counts maintained all the time to support reolad of Acl rule file that may change limits. 6. Self tests exercise all the features. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1444302 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4555: HA Primary sets explicit qpid.replicate in Queue and Exchange ↵Alan Conway2013-02-071-7/+11
| | | | | | | | | | | | | | | arguments. Previously both Primary and Backup would calculate the qpid.replicate value independently, assuming the result would be the same. In the case of exclusive queues, the exclusivity can change over time so its possible that primary and backup won't agree. Now only Primary does the calculation with exclusive, auto-delete etc. and puts an explicity qpid.replicate in the queue or event arguments. Backup uses the value set by primary. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1443678 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4555: HA Check for backup ready when new backup joins.Alan Conway2013-02-071-0/+2
| | | | | | | | | This test was missing so if there were no backed-up queues the backup would never be marked ready. It was workig because of a separte bug: auto-delete/exclusive queues were being replicated incorrectly so there were always replicated queues (temp queues created by qpid-ha) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1443677 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4555: HA Test bugs causing sporadic faiulres in ↵Alan Conway2013-01-312-12/+19
| | | | | | | | | | | | ha_tests.ReplicationTests.test_auto_delete_timeout The tests were not waiting for the cluster to be ready before starting. Updated HaCluster to wait by default before returning. Increase timeout in calls to wait_no_queue, the default timeout of 1 sec was the same as the auto-delete timeout. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1441157 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4546: review feedback and re-enable federation system testsKenneth Anthony Giusti2013-01-221-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1437188 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Add brokertest.py to EXTRA_DIST, required by ha_tests.py.Alan Conway2013-01-141-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1433143 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Clean up cluster code: remove unused testlib.pyAlan Conway2013-01-141-766/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1433072 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Clean up cluster code: sasl_fed_ex testAlan Conway2013-01-141-81/+11
| | | | | | Clean up obsolete code sasl_fed_ex related to defunct cluster testing. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1433056 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Clean up cluster code: Obsolete management import/export functions.Alan Conway2013-01-141-355/+0
| | | | | | Remove management fucntions used to import/export data from the cluster module. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1433054 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4516: Sporadic failure in ha_tests test_failover_send_receiveAlan Conway2013-01-111-5/+8
| | | | | | | | | | | | | | Several fixes were required in the code to correct this problem: - Missing break statement in switch. - Remove unused function HaBroker::resetMembership - Abort connection of timed-out backups so they can attempt to reconnect. - New primary resets membership before allowing backups to connect. - Test for and ignore double-promotion. - HaBroker: dynamic logPrefix() shows status. Made status atomic for efficient access for log messages. - Update primary status in membership. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1432273 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1726 ASF licensed QPID store - reenable in buildCharles E. Rolke2013-01-102-1/+7
| | | | | | | | Add new legacystore.cmake to EXTRA_DIST in makefile suite. Fix cmake scripts for core library and tests. Note: Tests are not truly integrated. Four standalone unit tests are starters for proving functionality. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1431635 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Expand Variant tests to test previous Variant conversion checkinAndrew Stitcher2013-01-101-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1431493 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1726 ASF licensed Qpid store - disable building this componentCharles E. Rolke2013-01-081-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1430338 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1726 ASF licensed Qpid StoreCharles E. Rolke2013-01-0723-0/+3281
| | | | | | | | | | | | | | | | | | | | | | | | Add unit tests. There are several issues with these tests: 1. Originally the four .cpp unit test sources were compiled into a single unit_test executable. In the current framework those four sources create conflicting brokers that overwrite each other's store and fail to open port 5672. In this checkin there are four unit test executables. Running each serially gets them all to pass. A new strategy is needed to start brokers that don't conflict. 2. The legacystore.so is not integrated with the rest of the tests. Some tests may run with the externally compiled msgstore.so and some use the built in test_store. Plugging legacystore.so into these other tests is TBD. 3. cpp/src/tests/legacystore defines more tests beyond simple unit tests. None of the issues related to wider system tests are addressed yet. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1430018 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: slim down some header file inclusionsAndrew Stitcher2013-01-042-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1428722 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Remove obsolete cluster code: brokertest.pyAlan Conway2013-01-031-85/+7
| | | | | | Clean up cluster obsolete code in brokertest.py. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1428634 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Removed Timer.h out of the chain of header files included by Broker.hAndrew Stitcher2012-12-211-0/+1
| | | | | | (since that is widely included) to avoid unnecessary recompilation git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1425037 13f79535-47bb-0310-9956-ffa450edef68