1
0
Fork 0
arangodb/js/common/tests/shell
Alan Plum cfa0e0db55 Better foxx errors (#6264)
* Fix codeFrame formatting

Pushing the codeFrame first results in ugly line breaks or extra spaces.

* Include cause in MODULE_FAILURE message

The error is always a wrapper for an underlying cause so it should be easier to determine what caused it.

* Add a codeFrame for failed _install

We normally only want this in dev mode but service CRUD should always provide detailed info.

* Expose codeFrame in Foxx CRUD

The codeFrame can only come from a failed _install, so let's make it visible to Foxx CLI and friends.

* Add codeFrame to runScript

Scripts can also only be executed with access to the Foxx API so we can provide the same info as during CRUD.

* Trim codeFrame fileName to basePath

If we have a basePath, we don't need to expose the full path to the user for the codeFrame to be meaningful.

* Fix getReadableName

Previously 'catch-fire' would become 'Catch  Ire'.

* Add to changelog
2018-08-28 14:36:33 +02:00
..
exclusive-collections-noncluster-rocksdb.js make tests non-timecritical (#6129) 2018-08-09 11:28:29 +02:00
general-graph-creation-cluster-spec.js added lost gharial tests (#6173) 2018-08-16 18:40:03 +02:00
shell-aqlfunctions.js make API for POST /_api/aqlfunction downwards-compatible again (#5636) 2018-06-20 12:52:54 +02:00
shell-array-index-noncluster.js
shell-attributes.js remove useless flush from test, bump wal flush default timeouts (#4845) 2018-03-14 21:59:48 +01:00
shell-base64.js
shell-cluster-collection.js Fix index selectivity estimate issues with RocksDB engine (#4429) 2018-02-09 16:05:33 +01:00
shell-cluster-crud.js
shell-cluster-simple.js
shell-collection-access.js try to fix another permissions problem when collections are accessed … (#3485) 2017-10-25 18:05:17 +02:00
shell-collection-mmfiles-noncluster.js Split a JS test. 2017-04-05 11:39:28 -04:00
shell-collection-mmfiles.js make truncate a bit less obstrusive (#3721) 2017-11-16 20:28:33 +01:00
shell-collection-rocksdb-noncluster.js jslint 2018-08-16 09:26:44 +02:00
shell-collection-rocksdb.js unify validation of collection names in AQL (#6203) 2018-08-21 11:11:15 +02:00
shell-collection-volatile-mmfiles-noncluster.js Split/moved more test files. 2017-04-05 12:16:54 -04:00
shell-community-sharding-compat-cluster.js centralized more of the sharding strategies code (#6140) 2018-08-15 14:37:01 +02:00
shell-community-sharding-hash-cluster.js Improved sharding algorithms (#6089) 2018-08-09 19:03:32 +02:00
shell-crypto.js fixed jslint warning 2018-08-17 15:09:23 +02:00
shell-database.js Add query, aql.literal (#5184) 2018-05-03 14:18:20 +02:00
shell-deadlocks-timecritical-noncluster-mmfiles.js Fixing tests 2017-04-13 17:45:16 +02:00
shell-document-babies.js trx crud with empty arrays now short-circuit and return success with empty array. This lead to errors in cluster, band now is consistent with single-server. 2017-01-10 15:15:15 +01:00
shell-document.js WIP - start adding optional overwrite to insert operation (RepSert) (#5268) 2018-05-24 19:47:15 +02:00
shell-edge-index-cache-rocksdb.js added test case 2018-01-19 15:43:30 +01:00
shell-edge-index-noncluster.js Fix index selectivity estimate issues with RocksDB engine (#4429) 2018-02-09 16:05:33 +01:00
shell-edge.js Bug fix/validate from to consistently (#5434) 2018-05-23 11:41:30 +02:00
shell-env.js
shell-errors.js
shell-explain-cluster.js
shell-explain-noncluster.js Bug fix/3.2.1 issues (#3009) 2017-08-09 16:49:24 +02:00
shell-figures-mmfiles-noncluster.js cleanup after testrun, lintify 2017-09-12 14:48:20 +02:00
shell-foxx-manager-install-spec.js jslint 2018-08-16 09:26:44 +02:00
shell-foxx-manager-utils-spec.js Better foxx errors (#6264) 2018-08-28 14:36:33 +02:00
shell-fs.js Add adler32 test 2017-05-24 09:09:08 +02:00
shell-fulltext.js fix fulltext index removal performance, simplified code (#3015) 2017-08-12 09:25:30 +02:00
shell-general-graph.js fix jslint warnings 2018-08-09 11:39:21 +02:00
shell-graph-measurement.js
shell-graph-traversal.js
shell-hash-index.js potential fix for issue #3581: Unexpected "rocksdb unique constraint violated" with unique hash index (#3596) 2017-11-07 10:42:41 +01:00
shell-index-ensure.js Renaming test files 2017-04-06 10:29:40 +02:00
shell-index-ensure2-mmfiles.js S2 based Geo-Spatial index (#5249) 2018-05-02 23:54:41 +02:00
shell-index-figures-noncluster-spec.js S2 based Geo-Spatial index (#5249) 2018-05-02 23:54:41 +02:00
shell-index-geo.js Remove redundant geo code, remove WITHIN_RECTANGLE (#5757) 2018-07-04 20:21:00 +02:00
shell-index-vertex-centric.js
shell-index.js adjusted test 2018-08-07 11:53:29 +02:00
shell-keygen-noncluster.js added key generators "uuid" and "padded" (#5740) 2018-07-03 15:23:47 +02:00
shell-keygen.js track last used keys in cluster key generators, track key on cluster document insert (#6101) 2018-08-08 14:32:16 +02:00
shell-locals-spec.js Add @arangodb/locals module (#5145) 2018-04-20 12:51:33 +02:00
shell-noncluster-edge.js
shell-persistent-index-mmfiles.js fix README_maintainers, provide debug output for invalid invocations 2017-04-19 12:05:16 +02:00
shell-query-timecritical-spec.js Streaming Query Cursor (#4769) 2018-03-08 09:18:41 +01:00
shell-quickie.js
shell-rename-noncluster.js
shell-require.js Bug fix/fiddle version string into test paths (#6266) 2018-08-28 09:27:32 +02:00
shell-simple-query.js make truncate a bit less obstrusive (#3721) 2017-11-16 20:28:33 +01:00
shell-statement-cluster.js
shell-statement-encoding-noncluster.js Bug fix/fiddle version string into test paths (#6266) 2018-08-28 09:27:32 +02:00
shell-statement-noncluster.js
shell-statement.js revert unification of collection name validation 2018-08-21 18:46:13 +02:00
shell-tasks-timecritical.js Add C++ implementation, load-balancing support, and user restriction for tasks API (#5973) 2018-07-25 09:17:43 +02:00
shell-transactions-noncluster.js
shell-transactions-rocksdb-noncluster.js extended tests 2018-08-02 09:56:19 +02:00
shell-transactions.js Teach executeTransaction about ArangoCollection objects (#5183) 2018-05-03 14:17:31 +02:00
shell-unique-constraint.js
shell-unique-index-cluster.js
shell-unload.js
shell-users.js attempt to fix issues reported by @ewoutp 2017-03-03 14:47:21 +01:00
shell-util-spec.js jslint 2018-08-16 09:26:44 +02:00
shell-v8.js
shell-view-arangosearch-link-noncluster.js issue 410.3: remove the extra neting of ArangoSearch view definition into 'properties' (#5956) 2018-07-24 16:27:28 +03:00
shell-view-arangosearch-noncluster.js issue 450.5: rename consolidation-related configuration properties and remove locale (#6232) 2018-08-23 16:04:25 +03:00