1
0
Fork 0
Commit Graph

1141 Commits

Author SHA1 Message Date
Jan Steemann cb0d98cb6c added test cases for multi-modify 2015-12-03 12:18:03 +01:00
Michael Hackstein 3ea14e66a3 Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-12-03 10:19:17 +01:00
Michael Hackstein c52a225110 Fixed reference to AQL_traversal unittests in Makefile 2015-12-02 17:48:33 +01:00
Jan Steemann 460b51734e fixed disappearing of documents for collections transferred via `sync` if the collection was dropped right before synchronization and drop and (re-)create collection markers were located in the same WAL file 2015-12-02 14:48:08 +01:00
Michael Hackstein 8a01687565 Moved AQL graph tests into the server side. All other AQL tests are there as well 2015-11-30 15:20:03 +01:00
Michael Hackstein e56776bfd5 The PathEnumerator now automatically prunes if the getVertex callback returns false 2015-11-27 16:23:13 +01:00
Michael Hackstein 7bf37620bb Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-11-26 16:32:26 +01:00
Jan Steemann e29bc893b7 finalized index API changes 2015-11-25 16:44:01 +01:00
Jan Steemann db078f1554 changed some APIs of AssocMulti 2015-11-25 15:40:01 +01:00
Alan Plum ec49f5783b Remove FormatMiddleware
Fixes #971.
2015-11-25 13:19:00 +01:00
Alan Plum 7538d71333 URL parameter -> {query,path} parameter 2015-11-24 18:09:43 +01:00
Michael Hackstein 561ef30ac1 Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-11-24 08:59:01 +01:00
Jan Steemann 1bf5abaf14 changed HTTP return code for canceled operations from 408 to 410 2015-11-23 10:25:05 +01:00
Michael Hackstein b18ce56a68 Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-11-20 10:49:00 +01:00
Jan Steemann bde7c984d2 added VPack library 2015-11-19 14:04:35 +01:00
Michael Hackstein 8d0d921ab6 Included two Abstract classes for Traversals. Traverser and TraversalPath. Implemented both of them for Single-Server Traversals. 2015-11-12 16:25:36 +01:00
Richard Parker a36f7a66fc Just playing again - removed the space again. 2015-11-12 10:28:04 +00:00
Richard Parker 153ec0c332 Just playing - inserted a space 2015-11-12 10:05:32 +00:00
Wilfried Goesgens 2d5d2d881e Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH 2015-11-11 11:05:06 +01:00
Jan Steemann e321c9747a added option `--server.hide-product-header` 2015-11-10 10:27:59 +01:00
Wilfried Goesgens 179660e87c Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH 2015-11-04 17:07:09 +01:00
Wilfried Goesgens 2c38e2a78d make redirects relative if on the same host; later editions of the HTTP 1.1 RFC state that its valid.
this fixes #1558
2015-11-04 13:32:34 +01:00
Frank Celler 52daefa306 removed tests 2015-11-03 10:19:29 +01:00
Wilfried Goesgens bb9039c855 Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH 2015-10-29 16:01:01 +01:00
Jan Steemann d702914259 fixed memory errors in test code 2015-10-29 14:49:43 +01:00
Jan Steemann ac4069d9de added TRI_DeleteArrayJson() function 2015-10-29 14:49:29 +01:00
Wilfried Goesgens 951165ab1e Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH
Conflicts:
	arangod/Aql/grammar.cpp
	arangod/Aql/grammar.h
	js/common/modules/org/arangodb/graph-examples/example-graph.js
2015-10-28 11:08:18 +01:00
jsteemann fad9782a4a removed unused functions 2015-10-23 01:22:41 +02:00
Jan Steemann caf57a440c added tests 2015-10-22 11:41:36 +02:00
Wilfried Goesgens cd6cc35def Adjust the stage to the now non-void pointered index implementation. 2015-10-22 11:12:21 +02:00
Wilfried Goesgens dae95de667 Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH 2015-10-21 14:54:01 +02:00
Michael Hackstein 596d215a32 Fixed Sparse Skiplist indexes. They were used for e.g.: null IN x.a. Added the queries-array to test makefile 2015-10-20 17:18:17 +02:00
Michael Hackstein a4b5ce402d Added indexes-multi test to the makefile 2015-10-19 13:28:25 +02:00
Michael Hackstein 4c6b0f283a AttributeNames from the attribute parser are now non-nested attributes. They offer a function to join nested elements 2015-10-13 16:26:11 +02:00
Michael Hackstein 9450e43fda Splitted a large aql-optimizer test file 2015-10-13 10:11:10 +02:00
Jan Steemann 53d2787cf6 added test case for routing and binary req/res 2015-10-08 10:18:36 +02:00
Frank Celler 4b0911c799 added debugging header x-arango-v8-context 2015-10-07 13:37:35 +02:00
jsteemann 358befddde added test for issue #1521 2015-10-06 22:36:09 +02:00
Michael Hackstein 1a7f414c16 Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-09-18 12:21:39 +02:00
Frank Celler c4d1fff729 new traversal 2015-09-18 10:40:28 +02:00
jsteemann 9e6223756a attempt to fix test that fails non-deterministically on TravisCI 2015-09-17 21:07:48 +02:00
Frank Celler c892174c6a added nightly 2015-09-16 15:14:34 +02:00
Jan Steemann dc7ac83354 incremental sync fixes 2015-09-15 14:20:08 +02:00
jsteemann 22e17814e3 additionally allow the following characters in document keys:
`(` `)` `+` `,` `=` `;` `$` `!` `*` `'` `%`
2015-09-15 00:16:08 +02:00
Frank Celler fcd1637261 set log.level to fatal, disable authentication in test 2015-09-14 14:49:36 +02:00
Jan Steemann 3b9721601e fixed invocation of shell 2015-09-11 23:55:55 +02:00
Jan Steemann 560a039f3e added tests 2015-09-08 14:22:23 +02:00
Willi Goesgens 931451c279 Add compatibility for RSpec V3 2015-09-07 13:13:58 +02:00
CoDEmanX 3a9648d78a More Americanization 2015-09-03 22:25:43 +02:00
Jan Steemann 2e617ac0cc Merge branch 'american-english' of https://github.com/CoDEmanX/ArangoDB into devel
Conflicts:
	arangod/Wal/Slots.cpp
	lib/Basics/debugging.cpp
	lib/Basics/files.cpp
2015-09-02 13:14:49 +02:00
Jan Steemann 0e802d6438 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-09-02 10:20:18 +02:00
Jan Steemann a80d6635ab create fat datafiles
This prevents SIGBUS when a sparse datafile is accessed and the disk is full. In
this case the mmapped region is not necessarily backed by physical memory, and
accessing the memory may crash the program
2015-09-02 10:18:24 +02:00
CoDEmanX 956b396e43 Change spelling of 'initialize' to American English (actual code and files) 2015-09-01 17:29:22 +02:00
CoDEmanX b4593a7e82 Change spelling of 'initialize' to American English (comments and log messages only) 2015-09-01 17:07:21 +02:00
Michael Hackstein 4409a59265 Further templatification of skiplist and fixed the tests 2015-09-01 15:05:47 +02:00
Michael Hackstein 40c1361244 Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing 2015-08-25 16:40:31 +02:00
Max Neunhoeffer 203e9a5195 Make hashcache in AssocMulti switchable-off. Does not work yet. 2015-08-25 12:46:47 +02:00
Michael Hackstein 22ddc3923f Fixed AttributeName parser tests 2015-08-24 11:49:40 +02:00
Jan Steemann b08713d768 added tests and documentation 2015-08-24 11:05:26 +02:00
Jan Steemann 31a6547d4c fix replication resumption 2015-08-21 15:57:24 +02:00
Michael Hackstein b708a7ae68 Merge remote-tracking branch 'origin/devel' into array_indexing 2015-08-21 15:34:49 +02:00
Michael Hackstein 9bb7c0dec6 The skiplist index is now able to index arrays as well 2015-08-21 11:04:04 +02:00
CoDEmanX 49fcde5872 Fix #1447: remove invalid/empty file 2015-08-19 23:17:25 +02:00
Michael Hackstein 5049c1dd23 Fixed CLANG compiler warnings in UnitTests 2015-08-19 15:25:41 +02:00
Michael Hackstein 241905c42c Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing 2015-08-19 12:51:53 +02:00
Jan Steemann d8be947246 fixed unittests-shell-client, which did not start anymore 2015-08-19 12:46:15 +02:00
Michael Hackstein 59e8ea3fad Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing 2015-08-19 11:56:34 +02:00
Willi Goesgens 487228ae83 Unix domainsocket startup: use arangosh to check whether the server is up and running. 2015-08-18 15:41:27 +02:00
Michael Hackstein e867181a72 Merge remote-tracking branch 'origin/eimerung_hashindex' into array_indexing 2015-08-17 15:58:53 +02:00
Michael Hackstein 7eda2e0f5c Fixed the test for last commit 2015-08-17 12:43:11 +02:00
Michael Hackstein d7d00a5d0d Fixed index comparision with multiple components. Introduced by AttributeName format. 2015-08-17 12:43:09 +02:00
Jan Steemann 907e6368c6 some unused function cleanup 2015-08-17 12:43:09 +02:00
Michael Hackstein 17a8f73a06 Now the input for indexes is parsed using the new attribute parser. This means the flags for expanded Attributes are set. Also introduced a transformation function to transform an attributeName list back into a string. 2015-08-17 12:43:07 +02:00
Michael Hackstein c85d5e347a Implemented a new AttributeNameParser this is able to identify [*] expansion and shall be used for array indexes. Also includes tests. 2015-08-17 12:43:05 +02:00
Jan Steemann c558a19511 added tests for timeouts 2015-08-16 23:28:49 +02:00
Frank Celler 8d26dc36ea fixed build on MacOSX via cmake 2015-08-13 15:39:03 +02:00
Jan Steemann 7468b13958 do not test on message strings, but error codes 2015-08-12 22:13:08 +02:00
Jan Steemann f6f10dbd45 removed uncalled functions 2015-08-12 19:46:25 +02:00
Jan Steemann 434d6167db added configuration option `--database.throw-collection-not-loaded-error` 2015-08-11 12:31:42 +02:00
Jan Steemann 330fac6225 some unused function cleanup 2015-08-06 21:25:32 +02:00
Jan Steemann 57fa0e45a9 fixed test when using SSL 2015-07-30 12:20:12 +02:00
Jan Steemann 05a233bec9 fixed failing test 2015-07-29 18:19:01 +02:00
Heiko Kernbach 1d0dfad48c Merge branch 'devel' of github.com:arangodb/arangodb into web-ui 2015-07-29 16:46:03 +02:00
Jan Steemann 6d4395059b use lock guards 2015-07-29 15:15:49 +02:00
Jan Steemann 4920420097 lol httparty 2015-07-29 12:54:51 +02:00
Heiko Kernbach 89975821bb tests 2015-07-28 18:21:40 +02:00
Jan Steemann 6d7ccd7699 move shaper to cxx 2015-07-28 17:38:31 +02:00
Jan Steemann dbb740a705 activate distinct test 2015-07-24 13:41:01 +02:00
Frank Celler 39a08acdce use log level error 2015-07-23 22:43:37 +02:00
Jan Steemann e5dbf725b2 added shorthand notation for attribute names in AQL object literals 2015-07-23 14:24:37 +02:00
Jan Steemann 118fd54fd0 split tests 2015-07-20 10:58:43 +02:00
Jan Steemann 7b1651a68c added even more headers, fixed warnings in boost tests 2015-07-16 21:52:20 +02:00
Jan Steemann c54b5a6ba8 renamed file 2015-07-16 21:06:29 +02:00
Jan Steemann ad30baa08c retry qcache with cluster 2015-07-14 14:53:16 +02:00
Jan Steemann c4e2c8f894 renamed test 2015-07-14 14:07:25 +02:00
Frank Celler 0f1ee72723 fixed version 2015-07-13 18:06:42 +02:00
Jan Steemann 0e42565aa8 added test for HTTP API 2015-06-27 05:50:32 +02:00
Jan Steemann 66eec2ac7e fix invalidation 2015-06-25 16:46:04 +02:00
Jan Steemann 67082b15fd moved AQL TO_* functions to CXX 2015-06-18 21:30:13 +02:00
Jan Steemann 83b326cfc7 moved PUT /_api/simple/all to C++ 2015-06-18 15:34:45 +02:00
Jan Steemann 1174cfd05c added tests 2015-06-12 18:29:54 +02:00
Jan Steemann db25013b10 added test cases 2015-06-12 17:54:45 +02:00
Jan Steemann 3d5ec4d906 speedup for V8-based AQL functions with huge literal array/object parameters 2015-06-12 15:40:08 +02:00
Jan Steemann ff7a00d6e4 fixed edge index selectivity estimates and added tests 2015-06-11 21:22:01 +02:00
Jan Steemann b5896be10b simplifications 2015-06-10 11:53:31 +02:00
Jan Steemann 627343dde4 added missing file to automated tests 2015-06-02 23:24:08 +02:00
Jan Steemann a41a84cc62 fixed test 2015-06-02 15:11:43 +02:00
Michael Hackstein 25aa2a58c3 Temprorarily disabled a neighbors test using the old return format. Will be reactivated soon 2015-05-30 00:41:28 -07:00
Jan Steemann 59ce0b7ad9 test option `--create-database` 2015-05-29 14:37:47 +02:00
Michael Hackstein 86c7f87dd3 Merge branch 'cppTrav2' into devel 2015-05-19 16:17:27 -07:00
Jan Steemann 20f61bd487 do not try to run non-existing test 2015-05-19 16:09:44 +02:00
Max Neunhoeffer ca17b07dca C++-ify associative-multi and add hashCache, adapt edge index. 2015-05-15 16:37:56 -07:00
Jan Steemann 8480c8b000 speed up resizing of edge index 2015-05-12 21:03:30 +02:00
Jan Steemann f6bc0a05e3 added `limit` parameter for export API 2015-05-12 14:16:27 +02:00
Jan Steemann e230b5a373 privatize vector->_memoryZone, too 2015-05-07 14:13:55 +02:00
Jan Steemann 6b412a1c01 Merge branch 'json-privatisierung' of https://github.com/arangodb/arangodb into json-privatisierung 2015-05-07 13:05:12 +02:00
Jan Steemann f1c3039a08 added routing test 2015-05-07 11:42:17 +02:00
Jan Steemann 63138def67 fix location response headers with special characters 2015-05-05 14:00:06 +02:00
Jan Steemann a007a867ee "privatized" TRI_vector_t internals.
This allows changing the internals of TRI_vector_t structs in order to make the struct smaller.
On 64 bits, the size of TRI_vector_t is reduced from 48 bytes to 28 bytes.
TRI_json_t does benefit from this, as its biggest component is a TRI_vector_t.
2015-05-05 10:31:02 +02:00
Max Neunhoeffer 371689fcff Fix a double free in a unit test. 2015-05-02 07:00:35 +02:00
Max Neunhoeffer 97f7743d84 Less copying in Traverser. 2015-05-02 06:28:52 +02:00
Jan Steemann ce7ea1e287 fixed test 2015-04-30 23:38:39 +02:00
Max Neunhoeffer fbfe019913 Rename lookup() to find() 2015-04-25 21:41:45 -07:00
Max Neunhoeffer a553548d87 Add a new priority queue implementation.
This blends a deque and a binary heap to implement a priority queue as
it is useful for the shortest path search.
2015-04-25 21:35:40 -07:00
Jan Steemann 260554cb35 added encoding tests 2015-04-24 00:10:05 +02:00
Jan Steemann baa5e39348 removed lib/Basics/utf8-helper.cpp and merged with lib/Basics/Utf8Helper.cpp 2015-04-21 17:53:35 +02:00
Jan Steemann eaa49b11c6 rename file 2015-04-17 17:48:34 +02:00
Jan Steemann 6e23c5330f added restrictions for export API 2015-04-17 00:24:43 +02:00
Jan Steemann d9add3a493 fixed collect in cluster 2015-04-16 21:10:48 +02:00
Jan Steemann c88109679d added tests for collect methods 2015-04-16 19:20:23 +02:00
Jan Steemann 3d6bc8d28a Merge branch 'import-update' into devel 2015-04-14 11:47:57 +02:00
Jan Steemann 92fcdd3e56 issue #1298: Bulk import if data already exists
This change extends the HTTP REST API for bulk imports as follows:

When documents are imported and the `_key` attribute is specified for them, the import can be
used for inserting and updating/replacing documents. Previously, the import could be used for
inserting new documents only, and re-inserting a document with an existing would have failed
with a *unique key constraint violated* error.

The above behavior is still the default. However, the API now allows controlling the behavior
in case of a unique key constraint error via the optional URL parameter `onDuplicate`.

This parameter can have one of the following values:

- `error`: when a unique key constraint error occurs, do not import or update the document but
  report an error. This is the default.

- `update`: when a unique key constraint error occurs, try to (partially) update the existing
  document with the data specified in the import. This may still fail if the document would
  violate secondary unique indexes. Only the attributes present in the import data will be
  updated and other attributes already present will be preserved. The number of updated documents
  will be reported in the `updated` attribute of the HTTP API result.

- `replace`: when a unique key constraint error occurs, try to fully replace the existing
  document with the data specified in the import. This may still fail if the document would
  violate secondary unique indexes. The number of replaced documents will be reported in the
  `updated` attribute of the HTTP API result.

- `ignore`: when a unique key constraint error occurs, ignore this error. There will be no
  insert, update or replace for the particular document. Ignored documents will be reported
  separately in the `ignored` attribute of the HTTP API result.

The result of the HTTP import API will now contain the attributes `ignored` and `updated`, which
contain the number of ignored and updated documents respectively. These attributes will contain a
value of zero unless the `onDuplicate` URL parameter is set to either `update` or `replace`
(in this case the `updated` attribute may contain non-zero values) or `ignore` (in this case the
`ignored` attribute may contain a non-zero value).
2015-04-14 11:44:33 +02:00
Max Neunhoeffer f34a009885 Do not execute a time critical test on cluster tests. 2015-04-14 09:06:47 +02:00
Alan Plum ecbc6f581f Merge pull request #1287 from arangodb/vulpine-grace
Foxx improvements (fixes #1284, #1257)
2015-04-08 03:23:55 +02:00
Jan Steemann 0f1244f72d better export API cleanup 2015-03-31 18:44:51 +02:00
Jan Steemann 80a99ab23e refactored cursor API 2015-03-30 14:58:51 +02:00
Willi Goesgens 1a88322a6f Add new env-test to the makefile. 2015-03-26 12:20:33 +01:00
Jan Steemann be713c0a0e bumped version number 2015-03-26 11:38:10 +01:00
Alan Plum 03ccf67269 Implemented Repository lifecycle events. See #1257. 2015-03-25 10:35:18 +01:00
Jan Steemann 1298bd40a8 added tests for out-of-memory situations 2015-03-20 08:54:15 +01:00
Jan Steemann cf845bbe5e added test 2015-03-19 16:27:48 +01:00
Jan Steemann 7dc3fc3d5c safely create collections and databases 2015-03-19 15:56:12 +01:00
Jan Steemann 6e3cf20876 higher timeout 2015-03-19 10:36:07 +01:00
Jan Steemann cf33a76f31 removed two tests 2015-03-18 17:56:01 +01:00
Jan Steemann a062280783 added test for empty datafiles 2015-03-18 17:37:28 +01:00
Michael Hackstein 711712fef3 Another improvement of query test 2015-03-13 13:58:06 +01:00
Michael Hackstein 50257a2d5d Made the api-query-anaylsis test more relyable 2015-03-13 13:43:59 +01:00
Michael Hackstein 1e9fdc379f Added AQL queries test to makefile 2015-03-12 16:05:52 +01:00
Michael Hackstein 6e893826dc Further tests for api query analysis 2015-03-12 16:05:46 +01:00
Michael Hackstein 7eb685a5aa Added a test for the new query analysis api. 2015-03-12 16:05:40 +01:00