1
0
Fork 0
Commit Graph

15115 Commits

Author SHA1 Message Date
Wilfried Goesgens 6561f21536 Feature/make rspec timeouteable (#9354)
* make rspec timeouteable (on windows for now)

* add timeout state, fix windows implementation

* abort testrun if a timeout in rspec occured

* lint

* fix scope of procdump stopper

* fix include scope

* fix invokation

* use proper variable to wait for
2019-06-28 15:01:04 +02:00
Wilfried Goesgens 3c6264b9b0 wait .25, then check whether procdump successfully starts, and if not, properly abort the operation (#9333) 2019-06-26 19:08:38 +02:00
Wilfried Goesgens 63568a2aac add a function that will use procdump to generate a core before attempting to kill the SUT with *nix coredump enabled signals (#9322) 2019-06-25 16:25:25 +02:00
Wilfried Goesgens bf9328cd18 properly forward corecheck option to the client tools launch invokations (#9313)
* properly forward corecheck option to the client tools launch invokations

* one param was missing
2019-06-25 11:24:55 +02:00
Wilfried Goesgens f947954f6c fix the option to specify a ruby executeable from the outside in instead of leaning on rspec.bat to do its job (#9315) 2019-06-24 20:39:30 +02:00
Lars Maier 7d98b5bde4 Info log when server is removed. Store remove date in agency. (#9285) 2019-06-24 14:04:57 +02:00
Wilfried Goesgens f3b1de9808 adopt option to do the right thing with gtests (#9280) 2019-06-18 11:15:09 +02:00
Wilfried Goesgens a866f8c6fd update gtest, use json output for reporting (#9193) 2019-06-17 13:46:40 +02:00
Frank Celler bb7c9082d1 release version 3.5.0-rc.4 2019-06-13 21:57:29 +02:00
Frank Celler f021ea68f7 Merge branch 'devel' of github.com:arangodb/arangodb into 3.5 2019-06-13 20:47:41 +02:00
Heiko 7432c5f152 this out of scope inside the callback function (#9169)
* this out of scope inside the callback function

* changelog
2019-06-12 16:03:41 +02:00
Markus Pfeiffer a793f72448 Move roundCost function to utilities (#9247) 2019-06-12 16:02:09 +02:00
Heiko 677ffdc692 Bug fix/gravatar ui fix (#9211)
* fixed editing of users in the web ui when gravatar was enabled

* changelog

* Update userManagementView.js

rm console log
2019-06-12 15:20:15 +02:00
Alan Plum a6b49e3a7e Bug fix/buffer redux (#9229)
* Add failing tests

* Add tests for Buffer#slice

* Add tests for Buffer#new

* Skip failing tests

* Implement changes

* Unskip failing tests

This reverts commit 9f8a34bd74e152b7b3158fea79b12e6da8343001.

* Fix implementation

* Remove meaningless test

This test only succeeded because of a broken implementation of the Buffer constructor. It doesn't really do anything useful.

* Add note to CHANGELOG
2019-06-12 15:00:43 +02:00
Jan 59d84e8301 attempt to remove expired WAL files on agents (#9231) 2019-06-09 19:46:45 +02:00
Jan 091abbec77 don't make RocksDB startup fail with 0-byte log files (#9208) 2019-06-07 15:13:56 +02:00
Frank Celler 6b16d1c0a5 Revert "Fix Buffer methods (#9070)"
This reverts commit 6c96e5dd24.
2019-06-07 10:18:58 +02:00
Tobias Gödderz 429b3dcf3d Allow generic graph tests to work without enterprise checkout (#9202) 2019-06-06 15:15:53 +02:00
Jan 074397d367
allow "stream" attribute on top level (#9195) 2019-06-05 15:48:58 +02:00
Wilfried Goesgens 1d2071420b output setup failures to testfailures.txt (#9188) 2019-06-05 09:55:54 +02:00
Alan Plum 6c96e5dd24 Fix Buffer methods (#9070)
* Add failing tests

* Implement changes

* Add note to CHANGELOG

* Fix test failure
2019-06-03 17:07:52 +02:00
Dan Larkin-York 44a413a9af Miscellaneous fixes for named indices (#9100) 2019-05-31 17:00:56 +02:00
Frank Celler a2ee756c5e release version 3.5.0-rc.3 2019-05-30 08:46:27 +02:00
Frank Celler c3cc48e35f Merge branch 'devel' of github.com:arangodb/arangodb into 3.5 2019-05-30 07:32:27 +02:00
Frank Celler 7dbb26c0c0 added missing semicolon 2019-05-29 22:58:56 +02:00
Tobias Gödderz bdfa6c6951 Collect all tests that are skipped due to a previous crash (#9011) 2019-05-29 15:32:57 +02:00
Markus Pfeiffer 73ac4f194d (K_)SHORTEST PATHS: Display correct directions in explainer/profiler (#9080) 2019-05-29 15:31:09 +02:00
Wilfried Goesgens 065b87f9a8 preserve the instance shutdown state, and if its bad, don't clean up the test directory (#9122)
* preserve the instance shutdown state, and if its bad, don't clean up the test directory

* Update js/client/modules/@arangodb/testing.js

Co-Authored-By: Tobias Gödderz <github@tobias.goedderz.info>

* Update js/client/modules/@arangodb/testsuites/permissions_server.js

Co-Authored-By: Tobias Gödderz <github@tobias.goedderz.info>

* Update js/client/modules/@arangodb/testsuites/permissions_server.js

Co-Authored-By: Tobias Gödderz <github@tobias.goedderz.info>

* Update js/client/modules/@arangodb/testsuites/single.js

Co-Authored-By: Tobias Gödderz <github@tobias.goedderz.info>

* fix handling in custom start/stop handlers

* remove shutdown state from reporting structure

* fix shutdown of second instance

* one more to adjust

* only add jwt if we run the agency with authentification

* lint
2019-05-29 15:59:34 +03:00
Tobias Gödderz 5da9fcb0ce Bugfix of DFS path uniqueness implementation (#9041)
* Began work on generic traversal testing framework

* Translate shard ids to smart attributes

* Minor fixes

* Added a TODO note

* fixed tests

* cleanup

* first tests inside new traversal framework working

* added single server diamond tests

* Enable sharding in aql-graph-traversal-generic-graphs.js

* Tried to fix smart sharding

* Fixed smart graph name clashes, some cleanup

* Added meta tests

* Added TODO note

* Fixed single server

* Added a BFS order check

* Renamed test

* added more dfs and bfs tests for the openDiamond graph

* Added new graph "largeBinTree"

* Fix Map usage

* added smallCircle graph, added three dfs tests

* added smallCircle graph, added three dfs tests

* more smallCircle dfs tests

* Fixed largeBinTree shardings, and long graph names

* Fix long suffixes

* Provided names for shardings

* Added a log message

* more bfs smallCircle tests

* more bfs smallCircle tests - global

* smallCircle picture

* added completeGraph to graph test suite

* added more dfs tests for the complete graph up to depth 3

* Removed duplicate function definitions

* added depth 2 dfs complete graph test, added missing test to the exports

* Added test for largeBinTree

* added three path graphs, easy, advanced and more advanced

* Added a working check for bfs with global uniqueness

* Fixed usage of bfs checks

* Fixed expected input for two tests

* Added some static assertions to largeBinTree

* Oops

* added more advancedPath dfs tests

* better formatting of the visual graph

* more dfs advanced graph tests

* Implemented all easy path test combinations

* Fixed testAqlGraphQuery

* Fix in bfs check error reports

* Removed duplicate test

* Added advancedPath BFS tests

* Updated comments

* Fixed new tests

* Fixed graph description

* added more complete graph bfs tests

* added more complete graph bfs tests

* added testCompleteGraphBfsUniqueEdgesNoneD1 and testCompleteGraphBfsUniqueEdgesNoneD2

* added testCompleteGraphBfsUniqueVerticesUniqueEdgesPathD3 test

* added a few more complete graph bfs checks

* Extended a comment
2019-05-27 12:57:02 +02:00
Alan Plum 6ceb6209ed Update index.html (#9097) 2019-05-24 16:01:56 +02:00
Heiko a5f1e0c18f fixed logger view ejs templates (#9092)
* fixed logger view ejs templates

* splittet one template into two seperates

* changelog
2019-05-24 13:48:13 +02:00
Frank Celler 37a1d7521e Merge branch 'devel' of github.com:arangodb/arangodb into 3.5 2019-05-23 15:28:56 +02:00
Wilfried Goesgens b7ad25b3fe only add whitespace if we have actual content to separate (#9062) 2019-05-23 14:52:18 +02:00
Wilfried Goesgens 8db0acae79 control the agency dumper via whether we launched an agency or not (#9058) 2019-05-23 14:50:44 +02:00
Michael Hackstein 1a6719e144
Revert "(K_)SHORTEST PATHS: Display correct directions in explainer/profiler (#9049)" (#9074)
This reverts commit 44d15db812.
2019-05-22 16:46:45 +02:00
Markus Pfeiffer 44d15db812 (K_)SHORTEST PATHS: Display correct directions in explainer/profiler (#9049) 2019-05-22 16:06:46 +02:00
Frank Celler 73fee31db5 release version 3.5.0-rc.2 2019-05-22 11:25:54 +02:00
Frank Celler 446a025960 Merge branch 'devel' of github.com:arangodb/arangodb into 3.5 2019-05-22 09:54:14 +02:00
Alan Plum e8b7e1860a Bug fix/unbreak foxx security (#9042)
* Unbreak aardvark when --foxx.api false

The easiest way to disable the aardvark foxx routes is to just skip the
import and mount altogether. The previous approach caused the service to
throw an error because the module doesn't actually export anything.
There's no need to prevent the export if we just don't import the module
to begin with.

* Add an error code for service api disabled

* Throw an actual error when accessing Foxx API routes

* Throw an error when using legacy Foxx API

There's no easy way to use a catch-all here so disable them one by one. No new routes will be added to this API and it'll go away in 4.0 so there's no risk of forgetting to add the throw-check in new routes.

* Render subnav without delay

The subnav doesn't need the perm check results but we need the subnav to exist so we can populate it in other parts of the app. This fixes the subnav not showing up when reloading certain views (e.g. install service via upload).

* Hide ONLY the Foxx store when it is disabled

We still want to allow installing and upgrading/replacing services. We just don't want to show the store.

* Hide Foxx services in frontend if Foxx API is disabled

* Build aardvark

* fixed typo in disable check, fixed tests
2019-05-21 14:45:23 +02:00
jsteemann d1671425c1 don't hide tooltip by default 2019-05-21 10:37:11 +02:00
Jan a61dd2895e
only offer indexes of type "persistent" in the web UI for the RocksDB (#9046) 2019-05-21 10:11:07 +02:00
Dan Larkin-York d5ecdd143a Convert unit tests to googletest framework (#9034) 2019-05-21 09:17:46 +02:00
jsteemann 8d7d4e3faf nicify label 2019-05-20 15:49:20 +02:00
Jan 49babbc66b
handle incomplete read errors (#9021) 2019-05-20 14:13:41 +02:00
Frank Celler 148ba5f288 Revert "Fix Foxx security (#9020)"
This reverts commit a57b6b86ef.
2019-05-18 09:55:13 +02:00
Frank Celler de566b405d Revert "fixed typo in disable check, fixed tests"
This reverts commit 068bbc9143.
2019-05-18 09:54:49 +02:00
Frank Celler 068bbc9143 fixed typo in disable check, fixed tests 2019-05-18 09:42:11 +02:00
Alan Plum a57b6b86ef Fix Foxx security (#9020)
* Unbreak aardvark when --foxx.api false

The easiest way to disable the aardvark foxx routes is to just skip the
import and mount altogether. The previous approach caused the service to
throw an error because the module doesn't actually export anything.
There's no need to prevent the export if we just don't import the module
to begin with.

* Add an error code for service api disabled

* Throw an actual error when accessing Foxx API routes

* Throw an error when using legacy Foxx API

There's no easy way to use a catch-all here so disable them one by one. No new routes will be added to this API and it'll go away in 4.0 so there's no risk of forgetting to add the throw-check in new routes.

* Hide Foxx services in frontend if Foxx API is disabled

* Render subnav without delay

The subnav doesn't need the perm check results but we need the subnav to exist so we can populate it in other parts of the app. This fixes the subnav not showing up when reloading certain views (e.g. install service via upload).

* Hide ONLY the Foxx store when it is disabled

We still want to allow installing and upgrading/replacing services. We just don't want to show the store.

* Build aardvark
2019-05-17 16:41:34 +02:00
Wilfried Goesgens 3c5193231f we now support umlaut temp dirs; create multi-layer temp-dirs; add tests (#9008)
* we now support umlaut temp dirs; create multi-layer temp-dirs; add tests

* Fix log
2019-05-15 21:47:05 +02:00
jsteemann 8fabe21a79 fix jslint 2019-05-15 14:35:50 +02:00
Wilfried Goesgens 8ff54d3433 Doc - Feature/swagger operation ids (#8945)
Helps to grep for Swagger DocuBlocks based on method names in code
2019-05-15 12:23:56 +02:00
Wilfried Goesgens 5171771dc8 switch the temp path too (#9000) 2019-05-15 12:16:28 +02:00
Tobias Gödderz 82f5978f30 Bugfix: Do not call getSome on remote after DONE (#8978)
* Bugfix: Do not call getSome on remote after DONE

* Added profiler tests for Sorting- and UnsortingGather

* Fixed jslint error
2019-05-15 09:13:44 +02:00
Frank Celler 0684deb4b9 Merge branch 'devel' of github.com:arangodb/arangodb into 3.5 2019-05-14 23:07:32 +02:00
Jan 1ddb8351b9
properly display the selectivity estimates of unique indexes in the explainer (#8993) 2019-05-14 16:15:49 +02:00
Lars Maier 2bb96eedac Fixed lost precondition when removing server. (#8987) 2019-05-14 15:38:17 +02:00
Heiko 635ab2bb40 fixing issue #7011 (#8967) 2019-05-13 16:03:13 +02:00
Heiko f5e7bdd277 Bug fix/pre compile ui templates (#8958)
* splittet one query templates into two seperate files

* fixed syntax error in graphSettingsView

* fixed syntax error in foxxEditView

* rm not needed fix of tooltips

* changed format of ejs files due to pre-compiling templates now

* load templates via script tag

* adjust arango helper to work with new tippy version

* adjust arango templateEngine to work with pre compiled underscore templates

* minify and uglify pre compiled templates

* modified gitignore to not track not minified and uglified templates

* fixed queryViewOutput template

* make tooltips visible again!

* add grunt-contrib-jst to package.json

* make templates.js accessible via aardvark

* ... and enable gzip for em

* added build templates
2019-05-13 14:09:44 +02:00
Heiko ce0f17d1eb Bug fix/issue 8841 (#8979)
* fixed issue 8841

* changelog
2019-05-13 13:51:18 +02:00
Frank Celler cee85e48ab release version 3.5.0-preview.1 2019-05-12 09:34:46 +02:00
Andrey Abramov 99f3a1fb75
add missing quote (#8970) 2019-05-11 18:30:29 +03:00
Andrey Abramov 4e12fdb30b
ArangoSearch sorted indexes (#8888)
* move IResearchViewSort into separate unit

* ensure sort is propagated to IResearchLink

* update iresearch and extend some tests

* implement insertion of sorted values, store value comparator in link

* add tests for VPackComparer

* minor cleanup

* fix issue with sort definiton propagation

* propagate error message from index factory

* add integration tests for sorted indexes, single server

* initial implementation of IResearchViewMergeExecutor

* move iresearch::VPackComparer to separate translation unit

* store collection in IndexReadBuffer for IResearchViewMergeExecutor

* set primary sort from optimizer rule

* add some tests for sorted view case

* extend IResearchViewNode tests

* simplify primary sort definition

* pretty print order condition covered by arangosearch in query explanation

* fix compilation with g++-8

* address catch test failures

* fix tests

* adjust arangosearch optimizer rule to optimize sort in case of cluster

* make tests for sorted indexes work in cluster too

* fix tests

* extend js tests for sorted indices

* fix keyword in query explainer

* ensure sort-limit rule works with views

* backport ngram analyzer fix from upstream

* address jslint errors

* modify IResearchViewSort to support boolean direction specification format

* add some tests

* add tests

* add skip functionality

* extend tests

* add more catch tests

* inline some methods

* address jslint errors

* extend catch tests to reproduce the failure

* add some tests for check fullcount

* add more tests

* extend tests

* temporarily comment out broken tests

* extend js tests

* address review comments

* address jslint errors

* update iresearch
2019-05-11 17:58:56 +03:00
Vasiliy 42b830c7a9 issue 561.1: add pretty-printing to analyzers in JavaScript (#8964) 2019-05-10 21:50:15 +03:00
jsteemann d620d5c720 jslint 2019-05-09 19:08:49 +02:00
Jan Christoph Uhde 192ecd2f75 add test for unicode paths (#8909) 2019-05-09 19:00:48 +02:00
KVS85 014490e459
Fix example for kShortestPathsGraph 2019-05-08 17:23:23 +03:00
Alan Plum 75bab782bb Upgrade Swagger UI (#8912)
* Upgrade Swagger UI

* Document update process

* Expand update process, define acceptance criteria
2019-05-08 15:28:22 +02:00
Vasiliy ca0dc7789e issue 564.1: remove return value and propagate 'force' (#8924)
* issue 564.1: remove return value and propagate 'force'

* address merge issue
2019-05-07 18:44:34 +03:00
Jan Christoph Uhde f3a2eaf6d9 Bug fix/permission tests (#8890) 2019-05-07 15:07:59 +02:00
KVS85 e9f669c139 Fix load_balancing suite to conform testing.j options 2019-05-06 17:23:16 +02:00
Heiko 8f5ea9b771 jslint (#8915) 2019-05-06 15:52:01 +02:00
Markus Pfeiffer 3109dd6747 Doc - Add documentation for k Shortest Paths (#8836) 2019-05-06 12:56:03 +02:00
Jan 7acb9a9092
make creating debug packages smart graph-aware (#8886) 2019-05-06 09:18:10 +02:00
Jan 900c23fda7
use _system database in /_admin/cluster/health (#8898) 2019-05-06 09:13:33 +02:00
KVS85 d51aec7914
Enable logs for setup of recovery test 2019-05-05 13:41:19 +03:00
jsteemann 0a7b17e917 use log level debug for startup warnings 2019-04-30 12:33:55 +02:00
Lars Maier 6cd94d114a Yeah, change the icon.. (#7492) 2019-04-30 11:11:10 +02:00
Jan Christoph Uhde 677a79026c Foxx Security (#8845) 2019-04-25 09:56:29 +02:00
Wilfried Goesgens 6984daf67b record the times used for the setup/teardown methods of jsunity tests; exposed to the json report file to be enabled along with the junit xml report files. (#8838) 2019-04-24 17:00:38 +03:00
KVS85 98ce26d092 Fix recovery suite to succeed in case of no tests 2019-04-22 09:33:56 +02:00
Frank Celler b3a2dc98b8 added buckets 2019-04-21 14:36:54 +02:00
KVS85 e7d5d7e343
Fix jslint in resilience suite 2019-04-19 15:38:08 +03:00
KVS85 d5b05aef9e
Fix typo and jslint in replication suite 2019-04-19 15:37:34 +03:00
KVS85 878415ef8e Change resilience and replication testsuits layouts required for new tests and greylisting 2019-04-19 01:14:34 +02:00
Heiko 81fe61c780 prune highlight (#8782) 2019-04-18 10:51:21 +02:00
Alan Plum 8692f19e99 Handle extra args to db._query when using aql templates (#8789) 2019-04-18 10:50:46 +02:00
Dan Larkin-York 48fb15e94f Auth-related tests for audit logging (#8790) 2019-04-18 10:45:41 +02:00
Frank Celler 6eb986825e
grey only (#8786)
* grey only

* Update testing.js
2019-04-17 19:29:36 +02:00
Alan Plum 40aff3fdcd Upgrade JS deps (#8773)
* Make jsunity hash function avoid recursion

This guards against traversals of recursive data structures causing a stack overflow. This is crucial when using assertEqual with unknown inputs.

* Update deps

accepts: 1.3.4 -> 1.3.5
ansi_up: 2.0.2 -> 4.0.3
content-disposition: 0.5.2 -> 0.5.3
dedent: 0.6.0 -> 0.7.0
error-stack-parser: 1.3.6 -> 2.0.2
eslint: 2.13.1 -> 5.16.0
eslint-config-semistandard: 6.0.2 -> removed
eslint-config-standard: 5.3.1 -> removed
eslint-plugin-promise: 1.3.2 -> removed
eslint-plugin-standard: 1.3.2 -> removed
highlight.js: 9.12.0 -> 9.15.6
http-errors: 1.6.2 -> 1.7.2
iconv-lite: 0.4.19 -> 0.4.24
joi: 9.2.0 -> 14.3.1
joi-to-json-schema: 2.3.0 -> 4.0.1
js-yaml: 3.10.0 -> 3.13.1
marked: 0.3.9 -> 0.6.2
mime-types: 2.1.12 -> 2.1.22
mocha: 2.5.3 -> 6.1.3
qs: 6.5.1 -> 6.7.0
semver: 5.4.1 -> 6.0.0
statuses: 1.4.0 -> 1.5.0
timezone: 1.0.13 -> 1.0.22
type-is: 1.6.15 -> 1.6.16
underscore: 1.8.3 -> 1.9.1

* Inline eslint semistandard config

The eslint standard config has become extremely opinionated and incompatible with the existing coding style. This subset matches the existing coding style most closely. In the future we should migrate to an autoformatter like prettier and avoid this problem altogether.

* Linting

* Fix mocha runner

* New joi has additional property
2019-04-17 13:36:26 +02:00
Vasiliy 1a22d1360c issue 526.9.1: implement swagger interface, add documentation (#8730)
* issue 526.9.1: implement swagger interface, add documentation

* address review comments

* add ngram

* Formatting

* Move REST description to new Analyzers top chapter in HTTP book

* Missed a DocuBlock

* Add Analyzers chapter to Manual SUMMARY.md

* Move REST API description back to Manual

Headlines were broken

* Add n-gram example
2019-04-16 18:54:30 +03:00
Dan Larkin-York 777ba1a364 Improved audit logging (#8740) 2019-04-15 14:51:32 +02:00
Jan 340e3c79b0
try to force cleanup on shutdown (#8754) 2019-04-15 12:40:09 +02:00
Jan 69f7a8a00d
longer WAL file retention for test (#8736) 2019-04-15 10:16:34 +02:00
Markus Pfeiffer a14386267a k Shortest Paths (#8715)
* Add k-shortest-paths finder
2019-04-12 21:58:18 +02:00
Alan Plum b76f8adc0f Add SyntheticRequest#auth (#8750)
* Add SyntheticRequest#auth

* Fix tests
2019-04-12 21:18:35 +02:00
Alan Plum 3007c928aa Add collection.documentId method (#8749) 2019-04-12 19:53:01 +02:00
Tobias Gödderz dc888ba3e8 Do not send SIGABRT to rr, as it will result in an unusable trace (#8745) 2019-04-12 15:04:36 +02:00
Jan 4f62dd8dae
added AQL function DECODE_REV (#8606) 2019-04-11 15:59:04 +02:00
Wilfried Goesgens fafb40ee33 Feature/complete collection documentation (#8734) 2019-04-11 15:53:43 +02:00
Heiko 97d54a3875 changelog (#8662) 2019-04-11 11:47:30 +02:00