1
0
Fork 0
Commit Graph

208 Commits

Author SHA1 Message Date
jsteemann f857e23b21 fix jslint warnings 2018-06-01 18:24:32 +02:00
Wilfried Goesgens 1172512622 Add ability to turn on line number logging to the catch tests (#5448)
- if the user has enabled extremeVerbosity on the unittest,
   line number logging will be turned on as well.
2018-06-01 18:11:33 +02:00
Wilfried Goesgens 991be0cb40 introduce target to locate the testsuite for a given testcase filename (#5482) 2018-06-01 17:23:33 +02:00
Jan d648fd0e30
fix read-only tests (#5479) 2018-05-29 13:13:51 +02:00
Simon 45fbed497b Supervision Job for Active Failover (#5066) 2018-04-23 12:49:41 +02:00
Michael Hackstein 1e96c94aad
Windows should now use rspec.bat by default. No stunts with handed in ruby and rspec foo required but still possible. (#4937) 2018-03-23 11:40:15 +01:00
Jan ed843991d6
added test (#4840) 2018-03-14 16:14:09 +01:00
Simon 345fc3c0b7 Refactor Authentication Layer (devel) (#4592)
* Cherry Picking LDAP changes

* Adding missing merges

* Fixing remaining mentions of FeatureCacheFeature

* Fix jslint

* Fixing some failed tests

* Fixing cluster authentication issue, red tests

* Fixing ldap testsuite, adding trace logging

* Fixint ldap tesuite setup and LDAP recognition

(cherry picked from commit 686d28a779)

* Fixing wrong assert

* Adding changelog entry, making requested changes from code review

* Fixing dump_authentication, fix typos

* improvements found during code review

* oops

* more use of sessionstorage

* fix tests

* Fixing broken handling, disallowing adding of local users when disabled

* Fixing testInvalidGrants

* Removing undefined auth level externally

* Fixing previous commit

* added tests for ldap search mode

* intentionally removed `after` methods from tests

because they are executed before the tests start
no cleanup is performed right now after the authentication tests
however, a cleanup is done at start of every test

* ldap tests all modes

* forward port changes from 3.3

* added generated files

* forward port missing changes for web UI

* added generated files

* added generated files
2018-02-28 13:24:28 +01:00
Jan 63c50c3993
Bug fix/handle single delete (#4618) 2018-02-19 14:49:58 +01:00
Jan 8da61a9875
Bug fix/more replication tests (#4500) 2018-02-09 13:06:47 +01:00
Wilfried Goesgens 14c5c3aa35 fix restoring a dump created from a cluster to single server (#4350) 2018-01-24 13:50:27 +01:00
Manuel B ebf1622b4e typo (#4414) 2018-01-24 13:48:41 +01:00
Jan Christoph Uhde bddadda0ee add 'create database' to 'import feature' (#4278) 2018-01-15 15:15:31 +01:00
Jan 6040b4ae9f
add ignore-missing option to arangoimport (#4129) 2017-12-22 11:29:10 +01:00
Jan 2a96df5ca5
Feature iresearch (#4071) 2017-12-18 15:04:59 +01:00
Dan Larkin 9cd8c47eb7 Renamed arangoimp to arangoimport (with alias for compatibility.) (#4040) 2017-12-14 21:31:21 +01:00
Jan 08949a1608
disable junit reporter for catch tests (#3864) 2017-12-06 16:35:18 +01:00
Jan f3e4e84778
add a test for replication applier restarts (#3750) 2017-12-06 11:09:36 +01:00
Frank Celler 179ae83cbc
Feature/encrypted dump (#3768) 2017-11-22 15:59:02 +01:00
Simon Grätzer 7c31960cf2 Feature/async failover (#3451) 2017-10-18 23:59:29 +02:00
Frank Celler bf281688ca Feature/jenkins pipeline (#3365) 2017-10-04 10:13:54 +02:00
Jan 56fab56ff5 Bug fix/issues 2709 (#3333)
* logging improvements

* fixed copy&paste error

* enable assertions in non-release mode

* updated CHANGELOG

* fix --temp.path (was dysfunctional), fix creation of temporary directories and races
2017-10-01 09:43:03 +02:00
Max Neunhoeffer e070921bc6 Revert "shut down the second instance properly (#3332)"
This reverts commit 890cd995ef.
2017-09-27 09:22:14 +02:00
Max Neunhoeffer 78ec0ec469 Revert "Bugfix/fix test arangod shutdown command (#3260)"
This reverts commit 3afebaed42.
2017-09-27 09:18:39 +02:00
Frank Celler bc60ebcc5f fixed jslint 2017-09-26 21:28:17 +02:00
Wilfried Goesgens 890cd995ef shut down the second instance properly (#3332) 2017-09-26 18:32:37 +02:00
Wilfried Goesgens 3afebaed42 Bugfix/fix test arangod shutdown command (#3260)
* If our arango-object claims its got a connection to the arangodb server, use it to send a shutdown signal to the server.

If not, fall back to using a download http request.

* don't use kill to shut down the server, we now can use the regular shutdown command.
2017-09-26 14:46:30 +02:00
Wilfried Goesgens 2833bd6185 Bugfix/cleanup graphs (#3250)
* when running against an external server also setup the proper connection

* cleanup grahs after testing
2017-09-15 14:20:21 +02:00
Jan 5165155ed1 Bug fix/fixes 0609 (#3227)
* do not use V8 variant of AQL functions in early optimization stage when a C++ variant is available

* additionally, simplify AQL function definitions and aliases

* warn when more than 90% of max mappings are in use

* added C++ variant of replication catchup

* added `--log.role` option

* updated CHANGELOG

* removed non-existing scheduler.threads option from config

* removed useless __FILE__, __LINE__ invocations

* updated CHANGELOG

* allow a priority V8 context

* remove TRI_CORE_MEM_ZONE

* try to fix Windows errors & warnings

* cleanup

* removed memory zones altogether

* exclude system collections from collection tests
2017-09-13 16:28:21 +02:00
Wilfried Goesgens 5b131450a2 revalidate that tests clean up properly. 2017-09-12 14:49:06 +02:00
Wilfried Goesgens 48c5587c67 only run testsuite when we're on enterprise and actually do have tests 2017-09-12 12:11:13 +02:00
Simon Grätzer ffc465433a No access collections Improvements (#3190)
* consolidated EdgeDocumentToken

* optimizing cluster traversal

* adding skip collection checks

* API cleanup

* copying AQLValue to avoid use-after-free bugs

* Fixing rocksdb SingleServerEdgeCursor

* Fixing a collection resolving issue
2017-09-07 14:55:07 +02:00
Wilfried Goesgens be8e04295d be more ignorant about existing or missing directories on startup / cleanup. 2017-08-31 15:42:37 +02:00
Jan 2f05b0ffeb jslint (#3167) 2017-08-30 11:28:51 +02:00
Wilfried Goesgens c662dfc863 Cleanup after each testrun (#3109)
* Cleanup after each testrun

 - add a success testsuite next to the fail testsuite
 - create temporary directories in the fail & success testsuites
 - add a function to cleanup the last unshifted directory
 - don't say we're crashed when exiting with the help message

* Specify temp path for SUT so its files will be removed after cleanup.

 - cleanup
 - don't use getTempFile(), it will create another subdirectory that we don't clean up afterwards...

* Fix temp path usage

 - creating a 'bundles' directory wherein we would keep our temporary bundle files would collide if we'd clean it up.
 - create 'bundles-tmpxxxx' instead so its individual to us and we can remove it when done without problems.

* properly create & pass in a temporary directory - as we now require this.

* Remove intermediate directory recursive - for some unknown reason there may be temp files created.

* we need to unify tempfilenames here too.

* use individual suite names

* use the standart performTests to run the backup tests - so we have the proper directory and server handling from the infrastructure.

* fix temporary directory handling in the recovery tests.

* script to build debugging debian packages

* Improve test shutdown

 - handle a set of options globally per testsuite, so they don't need to clone them inside.
 - properly cleanup the slave instance of the replication tests after each run.
 - The per testsuite options vector will fix the behaviour that after one failed testsuite
   all other suites won't be cleaned up anymore.

* don't call the overal cleanup if anything failed.

* fix cleaning up of directories.

* cleanup, fix directory creation / deletion / dummy creation.

* cleanup, fix directory creation / deletion / dummy creation.

* fix tempdir handling for the recovery tests
2017-08-30 10:48:24 +02:00
Simon Grätzer 885ea3dd5f Remove attribute option for arangoimp (#3141)
* Adding a remove attribute option to arangoimp (only for csv)

* Adding documentation

* Fixed log statement

* Update CHANGELOG
2017-08-30 10:45:02 +02:00
Michael Hackstein 0f1b6e32eb Bug fix/issue 3106 orphans in general graph (#3147)
* Added a test-case for #3106

* Added a fix for #3106
2017-08-28 15:02:15 +02:00
Jan 8e4dac4fc4 fix fulltext index removal performance, simplified code (#3015)
* simplify index API a bit

* fix fulltext index removal performance, simplified code

* updated CHANGELOG

* fix hanging test

* try to fix shutdown problem

* improve fulltext query performance

* fixed duplicate var

* removed obsolete code

* fix some shutdown races

* do not call ensureIndex that often
2017-08-12 09:25:30 +02:00
Michael Hackstein 7ab117f5f8 Bug fix/dump restore auth (#2917)
* Added a backup test suite. This suite is supposed to entirely drop an ArangoDB _system and restore it into a fresh one. This also includes system collections.

* Added more test cases for backup suite. Now tests several authorization/rights cenarios

* Fixed RestReplication Handlers to restore _user collections Properly.

* Updated Changelog

* Added special handling of _users in Restore for MMFiles as well.

* Added JWT secret for cluster execution of this test, also added JWT secret to shutdown call
2017-08-09 12:59:51 +02:00
Jan ce2425cade Bug fix/daily fixes (#2958)
* do not rely on non-existing feature "AQL"

using such feature makes the server throw two exceptions (which will be caught) on startup, but its silly for debugging

* use condition variable for signalling shutdown

* do not hard-code the log levels for recovery tests

this has taken so many developers so much of their time that it is about time to fix it

* ensure the 'unittests' script properly finds 'arangosh' and the build directory
2017-08-04 20:46:08 +02:00
Simon Grätzer 3f58a44e3b Fix cases where the root user has access to excluded collections (#2856) 2017-08-03 21:16:08 +02:00
Manuel B fe8b9b70c4 Feature/planning 580 arangoexport with query (#2882)
* added query export capability

* test for export --query

* docu

* document export with query

* Update CHANGELOG
2017-07-28 08:41:53 +02:00
Frank Celler a692577f5b Feature/auth context (#2815) 2017-07-16 09:39:03 +02:00
Jan 852f91f32c it would have told us of about a missing semicolon (#2729) 2017-07-04 17:35:42 +02:00
Manuel B 83712b7b4a Feature/authorization query cache (#2720)
* check authorization when accessing query cache
2017-07-04 08:37:14 +02:00
Jan 1d944b97a4 fix https://github.com/arangodb/planning/issues/388 (#2714)
also fix jslint issues
2017-07-03 18:41:54 +02:00
Frank Celler bbe7484521 Feature/auth context (#2704)
* added read-only users
2017-07-02 23:15:57 +02:00
Frank Celler bec7c089fb fixed path (#2710) 2017-07-02 22:50:55 +02:00
Andreas Streichardt 086f6a26c5 Add host/port 2017-05-12 14:51:49 +02:00
jsteemann 87830a62cf turn off LDAP tests by default 2017-05-11 09:56:15 +02:00
jsteemann cb189bd973 turn off LDAP tests by default in community builds 2017-05-10 23:26:12 +02:00
jsteemann 6fad62e53d add option documentation 2017-05-10 23:18:37 +02:00
Michael Hackstein e54f4b96da Fixed jslint in testsuites/rspec 2017-05-05 15:59:02 +02:00
Michael Hackstein dd4da7cbca Rspec and Export tests now honor the given --testOutput parameter. Also ssl_server and http_server do now write in different files, this lead to errors on jenkins. 2017-05-05 15:51:22 +02:00
Manuel B 9bc9d4180c ldap test: updated statusCode to 401 2017-05-04 10:46:30 +02:00
jsteemann b65b1a3717 fix helpless engine filtering 2017-05-04 01:26:51 +02:00
Wilfried Goesgens fcd07bbf24 fix failed count in all testsuites 2017-05-03 15:26:48 +02:00
Wilfried Goesgens b10f5496d6 styleguide cleanup 2017-05-03 14:03:07 +02:00
Wilfried Goesgens 20a7c0e6b2 remove system stackframes from ruby output; lintify 2017-04-28 10:38:31 +02:00
jsteemann 2077b8033e fix invalid testing.js behavior 2017-04-27 15:53:57 +02:00
Manuel B f524c55aa9 ldap test: missing ; 2017-04-25 15:22:52 +02:00
Manuel B e518d15978 ldap test: tripple req 2017-04-25 15:21:02 +02:00
baslr 3d9f58bb70 Merge remote-tracking branch 'origin/devel' into feature/ldap-auth 2017-04-24 12:45:35 +02:00
Dan Larkin c8f87d0b62 Split dump test file (engine-specific values). 2017-04-20 17:12:15 -04:00
baslr 9425160d6d ldaptest handle arangod not started case 2017-04-18 11:37:53 +02:00
Michael Hackstein 1087065ea5 Merge branch 'devel' of github.com:arangodb/arangodb into engine-api 2017-04-13 17:34:25 +02:00
baslr 671aed927f added failing ldap test 2017-04-13 13:56:00 +02:00
baslr 949ad9a0d8 for every ldap test one result 2017-04-13 13:24:14 +02:00
baslr cfe5d1891f Merge remote-tracking branch 'origin/devel' into feature/ldap-auth 2017-04-12 20:42:18 +02:00
baslr 399ce5fb90 options fix 2017-04-12 15:30:16 +02:00
baslr 966ea503c2 first ldap tests 2017-04-12 14:00:35 +02:00
Wilfried Goesgens 6887cdbb43 lean on the ICU_DATA env that arangosh exposes. 2017-04-12 13:53:21 +02:00
Wilfried Goesgens 24fca9974d run the tests one time without reporting to debug windows issue 2017-04-12 12:58:11 +02:00
Wilfried Goesgens ccb2175904 exclude two testsuites to check whether this hinders jenkins 2017-04-12 11:15:38 +02:00
Wilfried Goesgens 839d44de80 another place where we need to know the testresult output directory 2017-04-11 17:06:52 +02:00
baslr 850097247d prepare ldap test 2017-04-11 16:05:54 +02:00
Jan Christoph Uhde 028afb782d enable logtopic development for recovery tests
if extreme verbosity is set to true
2017-04-11 15:03:13 +02:00
baslr 42c6e539da initial ldap test 2017-04-10 17:45:46 +02:00
Wilfried Goesgens ab882744d9 on windows put the catch test next to the binaries so we can find the proper dll easily 2017-04-07 16:44:45 +02:00
Wilfried Goesgens 050d931446 Bugfix: we want the common _and_ the server tests. 2017-04-06 11:14:01 +02:00
Andreas Streichardt 61f9f92c46 exclude longrunning tests 2017-04-05 18:47:44 +02:00
jsteemann 56e946bcaf Merge branch 'devel' of https://github.com/arangodb/arangodb into engine-api 2017-04-05 12:32:09 +02:00
Andreas Streichardt c4af620144 Revert "Break tests again"
This reverts commit 111c3fb7cf.
2017-04-05 12:13:23 +02:00
jsteemann 163c17fc85 Merge branch 'devel' of https://github.com/arangodb/arangodb into engine-api 2017-04-05 11:23:11 +02:00
Andreas Streichardt 111c3fb7cf Break tests again 2017-04-05 10:48:53 +02:00
jsteemann 745af96786 Merge branch 'devel' of https://github.com/arangodb/arangodb into engine-api 2017-04-05 10:43:35 +02:00
Andreas Streichardt caaecfda4e Merge branch 'devel' of github.com:arangodb/arangodb into devel 2017-04-05 10:21:54 +02:00
Andreas Streichardt b8faee4415 fix replication setup 2017-04-05 10:18:56 +02:00
Wilfried Goesgens d1a6add6ab move replication & js http api tests into more intuitive locations 2017-04-05 09:48:07 +02:00
jsteemann 8d0f13b059 Merge branch 'devel' of https://github.com/arangodb/arangodb into engine-api 2017-04-05 08:33:32 +02:00
Andreas Streichardt 7400f7f339 fix shutdown of replication tests 2017-04-04 17:09:21 +02:00
Jan Christoph Uhde 3c4bdc106c Merge branch 'devel' of https://github.com/arangodb/arangodb into engine-api
* 'devel' of https://github.com/arangodb/arangodb:
  Cluster: expose body as V8 buffer in asyncRequest
  Cluster: expose getFoxxmaster in V8
  make rspec backtrace more compact
2017-04-04 10:51:07 +02:00
Wilfried Goesgens 57973aa27d make rspec backtrace more compact 2017-04-03 19:37:37 +02:00
jsteemann ad3f1074fe Merge branch 'devel' of https://github.com/arangodb/arangodb into engine-api 2017-04-03 17:26:39 +02:00
Wilfried Goesgens a7a70b20cf remove old unused foxxqueues testsuite 2017-04-03 14:55:41 +02:00
jsteemann fdd5b3036d Merge branch 'devel' of https://github.com/arangodb/arangodb into engine-api 2017-03-31 09:34:06 +02:00
Jan Christoph Uhde 95007fe28e Merge branch 'engine-api' of https://github.com/arangodb/arangodb into engine-api-arango-result
* 'engine-api' of https://github.com/arangodb/arangodb: (46 commits)
  Merged RocksDBPathBasedIndex into RocksDBVPackIndex.
  fix handling of externals
  fix toArray()
  fix returning documents
  Added hash-, skip list, persistent indexes
  harmonize filtering - filter on full filename.
  mini modifications
  standardize starting of servers for replication tests
  Edge index compliant with design doc
  another fix for #2404
  Moved „removeLargeRange“ method to commons
  Added length byte to IndexValue keys.
  fixed issue #2404
  Added drop to primary index
  Added drop() to indexes
  Fixes a coordinator crash in Clustered Traversal. In case of failover during query planning.
  Fixed edge index
  Expand on CORS documentation
  Let ArangoDB handle the allow-credentials header
  make the authentication tests run on directories
  ...
2017-03-30 19:46:17 +02:00
Wilfried Goesgens a2a2d61cbd add bucket support to the rspec tests 2017-03-30 17:58:31 +02:00
Wilfried Goesgens e23560a399 harmonize filtering - filter on full filename. 2017-03-30 15:50:25 +02:00
Wilfried Goesgens 3297844f8d standardize starting of servers for replication tests 2017-03-30 15:46:14 +02:00
Jan Christoph Uhde 329af8fa62 print more when using extremeVerbosity 2017-03-30 14:59:46 +02:00
Wilfried Goesgens 302307e285 make the authentication tests run on directories 2017-03-30 13:07:28 +02:00
jsteemann b2c9a976b3 re-enable AQL tests 2017-03-30 09:00:21 +02:00
mpv1989 e763233ca7 Foxx: Fix arangoUser not being set correctly 2017-03-29 17:33:16 +02:00
jsteemann 02aca574f4 turn off ranges test by default 2017-03-29 11:20:12 +02:00
jsteemann d0766688f3 properly tag geo index tests, and include the long running geo index tests by default 2017-03-29 00:54:24 +02:00
Wilfried Goesgens ffc3d6a515 - move runInArangosh over to test-utils, so its right next to runThere.
- use runInArangosh for the replication tests, so they show proper result reports.
2017-03-28 19:05:00 +02:00
Wilfried Goesgens 476befc9d0 refactor testing.js
- split utility functionality into its own file
 - add module loader so we can have modules
 - move all testsuites into own files
 - remove complicated testcase joining / splitting methods
2017-03-28 16:29:51 +02:00