1
0
Fork 0
Commit Graph

415 Commits

Author SHA1 Message Date
Jan Steemann 72a102e794 major internal changes 2014-06-08 00:12:53 +02:00
scottashton 354371a8ab healed run-tests 2014-06-04 08:33:58 +02:00
scottashton 006eb3b61b calculation of measurements for graphs added and changed calculation of shortst paths to Floyd–Warshall algorithm 2014-06-03 16:25:13 +02:00
Jan Steemann 78185a60d7 fixed return code for async job cancellation 2014-05-08 18:27:46 +02:00
Jan Steemann 42809a20de removed debug output 2014-04-23 21:45:41 +02:00
Jan Steemann b6fa2971ed debug output 2014-04-22 22:35:36 +02:00
Jan Steemann 906d648df9 fixed test on faster computers 2014-04-22 11:30:38 +02:00
Frank Celler 6cdfa029c9 added more error information, fixed try catch
Conflicts:
	CHANGELOG
	arangod/V8Server/ApplicationV8.cpp
2014-04-21 13:35:06 +02:00
Jan Steemann a325df8982 fixed test 2014-04-03 13:50:21 +02:00
Max Neunhoeffer 92d28201e1 Fixes for traversal tests for the cluster. 2014-04-02 13:53:53 +02:00
Max Neunhoeffer ce8580bd8a Repair traversal tests for new edge index. 2014-04-02 11:12:24 +02:00
Jan Steemann 5a3f2aaa49 improved job API
* added REST API method HTTP GET `/_api/job/job-id` to query the status of an
  async job without potentially fetching it from the list of done jobs

* fixed non-intuitive behaviour in jobs API: previously, querying the status
  of an async job via the API HTTP PUT `/_api/job/job-id` removed a currently
  executing async job from the list of queryable jobs on the server.
  Now, when querying the result of an async job that is still executing,
  the job is kept in the list of queryable jobs so its result can be fetched
  by a subsequent request.
2014-03-21 21:19:45 +01:00
Jan Steemann dd594fe75a added NO_LOG option to disable rspec logging 2014-03-14 13:25:53 +01:00
Jan Steemann 469923ca26 fixed test 2014-03-03 09:17:55 +01:00
Jan Steemann b090276273 fixed tests 2014-02-28 20:00:51 +01:00
Jan Steemann d7c29386ef fixed replication test runner 2014-02-28 20:00:29 +01:00
Max Neunhoeffer 35db5983a9 Add the cluster test case. 2014-02-28 17:26:15 +01:00
Max Neunhoeffer 803d3789f1 Disable test with a bad timeout on cluster. 2014-02-28 17:22:51 +01:00
Max Neunhoeffer 8f701ee143 Forgot a file in previous commit. 2014-02-28 16:55:15 +01:00
Max Neunhoeffer 4913c7abf6 Split ruby transaction tests for cluster/noncluster. 2014-02-28 16:54:49 +01:00
Jan Steemann 65feb43294 adjusted test expectations 2014-02-28 09:29:52 +01:00
Jan Steemann 6243ec7310 split tests 2014-02-27 15:15:08 +01:00
Jan Steemann cefef13c42 fixed a failing test 2014-02-27 11:58:16 +01:00
Jan Steemann 8c04d6b12e fixed tests 2014-02-27 11:39:36 +01:00
Frank Celler e10bab8059 Merge branch 'devel' of github.com:triAGENS/ArangoDB into sharding 2014-02-27 09:16:02 +01:00
Frank Celler 8406f51435 Merge remote-tracking branch 'origin/1.4' into devel
Conflicts:
	CHANGELOG
	VERSION
	arangod/Ahuacatl/ahuacatl-access-optimiser.c
	arangod/Ahuacatl/ahuacatl-codegen.c
	build.h
	configure
	configure.ac
	js/apps/system/aardvark/api-docs.json
	js/apps/system/aardvark/api-docs/batch.json
	js/apps/system/aardvark/api-docs/database.json
	js/apps/system/aardvark/api-docs/endpoint.json
	js/apps/system/aardvark/api-docs/job.json
	js/apps/system/aardvark/api-docs/replication.json
	js/apps/system/aardvark/api-docs/system.json
	js/apps/system/aardvark/frontend/js/modules/org/arangodb/graph/traversal.js
	js/common/modules/org/arangodb/graph/traversal.js
	js/server/modules/org/arangodb/ahuacatl.js
	lib/HttpServer/HttpCommTask.h
2014-02-27 09:13:03 +01:00
Max Neunhoeffer e68a3e9c05 Rename test. 2014-02-26 15:04:25 +01:00
Max Neunhoeffer 57bf2292be Disable import test on cluster. 2014-02-26 12:44:56 +01:00
Jan Steemann 23ba186b0d Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into sharding
Conflicts:
	CHANGELOG
	arangod/Ahuacatl/ahuacatl-access-optimiser.c
	arangod/CapConstraint/cap-constraint.c
	js/apps/system/aardvark/frontend/scss/_tiles.scss
	js/apps/system/aardvark/frontend/scss/generated.css
	js/apps/system/aardvark/frontend/scss/style.scss
	js/common/modules/org/arangodb/users-common.js
2014-02-25 17:21:14 +01:00
Jan Steemann af96607fc1 fixed index tests 2014-02-25 11:19:51 +01:00
Jan Steemann 870f969933 added user validation API at POST `/_api/user/<username>` 2014-02-24 11:12:37 +01:00
Frank Celler 832254b7b7 fixed graph again 2014-02-21 23:12:37 +01:00
Max Neunhoeffer 3cb1784430 Reorganise unit tests.
In JS framework we now find the available test files by directory
listing. This means one can simply drop a file in the right
directory to add a test.

We use a naming convention for filenames which is explained
in the README files in the corresponding directories.

Old unit tests do not yet use this but do use the new names and
should still work as usual.
2014-02-21 11:24:31 +01:00
Max Neunhoeffer d2538cefeb Add http_server and ssl_server tests to js framework. 2014-02-20 12:52:03 +01:00
Max Neunhoeffer d55a4678f9 Merge branch 'sharding' of ssh://github.com/triAGENS/ArangoDB into sharding 2014-02-20 10:24:22 +01:00
Max Neunhoeffer 3d332ad01e Adjust paths to allow call with a different current dir. 2014-02-20 10:20:24 +01:00
Jan Steemann 29c09e1ef7 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into sharding 2014-02-20 10:04:43 +01:00
Jan Steemann a0c3a7fe56 improved users API 2014-02-20 10:04:13 +01:00
Jan Steemann 70aca15aa0 fixed test 2014-02-20 09:15:57 +01:00
Jan Steemann 66bc4c9a41 allow unique index creation on shard keys only 2014-02-19 10:30:41 +01:00
Jan Steemann f35b59ba16 updated tests 2014-02-18 15:49:12 +01:00
Heiko Kernbach 63e8a95f67 Merge branch 'sharding' of https://github.com/triAGENS/ArangoDB into sharding 2014-02-18 14:29:56 +01:00
Heiko Kernbach b69fad0381 merge origin/devel 2014-02-18 14:29:44 +01:00
Jan Steemann 29f3e17eef extract real error number 2014-02-18 14:27:32 +01:00
Jan Steemann dc8e590bca inedges, outedges, edges 2014-02-18 13:46:09 +01:00
Jan Steemann 39584f0735 adjusted user result structure 2014-02-18 12:05:05 +01:00
Jan Steemann 682e00245b fulltext 2014-02-18 10:14:52 +01:00
Jan Steemann 6c3c4b5dce near/within 2014-02-18 09:47:33 +01:00
Jan Steemann 9f16760359 simple query range 2014-02-17 16:41:10 +01:00
Jan Steemann 5c13019522 added tests 2014-02-17 11:37:49 +01:00
Michael Hackstein bc16cfae86 Merge remote-tracking branch 'origin/devel' into sharding
Conflicts:
	Documentation/InstallationManual/Installing.md
	arangosh/CMakeLists.txt
2014-02-11 15:52:49 +01:00
scottashton 80768b564b fixed waitForSync in graph api, adjusted documentation, delete tests in api-http-spec.rb due to change in ruby lib 2014-02-10 17:53:21 +01:00
scottashton 6617683cff fixed waitForSync in graph api, adjusted documentation, delete tests in api-http-spec.rb due to change in ruby lib 2014-02-10 17:47:32 +01:00
Jan Steemann b4d9f10f17 fixed some database methods 2014-02-06 15:54:34 +01:00
Jan Steemann b5550e17a6 updated tests and documentation 2014-02-06 12:11:17 +01:00
Jan Steemann 10eb807366 fixed HTTP CRUD operations 2014-02-05 17:19:45 +01:00
Jan Steemann 7a397ac985 renamed tests 2014-02-05 15:20:19 +01:00
Jan Steemann 58b3e0f99d splitted a few tests 2014-02-05 15:15:51 +01:00
Jan Steemann 7f240a1625 fixed segfault in import API 2014-01-27 16:12:39 +01:00
Jan Steemann 57ca73f463 fixed segfault in import API 2014-01-27 16:12:10 +01:00
Jan Steemann df1ce45e15 issue #751: Create database through API should return HTTP status code 201 2014-01-27 08:54:36 +01:00
a-brandt 62d81cee14 added HAS and HAS_NOT 2014-01-24 14:59:49 +01:00
a-brandt 041b7f5daa added HAS and HAS_NOT 2014-01-24 14:49:50 +01:00
Jan Steemann 30b866405e issue #732: Rest API GET revision number 2014-01-13 17:30:17 +01:00
Jan Steemann d52aaf8340 issue #732: Rest API GET revision number 2014-01-13 17:23:39 +01:00
Frank Celler abe0722e77 do not verify ssl 2013-11-23 23:06:47 +01:00
Frank Celler 3de7ee06dd do not verify ssl 2013-11-23 23:06:27 +01:00
Frank Celler 80604b8d65 fixed typo 2013-11-23 22:28:29 +01:00
Jan Steemann c5e9538547 Merge remote-tracking branch 'origin/devel' into inline-shapes
Conflicts:
	arangod/VocBase/document-collection.c
2013-11-14 01:01:24 +01:00
Jan Steemann ae872007ac updated database creation API 2013-11-07 14:06:44 +01:00
Jan Steemann 819e9a1cb6 fixed user creation on database creation 2013-11-07 13:32:42 +01:00
Jan Steemann ff20a1d5ff fixed test 2013-11-06 17:24:47 +01:00
Jan Steemann 1d8d26b7ab added test 2013-11-06 09:34:51 +01:00
Jan Steemann 37b49c2769 added test 2013-11-04 14:23:30 +01:00
Jan Steemann 4f50b98c45 removed second logger implementation 2013-10-30 00:38:25 +01:00
Frank Celler 1a7bbb7058 new version 1.5 2013-10-29 15:24:38 +01:00
Jan Steemann 43b4f78b62 issue #620 2013-10-28 19:38:19 +01:00
Jan Steemann 7dc8ed7c47 issue #617: Swagger API is missing '/_api/version' 2013-10-17 11:55:39 +02:00
Jan Steemann d71ee7ff6f fixed issue #615 2013-10-17 11:12:02 +02:00
Jan Steemann 79f70c7eea replication applier will now preferrably use collection names instead of collection ids when applying events 2013-10-14 13:45:44 +02:00
Jan Steemann fa93fd5755 fixed test 2013-10-10 18:22:52 +02:00
Jan Steemann d6149c9a9a added documentation for /_api/import 2013-10-02 14:22:25 +02:00
Jan Steemann 57e028de9d updated docs 2013-09-28 01:20:40 +02:00
Jan Steemann 1eeaa8145b removed test output 2013-09-25 18:19:29 +02:00
Jan Steemann d7b9add4db removed current-database API 2013-09-24 17:34:35 +02:00
Jan Steemann 7a1f3ae756 updated documentation, added tests 2013-09-24 17:27:52 +02:00
Jan Steemann 67f3c3c469 changed HTTP return code for not-found cursors 2013-09-23 15:29:03 +02:00
Jan Steemann c32654c5d4 added tests for async 2013-09-20 17:48:33 +02:00
Jan Steemann fc971a73bf _graphs renaming rollback 2013-09-12 18:26:35 +02:00
Jan Steemann ac4ed728c0 renamed collection `_graphs` to `arangodb_graphs` 2013-09-09 11:07:10 +02:00
Jan Steemann ca2f5feb4b fixed redirect URLs 2013-09-04 17:30:37 +02:00
Jan Steemann daccdea5c9 fixed tests 2013-08-29 13:28:54 +02:00
Jan Steemann 669957e81d fixed test after web interface change 2013-08-26 17:05:32 +02:00
Jan Steemann 38abd5bf9e issue #576 2013-08-21 14:02:09 +02:00
Jan Steemann 38d8b0b598 adjusted tests and docs 2013-08-01 18:41:13 +02:00
Jan Steemann a7c5350455 added server-id method 2013-08-01 18:27:42 +02:00
Jan Steemann c2611f567a bugfixed cap constraint 2013-08-01 13:17:38 +02:00
Jan Steemann 3b57e80241 simplified HTTP import API 2013-07-25 18:24:21 +02:00
Jan Steemann 9de2910717 updated replication documentation 2013-07-25 16:32:11 +02:00
Jan Steemann aa9845d1bd fixed graph test 2013-07-25 16:31:37 +02:00
Jan Steemann 8a254ea230 replication API documentation 2013-07-24 17:37:16 +02:00
Jan Steemann 4f14062d10 replication tests 2013-07-24 15:22:45 +02:00
Jan Steemann 3ab117de67 added collection.first() and collection.last() 2013-07-19 14:21:46 +02:00
Jan Steemann e359dc29dd INCOMPATIBLE CHANGE: changed AQL user function namespace resolution operator from `:` to `::`
AQL user-defined functions were introduced in ArangoDB 1.3, and the namespace resolution
operator for them was the single colon (`:`). A function call looked like this:

    RETURN mygroup:myfunc()

The single colon caused an ambiguity in the AQL grammar, making it indistinguishable from
named attributes or the ternary operator in some cases, e.g.

    { mygroup:myfunc ? mygroup:myfunc }

The change of the namespace resolution operator from `:` to `::` fixes this ambiguity.

Existing user functions in the database will be automatically fixed when starting ArangoDB
1.4 with the `--upgrade` option. However, queries using user-defined functions need to be
adjusted on the client side to use the new operator.
2013-07-18 12:02:28 +02:00
Jan Steemann 3cc4405c18 added collection.checksum() 2013-07-10 11:10:00 +02:00
Jan Steemann a07d2ea011 replication 2013-07-05 12:12:38 +02:00
Jan Steemann bb86a0b2d5 speed up simple queries testing 2013-06-28 09:54:20 +02:00
Jan Steemann db50b38370 fixed typos 2013-06-25 09:06:20 +02:00
Jan Steemann 373639a3b6 increase unittest timeout 2013-06-21 17:11:20 +02:00
Jan Steemann cae82f27e4 added `/_api/current-database` 2013-06-21 10:25:15 +02:00
Jan Steemann 9dfb7483ff "doCompact" attribute for collections 2013-06-19 16:51:16 +02:00
a-brandt 71c5f89010 Added unittests for structures 2013-06-18 15:56:01 +02:00
Jan Steemann 9599a021b9 moved some graph traversal validation into the traversal module
- that simplifies some of the traversal-calling routines
- make returning error codes more consistent (specific 404 errors when
referring to unknown collections instead of simple 400 errors)
- optionally limit traversals to a certain number of iterations so they
  don't run endlessly in cyclic graphs
2013-06-12 17:04:47 +02:00
Jan Steemann 212117d3b4 graph traversal API tests 2013-06-12 15:25:35 +02:00
Jan Steemann ede177aa55 issue #507, issue #508 2013-05-06 09:40:28 +02:00
Frank Celler 01d654e923 fixed https version of test 2013-05-05 23:34:02 +02:00
Frank Celler 48515d7bd8 fixed tests 2013-05-05 21:55:10 +02:00
Jan Steemann ee7ab712d6 issue #495 2013-05-03 11:08:58 +02:00
Jan Steemann ef1fcc89ee added test case for #491 2013-05-02 16:26:40 +02:00
Jan Steemann cd17f1ef44 issue #481 2013-04-21 11:37:46 +02:00
Jan Steemann 7d9777f8c5 extended API for user-defined AQL functions 2013-04-16 18:32:19 +02:00
Jan Steemann c945dbd2cd updated transaction API 2013-04-15 11:54:36 +02:00
Jan Steemann dee5adb9f5 added client side API for transactions 2013-04-12 23:18:48 +02:00
Frank Celler 3512fa6ff0 fixed error handling 2013-04-02 15:00:55 +02:00
Jan Steemann 55c1134702 replaced error code 9 2013-03-26 18:03:03 +01:00
Jan Steemann 6d82d45859 adjusted tests after Franks changes 2013-03-26 17:58:09 +01:00
Jan Steemann 69db58a154 index cleanup 2013-03-22 10:38:47 +01:00
Jan Steemann 40199d64b7 fixed handling of empty and reserved attribute names in documents
specifying an empty attribute name in a document may have led to segmentation faults
when the document was unpacked later.
2013-03-20 11:48:33 +01:00
Jan Steemann d54078390d fixed failing test 2013-03-19 14:57:11 +01:00
Jan Steemann 99522ccb84 switch order of insertion into indexes & datafile for updates
updates are now done in the indexes first, then written to the datafile
2013-03-18 13:03:05 +01:00
a-brandt b2703d4a49 fixed unittest 2013-03-13 14:46:55 +01:00
Jan Steemann 8ddf718c81 more detailed logging 2013-03-11 13:41:39 +01:00
a-brandt 4f6fbd9cd3 added more tests 2013-03-11 10:53:37 +01:00
a-brandt 1f4685a17d #412 added If-None-Match, If-Match and waitForSync 2013-03-08 17:00:15 +01:00
a-brandt e952b28aab changed http return codes for document update and delete 2013-03-08 16:56:15 +01:00
Jan Steemann 5631314bc7 issue #212: added auto-increment support for collections
the feature can be used by creating a collection with the extra `keyOptions`
attribute as follows:

    db._create("mycollection", { keyOptions: { type: "autoincrement", offset: 1, increment: 10, allowUserKeys: true } });

The `type` attribute will make sure the keys will be auto-generated if no `_key` attribute is specified for a document.
The `allowUserKeys` attribute determines whether users might still supply own `_key` values with documents or if this
is considered an error.
The `increment` value determines the actual increment value, whereas the `offset` value can be used to seed to value
sequence with a specific starting value. This will be useful later in a multi-master setup, when multiple servers can use
different auto-increment seed values and thus generate non-conflicting auto-increment values.

The default values currently are:

- `allowUserKeys`: `true`
- `offset`: `0`
- `increment`: `1`

The only other available key generator type currently is `traditional`. The `traditional` key generator
will auto-generate keys in a fashion as ArangoDB always did (some increasing integer value, with a more or less unpredictable
increment value).

Note that for the `traditional` key generator there is no the option to disallow user-supplied keys and give the
server the sole responsibility for key generation.
2013-03-08 11:54:03 +01:00
Frank Celler dd15025c1c fixed tests, add missing prefix = false to statistics call 2013-03-05 13:32:58 +01:00
Jan Steemann f32e5811d4 increase the http unittest timeout to make all tests pass even with Valgrind 2013-03-01 11:32:52 +01:00
Jan Steemann 47bce0a0b4 issue #436 2013-02-27 14:47:05 +01:00
Jan Steemann 13d1ff0057 issue #425 2013-02-22 23:43:52 +01:00
Jan Steemann 71459b680f issue #426 2013-02-22 23:26:52 +01:00
Jan Steemann 60349edaed fix for routing reload 2013-02-21 18:52:02 +01:00
Jan Steemann 71e5014792 test for a simple route 2013-02-21 18:44:06 +01:00
Jan Steemann a10c139039 added tests for /_admin/echo and thus req.url 2013-02-21 17:57:22 +01:00
Jan Steemann 3e095ab0d0 split users module in client- and server-specific parts 2013-02-21 17:41:38 +01:00
Jan Steemann 35f6b3f054 fix cloning 2013-02-21 15:12:50 +01:00
Jan Steemann 3fdebb38ee issue #393, issue #128
Added a REST API for user management
The REST API exposes the functionality available in module "users" for HTTP access.

The following methods are available:
* GET /_api/user/username: fetch user information
* POST /_api/user: create new user
* PUT /_api/user: replace an existing user
* PATCH /_api/user: (partially) update an existing user
* DELETE /_api/user: remove an existing user

Additionally, a module "crypto" is introduced and exposed for Javascript actions.
The crypto module provides the following functions:
* require("org/arangodb/crypto").md5();
* require("org/arangodb/crypto").sha256();
* require("org/arangodb/crypto").rand();
2013-02-20 11:56:26 +01:00
Jan Steemann d1edc4ddb2 added replaceByExample() and updateByExample() methods
added optional "limit" parameter for removeByExample() method
2013-02-19 11:38:55 +01:00
a-brandt 25882a3cd0 bugfix #410: Graph REST API returns "400:Bad request" instead of "404:Not found" 2013-02-18 09:28:03 +01:00
Jan Steemann f675bdc7dd fixed typo 2013-02-15 15:14:59 +01:00