1
0
Fork 0
Commit Graph

725 Commits

Author SHA1 Message Date
Jan Steemann 009396f7b0 Merge branch 'aql2' of https://github.com/triAGENS/ArangoDB into aql2
Conflicts:
	arangod/V8Server/v8-wrapshapedjson.cpp
2014-09-23 08:35:32 +02:00
Jan Steemann 74c9653f6f fixed range-info equality flag after fusing 2014-09-19 22:07:06 +02:00
Jan Steemann d03faffc53 remove subqueries that produce results that are not used in a query 2014-09-18 23:03:43 +02:00
Jan Steemann 1016debd2e more robust recovery 2014-09-18 17:47:37 +02:00
Willi Goesgens e6fc39f15a Enable first tests for indexes using DESC 2014-09-17 16:28:57 +02:00
Max Neunhoeffer 3c675fee44 Merge branch 'aql2' of ssh://github.com/triAGENS/ArangoDB into aql2 2014-09-17 14:08:18 +02:00
Max Neunhoeffer 2cdc5f4cd7 Fix skiplistback-ung and usage in AQL. 2014-09-17 14:07:23 +02:00
Willi Goesgens f3d5974ae0 Implement tests for de/serialisation of insert/update/replace queries. 2014-09-17 11:05:50 +02:00
Jan Steemann 5c820cea34 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into aql2
Conflicts:
	arangod/V8Server/v8-vocbase.cpp
2014-09-16 16:33:47 +02:00
Jan Steemann 71e0d51ffe added bounds tests 2014-09-16 15:56:16 +02:00
Jan Steemann 992ac23450 fixed ranges 2014-09-16 15:48:33 +02:00
Lucas Dohmen a9e674b368 Merge pull request #1024 from triAGENS/repo-methods
Made Foxx.Repository methods behave more consistently (fixes #975)
2014-09-16 15:44:31 +02:00
Jan Steemann 13fbd82e12 fixed test 2014-09-16 15:13:58 +02:00
Jan Steemann 83819407ba Merge branch 'aql2' of https://github.com/triAGENS/ArangoDB into aql2 2014-09-16 15:10:59 +02:00
Jan Steemann 54b5e7b034 slightly improved access to dynamic bounds 2014-09-16 15:10:43 +02:00
Alan Plum 0de1da4cc8 Adjusted tests to reflect corrected behaviour. 2014-09-16 14:58:24 +02:00
Alan Plum e04cfebfe2 Added tests and docs for param shorthand syntax, allow passing 'allowMultiple' via joi.meta, fixed joi.required/optional being ignored. 2014-09-16 11:33:35 +02:00
Willi Goesgens 96c9132f93 - Fix queries so they can actually be executed.
- add cross test for deserializing plans
2014-09-16 11:27:36 +02:00
Jan Steemann 677e681b23 adjusted test 2014-09-15 18:17:42 +02:00
Jan Steemann 69d0703a68 fixed teardown 2014-09-15 16:13:35 +02:00
Jan Steemann bc7c7c5c60 fixed construction of bounds from json 2014-09-15 16:11:59 +02:00
Jan Steemann 99683e3021 added test for dynamic bounds 2014-09-15 15:28:31 +02:00
Jan Steemann 481a16fd7a removed bitarray indexes 2014-09-15 14:19:38 +02:00
Willi Goesgens b5688131f5 Work on the sort unit tests 2014-09-15 12:52:32 +02:00
Jan Steemann 6fb48cdd0c fixed test expectation 2014-09-15 12:25:16 +02:00
Willi Goesgens 258cf9ee7d Fix the result analysis of the multi-plan cross tests 2014-09-15 10:57:26 +02:00
Jan Steemann 34d2913002 added NOT IN operator, added keywords NOT, AND, OR 2014-09-14 01:34:58 +02:00
Jan Steemann ed7e5d0e67 allow primary key access via _id attribute, too 2014-09-14 00:46:44 +02:00
Jan Steemann 26a24bf5a2 adjusted tests 2014-09-12 17:18:36 +02:00
Jan Steemann 76c1da4e9c added test for remove-redundant-calculations 2014-09-12 16:58:01 +02:00
Willi Goesgens 3e502b672d Test execute all optimizer generaten variations of the plans and compare all their results. Don't do this with Queries which we know that they will fail. 2014-09-12 14:48:18 +02:00
Willi Goesgens d2a5ad91f3 Adjust the access to the IndexRangeNodes ranges to respect the two dimmensional list. 2014-09-12 11:16:25 +02:00
Willi Goesgens 9bb0f22b7b Cleanup tests to make the linter happy, move multi-query-helper into the aql-helper. 2014-09-12 10:40:44 +02:00
Willi Goesgens dfae2d92c5 Fix indention 2014-09-12 09:49:38 +02:00
Jan Steemann 5f4c27f311 added test 2014-09-12 09:07:34 +02:00
Jan Steemann 0b018d26cf Merge branch 'aql2' of https://github.com/triAGENS/ArangoDB into aql2 2014-09-11 18:19:14 +02:00
Jan Steemann 2767bdc7e0 use edge index on both _from and _to 2014-09-11 18:19:05 +02:00
Willi Goesgens 2a6a6fd132 work on test which inspects all optimizer passes by executing them via the AQL_EXECUTEJSON interface 2014-09-11 18:00:47 +02:00
Jan Steemann 7a2774b822 Merge branch 'aql2' of https://github.com/triAGENS/ArangoDB into aql2 2014-09-11 15:50:56 +02:00
Jan Steemann d4cb250d4a fixed tests 2014-09-11 15:50:50 +02:00
Max Neunhoeffer a532544a9f Fix test for new IndexRange behaviour. 2014-09-11 14:48:41 +02:00
Max Neunhoeffer aa00df7edf Merge branch 'aql2' of ssh://github.com/triAGENS/ArangoDB into mmh
Conflicts:
	arangod/Aql/ExecutionBlock.cpp
	arangod/Aql/Query.h
2014-09-11 14:31:13 +02:00
Jan Steemann 611ef2b73c removed "old" AQL function AQL_EXPLAIN 2014-09-11 14:12:01 +02:00
Jan Steemann 318921de00 Merge branch 'aql2' of https://github.com/triAGENS/ArangoDB into aql2 2014-09-11 13:36:23 +02:00
Jan Steemann 19ab100576 added range test 2014-09-11 13:36:16 +02:00
Willi Goesgens 0225311f2d Merge branch 'aql2' of github.com:triAGENS/ArangoDB into aql2 2014-09-11 13:25:18 +02:00
Willi Goesgens 01363e6759 UnitTests: divert to AQL2 in the modifying queries tests; adjust to new reply-syntax. 2014-09-11 11:32:44 +02:00
Willi Goesgens f8b681a5f8 re-enable test; its working now. 2014-09-11 11:31:49 +02:00
Jan Steemann cb4c60a36f explain tests 2014-09-11 09:54:59 +02:00
Max Neunhoeffer 7b8cc04d90 Merge branch 'aql2' of ssh://github.com/triAGENS/ArangoDB into mmh 2014-09-10 16:10:32 +02:00
Jan Steemann c034307dca Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into aql2
Conflicts:
	arangod/Utils/CollectionNameResolver.h
2014-09-10 15:54:49 +02:00
Michael Hackstein 9b62c7367b Deprecated _directedRelation and _undirectedRelation in general-graphs. Created _relation in general-graphs creating a _directedRelation. Handling undirected relations is now given to the user / api-implementor as arangodb itself does not offer any direction constrains which caused some confusion 2014-09-10 15:50:22 +02:00
Max Neunhoeffer 8bb938b6de Merge branch 'aql2' of ssh://github.com/triAGENS/ArangoDB into mmh 2014-09-10 15:21:00 +02:00
Max Neunhoeffer 69c464ef13 Restructure RangesInfo handling to allow for variable ranges. 2014-09-10 15:20:28 +02:00
Jan Steemann 1907d8bb05 added optimizer rule test 2014-09-10 14:35:18 +02:00
Willi Goesgens 74248e64f0 Finalize the remove unnecessary calculation tests. 2014-09-10 13:58:53 +02:00
Max Neunhoeffer 5552d21711 Merge branch 'aql2' of ssh://github.com/triAGENS/ArangoDB into mmh 2014-09-10 12:15:00 +02:00
Jan Steemann c05d844626 fixed test assertion 2014-09-10 12:08:25 +02:00
Jan Steemann 2c37bd89b7 specified test result assertion 2014-09-10 11:59:35 +02:00
Max Neunhoeffer 7dcdd27891 Merge branch 'aql2' into mmh 2014-09-10 09:41:54 +02:00
Max Neunhoeffer c4442355f0 Adjust tests to new ranges format. 2014-09-10 09:39:21 +02:00
Jan Steemann c16ddedc83 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into aql2
Conflicts:
	arangod/V8Server/v8-vocbase.cpp
	js/apps/system/aardvark/frontend/js/bootstrap/errors.js
	js/common/bootstrap/errors.js
	js/server/modules/org/arangodb/ahuacatl.js
	js/server/modules/org/arangodb/aql-helper.js
	js/server/tests/shell-skiplist-index.js
2014-09-09 22:18:52 +02:00
Jan Steemann 428865f3b5 issue #1014: WITHIN function returns wrong distance
added attribute setters for ShapedJson so document attributes can be updated

Conflicts:
	arangod/V8Server/v8-vocbase.cpp
2014-09-09 19:58:27 +02:00
Willi Goesgens bdeb2d9d0f Remove unnecessary calculations test now has all tests to check for whether the rule applies. 2014-09-09 18:25:19 +02:00
Willi Goesgens 69e388dec3 SortNode optimizations: adjust tests to another rule needed to remove the SortNodes dependency. 2014-09-09 18:08:08 +02:00
Alan Plum 844621f070 Implemented Foxx.createQuery. 2014-09-09 17:02:21 +02:00
Jan Steemann 2a49bf843d updated tests 2014-09-09 15:20:42 +02:00
Jan Steemann 8127ff49bd more tests 2014-09-09 11:04:30 +02:00
Jan Steemann 8bf495f9b5 Merge branch 'aql2' of https://github.com/triAGENS/ArangoDB into aql2 2014-09-09 09:58:04 +02:00
Jan Steemann 639a026c66 fixed tests 2014-09-09 09:57:52 +02:00
Max Neunhoeffer b02856bff1 Better failure message of testSleep. 2014-09-09 09:53:06 +02:00
Jan Steemann a9a7b7d6d0 finished test for optimizer rule remove-unnecessary-filters 2014-09-09 08:55:56 +02:00
Jan Steemann a5100e3849 fixed parse error 2014-09-09 08:45:50 +02:00
Jan Steemann 28fd6b84c9 Merge branch 'aql2' of https://github.com/triAGENS/ArangoDB into aql2 2014-09-08 17:33:21 +02:00
Jan Steemann 4bda3e3979 finished test for remove-redundant-sorts 2014-09-08 17:33:11 +02:00
Willi Goesgens e30227195a Start implementation for remove unecessary filters. 2014-09-08 15:38:38 +02:00
Jan Steemann 557d37c688 Merge branch 'aql2' of https://github.com/triAGENS/ArangoDB into aql2 2014-09-08 11:43:54 +02:00
Jan Steemann 5c3b88b30c added test for optimizer rule 2014-09-08 11:43:39 +02:00
Willi Goesgens dd5ba978f1 Use better names for the optimiser control vars 2014-09-08 11:16:40 +02:00
Willi Goesgens 9473dc83cf Index Sort: add test which should remove duplicate sort. 2014-09-08 11:02:17 +02:00
Willi Goesgens 9524863c44 finalize test for the time being. 2014-09-05 15:02:16 +02:00
Alan Plum e2c4a62ff7 Cleaned up FoxxController#activateSessions. 2014-09-04 22:30:39 +02:00
Alan Plum 39ba358cd8 Added JWT support for session headers. 2014-09-04 18:51:06 +02:00
Alan Plum 7a43e3df14 Fixed failing session test. 2014-09-04 18:35:13 +02:00
Willi Goesgens ebbb9c34b6 Redundand-Sort: implement removing of left item superseeding the sort 2014-09-04 17:53:20 +02:00
Willi Goesgens 8cb1330cc2 Add optimizer tests for removing unneccessary calculations. 2014-09-04 16:57:53 +02:00
Willi Goesgens e23cbf1add Work on Filter to IndexRangeNode tests 2014-09-04 16:33:37 +02:00
Willi Goesgens fab66690eb Fix syntax. 2014-09-03 17:26:44 +02:00
Willi Goesgens 96186458b9 Use index for Sort: add more tests, more clever test data structures. 2014-09-03 17:15:49 +02:00
Willi Goesgens 8ec9525c05 SortIndex: move inspection of IndexRangeNode into functions. 2014-09-03 11:05:03 +02:00
Willi Goesgens 74784da12d Use function to search for whether there is a sortnode or not. 2014-09-03 10:40:37 +02:00
Alan Plum 606da1e3e8 Removed jslint headers from server/client/common modules. 2014-09-02 22:14:56 +02:00
Willi Goesgens 135afc043c Try checking whether rules didn't apply because of non-match 2014-09-02 17:30:07 +02:00
Willi Goesgens 8ffdd01d5f Cleanup of tests
- use assertEqual
  - use centralized definitions for the various optimizer parameter permutations
2014-09-02 17:11:03 +02:00
Willi Goesgens e29668c514 SortIndex: start implementing unittests for the different usecases. 2014-09-01 18:48:32 +02:00
Willi Goesgens dbb4ef6e41 add tests to revalidate IndexRangeNodes superseeding sorts
TODO: two cases aren't found by the 'use-index-range' as we would expect
2014-09-01 13:35:49 +02:00
Jan Steemann a02b962e3e added optimizer test 2014-09-01 12:14:15 +02:00
Max Neunhoeffer 8549e97e6c Adjust test to new non-sparse skiplists. 2014-08-30 00:33:15 +02:00
Jan Steemann 0eac5dcf47 fixed tests 2014-08-29 09:33:09 +02:00
Jan Steemann a32fac3747 Merge branch 'aql2' of https://github.com/triAGENS/ArangoDB into aql2 2014-08-29 09:20:36 +02:00
Jan Steemann 6cd4372299 fixed several tests 2014-08-28 22:33:50 +02:00
Jan Steemann b54e791f8f Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into aql2 2014-08-28 22:23:25 +02:00
Jan Steemann d72354da66 issue #1003: added feature to use backslash escaping for CSV data in arangoimp 2014-08-28 21:03:58 +02:00
Jan Steemann 2a104b8bcb fixed several AQL tests 2014-08-28 16:19:05 +02:00
Jan Steemann 694d64da3c do not optimize away non-deterministic functions 2014-08-28 15:34:06 +02:00
Jan Steemann a014b44ba4 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into aql2
Conflicts:
	arangod/Utils/Transaction.h
2014-08-28 11:06:14 +02:00
Jan Steemann 81c095105b issue #1003 2014-08-28 10:32:32 +02:00
Jan Steemann a70a9613f6 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into aql2
Conflicts:
	lib/BasicsC/voc-errors.h
2014-08-22 21:51:38 +02:00
Alan Plum 0d653ca67a Implemented activateSessions. 2014-08-20 10:57:06 +02:00
Frank Celler 9fa3d22d6c towards new dispatcher interface 2014-08-18 23:37:32 +02:00
Jan Steemann 30b32f1f90 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into aql2
Conflicts:
	arangod/Ahuacatl/ahuacatl-grammar.h
	arangod/V8Server/v8-vocbase.cpp
	js/server/tests/ahuacatl-general-graph.js
2014-08-13 16:29:57 +02:00
Jan Steemann 52911293f7 added special compare function to take into account floating point differences 2014-08-12 19:14:13 +02:00
Jan Steemann 413ce6c50c test fixes 2014-08-12 18:53:49 +02:00
Willi Goesgens e823314a63 Adapt #8c280e255cce88af22377bee0e3ea8669c2b6d97 and #35303ab5eb5f3d588c2c6fe276dcc3772836d89f to give us a graph in defined sequence here too. 2014-08-12 17:10:29 +02:00
Michael Hackstein 1ee7cecdd7 Enforced sorting in ahuacatl generel graph test 2014-08-12 16:38:15 +02:00
Jan Steemann 80848b62a9 make test deterministic 2014-08-12 16:28:59 +02:00
Jan Steemann 3ae6d85711 removed tests for now-unsupported functionality 2014-08-12 16:22:32 +02:00
Jan Steemann d910e468f5 fixed issue with SLEEP() in test 2014-08-12 15:28:52 +02:00
Michael Hackstein 9d4642c4b5 Fixed ahuacatl-general-graph test. It does not depend on the sorting any more 2014-08-12 14:32:30 +02:00
Michael Hackstein dc998e3116 Fixed ahuacatl-general-graph test. It does not depend on the sorting any more 2014-08-12 14:31:18 +02:00
Jan Steemann 579fad3d6a added tests 2014-08-11 09:03:45 +02:00
James 5dc4f414f3 working on the tests. 2014-08-08 16:51:59 +02:00
Max Neunhoeffer 9d9d3962c0 Create unittest framework for new AQL. 2014-08-08 14:39:08 +02:00
scottashton fba85a7c6c GRAPH_VERTICES now returns orphans 2014-07-30 11:23:10 +02:00
Alan Plum facd7dc515 Fixed #961. Undocumented bodies should never throw. 2014-07-24 11:22:30 +02:00
Jan Steemann 328e3c209c fixed another test 2014-07-23 18:50:45 +02:00
Jan Steemann a91af39243 make test succeed after Max's optimization 2014-07-23 17:15:13 +02:00
Jan Steemann ddf69e99a9 fixed tasks with offset 0.0 2014-07-21 14:22:39 +02:00
Alan Plum f44d319f3e Added tests. 2014-07-09 13:09:16 +02:00
Alan Plum 7887f1b282 Added tests. 2014-07-09 12:40:05 +02:00
Alan Plum b2415d7871 Implemented Foxx model auto-validation with joi. 2014-07-09 12:00:34 +02:00
Alan Plum 889e8de4c9 Implemented Joi validation/toJSONSchema with legacy fallback. See #926. 2014-07-09 12:00:34 +02:00
Max Neunhoeffer 951be763d3 Disable a test in the cluster that needs transactions. 2014-07-09 10:17:34 +02:00
scottashton 90e4bf9bd3 distinct result on GRAPH_EDGES 2014-07-08 08:35:37 +02:00
Jan Steemann ca97aa4a07 added tests, fixed segfault 2014-07-05 22:58:36 +02:00
Alan Plum 61909ccd23 Added tests for Repository index magic. Fixes #899. 2014-07-04 17:09:50 +02:00
Jan Steemann 772f5fc876 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2014-07-04 13:52:45 +02:00
Jan Steemann 6f4ab77d9b fixed WAL collector moving markers 2014-07-04 13:52:31 +02:00
Alan Plum b5442e1ec8 Whitelist metadata in Model::set. 2014-07-04 11:15:56 +02:00
Jan Steemann 96b195a34d added test 2014-07-04 08:06:02 +02:00
Jan Steemann 04ed18be47 recovery 2014-07-03 22:50:22 +02:00
Jan Steemann 470839ffb9 fixed tests 2014-07-03 18:51:40 +02:00
Jan Steemann 6fc0c051d0 added test case 2014-07-03 17:12:25 +02:00
Jan Steemann d5e4f6762c foxx-directories test 2014-07-03 12:58:02 +02:00
Alan Plum 299cfd80fe Replaced ES5 methods with underscore because reasons. 2014-07-02 17:14:03 +02:00
Alan Plum e1aa528295 Added tests for bad model attribute setting. 2014-07-02 17:14:02 +02:00
Jan Steemann d4858f90d3 added test for renaming 2014-07-02 16:53:23 +02:00
Jan Steemann 28965618d1 handle renaming of collections 2014-07-02 10:28:43 +02:00
Jan Steemann 84ef51aaf4 handle properties marker 2014-07-02 09:54:28 +02:00
Jan Steemann ab70cfb9bb Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2014-07-02 09:31:17 +02:00