1
0
Fork 0
Commit Graph

1399 Commits

Author SHA1 Message Date
Willi Goesgens b3e6e35be0 Implement pass through of commandline arguments to arangod cluster instances 2014-10-28 13:28:20 +01:00
Max Neunhoeffer 693b0056cc Merge branch 'devel' of ssh://github.com/triAGENS/ArangoDB into devel 2014-10-28 11:20:19 +01:00
Max Neunhoeffer cfb9b8a37a Add removeAlwaysOnClusterRules helper. 2014-10-28 10:59:27 +01:00
Willi Goesgens 8040f8a27f Implement cluster start on valgrind 2014-10-27 18:30:59 +01:00
Jan Steemann e581aa6612 fixed usage of AQL user-defined functions from web UI 2014-10-27 11:09:20 +01:00
Jan Steemann 29a4416bcf issue #1056: added tests for zipFile / unzipFile
Conflicts:
	js/common/tests/shell-fs.js
	lib/BasicsC/tri-zip.c
2014-10-25 01:21:47 +02:00
Jan Steemann 50ac6737a2 jslint 2014-10-25 00:45:15 +02:00
Thomas Schmidts d79ff5d74d Fixed broken links 2014-10-24 17:49:01 +02:00
Willi Goesgens 5158edd25d If tests fail, skip cleaning up of working directories. 2014-10-23 17:58:04 +02:00
Jan Steemann 3dc2f9b299 fixed test 2014-10-22 16:30:06 +02:00
Jan Steemann 5d178b7220 fixed test 2014-10-22 13:37:48 +02:00
Alan Plum 2747bf8b04 Wrap non-Joi objects as Joi schemas. 2014-10-21 17:20:34 +02:00
Alan Plum 233f21662a Whitespace. 2014-10-21 17:10:51 +02:00
Alan Plum db323869f4 Fixed Foxx RequestContext::errorResponse for strings. 2014-10-21 17:10:50 +02:00
Frank Celler 6def59d804 Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel 2014-10-21 12:28:45 +02:00
Frank Celler a7d93abe43 fixed requireApp in development mode 2014-10-21 12:28:33 +02:00
Jan Steemann 8b7da8aacb the great rename 2014-10-21 00:38:53 +02:00
Jan Steemann 8af715e9b1 removed unused function 2014-10-20 22:30:39 +02:00
Michael Hackstein c179978980 Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel 2014-10-20 12:42:21 +02:00
Michael Hackstein 55f2d57fb4 Reunified ahuacatl-general-graph and aql-general-graph. Fixed JSLint in aql 2014-10-20 12:42:17 +02:00
Willi Goesgens 506eb1113a Fix status message - non/cluster has to be flipped. 2014-10-20 12:05:32 +02:00
Michael Hackstein 501c4c2c84 Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel 2014-10-20 11:47:06 +02:00
Michael Hackstein 0df20e734f Moved general-graph changes from ahuacatl to aql 2014-10-20 11:45:51 +02:00
Frank Celler a3892fb672 fixed collection prefix for users and sessions 2014-10-20 10:59:54 +02:00
Jan Steemann 5c1d01068a log a warning if an AQL user functions throws an exception 2014-10-20 10:00:41 +02:00
Michael Hackstein 0313c74b66 Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel 2014-10-20 09:36:39 +02:00
Michael Hackstein cfd284955d Documentation fix of GRAPH_NEIGHBORS vertex restriction. 2014-10-19 21:04:58 +02:00
Michael Hackstein f6e16315de Fixed a bug and a conceptional misunderstanding in GRAPH_NEIGHBORS 2014-10-17 16:56:05 +02:00
Max Neunhoeffer 7cade2a727 Fix alive check in unittests for cluster. 2014-10-17 16:09:58 +02:00
Jan Steemann a6b237b06e whitespace 2014-10-16 17:41:50 +02:00
Willi Goesgens 9e01c41c2a - List the right available test cases for single client/server
- use our runInArangosh function instead of copying the code
 - only start an arangod if we know that we will try to run a test.
2014-10-16 12:10:34 +02:00
Willi Goesgens a3bb132fb1 Handle SIG11, keep a copy of arangod for later coredump analysis. 2014-10-16 11:24:15 +02:00
Willi Goesgens 4f7592a5da streamline output
- adjust testnames to match the real function names
  - only output the server on prelemitary exit once.
2014-10-16 10:35:51 +02:00
Jan Steemann 688e8ebbc1 better support for handling multipart requests 2014-10-16 02:05:57 +02:00
Jan Steemann 5fa14b2fda jslint 2014-10-15 20:40:08 +02:00
Jan Steemann 537d0e5e55 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2014-10-15 17:43:46 +02:00
Jan Steemann 739253b44e updated docs 2014-10-15 17:43:35 +02:00
Willi Goesgens c1a0f4be7c Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel 2014-10-15 17:38:29 +02:00
Willi Goesgens caecb9936f Move deletion of temporary files from test to the total end of the test run. 2014-10-15 17:37:55 +02:00
Jan Steemann 24dcb9c369 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2014-10-15 17:33:26 +02:00
Jan Steemann edae662eb4 added res.send() and res.sendFile() 2014-10-15 17:33:10 +02:00
Willi Goesgens 43e4a4f126 Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel 2014-10-15 17:03:22 +02:00
Willi Goesgens 013db5856d When running the tests with valgrind we don't want to shut down the server instance forcefully to avoid false positives. 2014-10-15 17:02:44 +02:00
Thomas Schmidts 0fd685eb07 Fixed small spelling errors 2014-10-15 16:04:25 +02:00
Willi Goesgens e3977c20ed Abstract the filter mechanism, so it can be used by all testcases
apply -skipGeo to jsunity tests too.
2014-10-15 14:57:59 +02:00
Jan Steemann cc9f416bba whitespace 2014-10-15 12:45:57 +02:00
Willi Goesgens 9040b3c663 Add the testrun name to the data directory, so we can better reference them in the valgrind results. 2014-10-15 10:00:38 +02:00
Jan Steemann 76fdd17d6b Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2014-10-14 19:07:43 +02:00
Jan Steemann 6bd448be46 added support for reading / writing binary data in fs.readFileSync && fs.write 2014-10-14 19:07:16 +02:00
Willi Goesgens 244a2771b2 Work on documentation & usage:
- add unittest readme
  - unify the commandline help output of testing.js
  - utilise the commandline output of testing.js in unittest.js
2014-10-14 16:18:53 +02:00
Jan Steemann 49074d17c1 forked 2014-10-14 11:29:01 +02:00
Jan Steemann 5dd593991b Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2014-10-14 11:18:29 +02:00
Jan Steemann 95cfbd7051 test fix 2014-10-14 11:18:16 +02:00
Willi Goesgens fa926a48a7 Add timecritical option to the unittests 2014-10-14 11:04:45 +02:00
Willi Goesgens 3e0e2c1084 Work around RUNNING / ECHILD troubles. 2014-10-14 09:15:11 +02:00
Jan Steemann 294d89c5e3 fixed illegal checkExternalProcess call 2014-10-13 11:34:21 +02:00
Alan Plum 1ba13aca62 Clarified usage of bodyParams. 2014-10-11 18:49:19 +02:00
Jan Steemann 23e692e7fa added FIND_FIRST, not yet documented 2014-10-10 18:57:57 +02:00
Willi Goesgens 684604d8f6 Lintify testing.js 2014-10-10 11:47:08 +02:00
Willi Goesgens 73d121ece7 Add the possible error messages from waitpid to the result output. 2014-10-10 11:44:48 +02:00
Willi Goesgens 330a4f5457 If the server goes away while testing skip subsequent tests, they will fail anyways. 2014-10-09 11:09:19 +02:00
Willi Goesgens e433a2831e Add a new wrapper which does fork + waitpid in one js call, so we're closer to the flame and less eventually miss something. 2014-10-08 16:48:30 +02:00
Willi Goesgens e60e85686f executeAndWait: if we failed with fancy exit states run top -b -n1 to get some information on the overage system state while running the tests.
single_[client|server]: print detailed usage if the options aren't set.
2014-10-08 15:58:15 +02:00
Willi Goesgens 42fd706204 Ignore SIG_USR1 as failed test status. 2014-10-07 18:12:14 +02:00
Willi Goesgens 526572a43f de-duplicate executeAndWait() from the ruby tests. 2014-10-07 17:02:41 +02:00
Jan Steemann 6975d50076 fixed parse error 2014-10-07 14:38:30 +02:00
Willi Goesgens 41e215ba0d Add count of how many tests failed to the summary. 2014-10-07 09:23:59 +02:00
Thomas Schmidts 53f38b5c0a AQL Graph Operations now have the right options. This fixes #1019 2014-10-06 14:23:36 +02:00
Jan Steemann f49d2e9830 removed unused code 2014-10-01 13:01:04 +02:00
Jan Steemann 0948aaccd9 issue #693: fixed firstExample for `_from` and/or `_to` attributes 2014-10-01 12:20:52 +02:00
Willi Goesgens 97bc7e16cb Valgrind: also add plain text logfile, so you can choose which you like. 2014-09-30 09:52:43 +02:00
Willi Goesgens c00c86229b Add the PID to the valgrind XML name 2014-09-29 09:52:05 +02:00
Willi Goesgens 93d32839ac differentiate between ABORT/TERMINATED/other 2014-09-26 15:53:22 +02:00
Willi Goesgens 504ae4328d be more verbose about the time & status of sub-processes. 2014-09-26 14:56:21 +02:00
Jan Steemann 2ddb342db3 fixed jslint warnings 2014-09-26 12:24:23 +02:00
Willi Goesgens fee451058d Remove the perf tests from the all target 2014-09-25 15:58:06 +02:00
Willi Goesgens 9a6c86583f More verbosely comment on the state of auth tests 2014-09-25 15:48:13 +02:00
Max Neunhoeffer 3bf28e48da Fix typo. 2014-09-25 14:05:35 +02:00
Max Neunhoeffer 15954c23a7 Fix pretty printing. 2014-09-25 13:52:28 +02:00
Max Neunhoeffer d5d3694fb6 Merge branch 'devel' of ssh://github.com/triAGENS/ArangoDB into devel 2014-09-25 13:50:13 +02:00
Max Neunhoeffer 9be20720aa Fix reporting of result for ruby tests. 2014-09-25 13:45:02 +02:00
Willi Goesgens 8df5b7e9d9 Catch exceptions and print informations to debug the tests. 2014-09-25 13:39:42 +02:00
Willi Goesgens b21e0ff425 replace single test runner with options skip-server/skip-client by single_server and single_client. This suits the layering of the result structures better. 2014-09-25 13:22:54 +02:00
Max Neunhoeffer db5b987e0d Merge branch 'devel' of ssh://github.com/triAGENS/ArangoDB into devel 2014-09-25 11:56:16 +02:00
Max Neunhoeffer 29401bb637 Fix typo. 2014-09-25 08:50:46 +02:00
Willi Goesgens 74f669118a Adopt jasmine results into new report scheme on testsuite base 2014-09-24 17:30:40 +02:00
Willi Goesgens 47c4817c50 Adjust perf tests reply structure & the report generator to the new standard. 2014-09-24 13:35:44 +02:00
Jan Steemann c8efcda671 jslint 2014-09-24 09:34:14 +02:00
Willi Goesgens a9003baa84 Properly handle http remoting failures and output the fail message along with the test results. 2014-09-23 17:53:35 +02:00
Willi Goesgens 357764ac57 Implement structures in the same way for all other tests, and move the pretty printer over, so users calling testing.js directly can also enjoy human readable test results. 2014-09-23 16:56:24 +02:00
Willi Goesgens 9e53626f5b Add status to perftests, so the unittestrunner is lucky with our result and we don't fail in jenkins. 2014-09-23 11:17:22 +02:00
Willi Goesgens 42647b01f7 Fix aggregation of overal test result state 2014-09-23 10:18:49 +02:00
Jan Steemann 92f87c19ce Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into aql2
Conflicts:
	arangod/V8Server/v8-vocbase.cpp
2014-09-22 23:51:16 +02:00
Jan Steemann 9716a482cd fixed issue #1025: Traversal not as expected in undirected graph 2014-09-22 23:08:17 +02:00
Willi Goesgens 03ca3431e1 Add more information to the unittest status xml 2014-09-22 17:10:06 +02:00
Jan Steemann 6ab1ff472a Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into aql2 2014-09-22 09:30:58 +02:00
Alan Plum 4aa876c70f Make RequestContextBuffer methods chainable. 2014-09-21 23:01:06 +02:00
Jan Steemann 767052e0fe jslint 2014-09-19 17:55:34 +02:00
Willi Goesgens afc512a3b1 Add perf tests to executor script. 2014-09-19 16:30:31 +02:00
Willi Goesgens feb01d87c5 Testrunner:
- add documentation for valgrind options
  - add possibility to pass commandline parameters for arangod in
2014-09-17 14:36:10 +02:00
Willi Goesgens bf72ab863a Add possibility to reset the test case before re-executing more tests 2014-09-17 11:05:07 +02:00
Jan Steemann 92814c418e fixed script 2014-09-16 17:03:35 +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
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
Willi Goesgens ce08c58718 add the ability to run the test themselves in valgrind. 2014-09-16 14:25:25 +02:00
Alan Plum 6f357edb67 Made Foxx.Repository methods behave more consistently. Fixes #975. 2014-09-16 14:05:20 +02:00
Lucas Dohmen a2e56535f1 Merge pull request #1021 from triAGENS/easy-params
Allow passing joi params directly
2014-09-16 12:58:02 +02:00
Alan Plum cd8af52859 Added documentation for ctrl.before interrupts. 2014-09-16 11:45:08 +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
Lucas Dohmen 7abbb58ac2 Merge pull request #1023 from triAGENS/foxx-before-guard
Allow ctrl.before to prevent further processing of the request
2014-09-16 10:51:36 +02:00
scottashton b12d7f99cd added resolving from example strings to objects in GRAPH_NEIGHBORS 2014-09-16 10:36:56 +02:00
Alan Plum cf3c219f22 Revert "Allow specifying "_" as collection prefix."
This reverts commit ebc5c1490d14471b04b8398b44a06896a9460ea8.
2014-09-16 10:27:08 +02:00
Alan Plum 6e3e5d47fc Allow ctrl.before to prevent further processing of the request. 2014-09-16 00:17:46 +02:00
Alan Plum b1a0098c03 Allow passing joi params directly. 2014-09-15 23:34:41 +02:00
Jan Steemann 481a16fd7a removed bitarray indexes 2014-09-15 14:19:38 +02:00
Jan Steemann 34d2913002 added NOT IN operator, added keywords NOT, AND, OR 2014-09-14 01:34:58 +02:00
Jan Steemann 287a6f6b49 fixed errors reported by jslint 2014-09-14 00:09:09 +02:00
Willi Goesgens ea6ab2510e getQueryMultiplePlansAndExecutions: add optional debug facility which does trace output. 2014-09-12 14:36:55 +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
Jan Steemann 611ef2b73c removed "old" AQL function AQL_EXPLAIN 2014-09-11 14:12:01 +02:00
Jan Steemann 672eec350e removed "old" AQL function 2014-09-11 13:56:15 +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
Jan Steemann 39f64dcc5f Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into aql2 2014-09-10 14:32:20 +02:00
Jan Steemann 7113480e98 changed return value of applicationContext.collectionName
Now, a valid collection name is always returned, even if the application name prefix contains invalid characters
2014-09-10 14:30:45 +02:00
Jan Steemann f824474503 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into aql2 2014-09-10 12:00:10 +02:00
scottashton 9a739ec403 fixed bug in floyd-warshall result generation 2014-09-10 11:47:35 +02:00
Jan Steemann c027750d19 jshint 2014-09-10 11:45:59 +02:00
Jan Steemann 2642888b6d Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into aql2 2014-09-09 23:33:31 +02:00
Jan Steemann 346a41a009 fixed reporting of "undefined" response code 2014-09-09 23:18:25 +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
Alan Plum 844621f070 Implemented Foxx.createQuery. 2014-09-09 17:02:21 +02:00
Alan Plum e2c4a62ff7 Cleaned up FoxxController#activateSessions. 2014-09-04 22:30:39 +02:00
Alan Plum 99f9088830 Removed cookie logic from sessions app, simplified jwt logic. 2014-09-04 21:34:46 +02:00
Alan Plum 251e046929 Added req.cookie and res.cookie helper methods to Foxx. 2014-09-04 21:33:33 +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
scottashton db5a109b0a Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2014-09-04 16:50:56 +02:00
scottashton ff8791f6fb fixed betweeness and bug in floyd warshall 2014-09-04 16:50:52 +02:00
Alan Plum 0a2ffb19ee Only lowercase session header when reading it. 2014-09-04 16:33:57 +02:00
Alan Plum e48fb8bfe8 Lowercase HTTP headers for maximum profit. 2014-09-04 16:04:19 +02:00
Alan Plum abe5de335b Add support for "header" sessions. 2014-09-04 15:58:32 +02:00
Willi Goesgens 49ff0423f0 Recurse into subqueries to dig for nodes; thus the test gets a flat representation. 2014-09-03 17:14:21 +02:00
scottashton 581ffee899 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2014-09-03 13:48:41 +02:00
scottashton ccb1e58e9b vertex/edge examples now support a list od id strings 2014-09-03 13:48:36 +02:00
Alan Plum e86c98dfe2 Enabled unused: true, ported aardvark jslint to jshint. 2014-09-02 22:18:18 +02:00
Alan Plum 7b24bdba8d Enabled strict: true. 2014-09-02 22:16:07 +02:00
Alan Plum 606da1e3e8 Removed jslint headers from server/client/common modules. 2014-09-02 22:14:56 +02:00
Alan Plum 3156a245f6 Stricter jshintrc. 2014-09-02 22:12:46 +02:00
Alan Plum 6a3386e55a Fixed jshint headers. 2014-09-02 22:12:45 +02:00