1
0
Fork 0
arangodb/UnitTests/HttpInterface
Simon 1d57a46168 Refactor Authentication Layer (3.3) (#4588)
* added tests for revokeCollection and revokeDatabase

* optimized user permission test

* ui selection bugfix

* fixed ldap ui login

* login view

* Authentication refactoring

* localstorage fallback if user config is not available

* Fixing permission resolution test

* Adding missing import

* local storage queries now supported

* disabled collection task check for ldap

* added internal ldapEnabled function and ldap config to the ui

* more db creation tests

* removed console logs

* render fix

* Various authentication related fixes

* exec ldap test also for cluster

* Adding support to refresh user rights from external auth sources

* ldap test howto comment

* Handling roles more correctly

* jwt

* login view

* First part of rework of LDAP documentation.

* test roles in a ldap environment

* Changing role handling

* Finish revision of the LDAP chapter in the manual.

* Fixing user header

* Fixing some slight issues with LDAP users and roles

* Removing unused code

* Removing unused code

* added ldap test

* fixing a bug in restuserhandler

* more ldap tests

* ldap tests

* ldap tests

* optimized ldap testing, added cluster support, fixed some auth tests

* ldap cleanup test

* ldap tests

* auth tests

* ldap test

* Changing permission defaults

* revert change

* updated user helper test

* rm of try catch block connection

* Removing FeatureCacheFeature

* Changed permission resolution according to discussion

* updated the docs to clarify the permission resolution and the intricacies of LDAP users

* Fixing wrong permissions check in handling of PUT in ResUserHandler

* Using revision ID when replacing users

* Adding basic replace test

* tests

* Fixing some outstanding issues

* Fixing test setup, optimizing some stuff

* Fixing permission resolution rules, testsuite setup, etc

* Fix deadlock

* Adding error message for keyspace, slightly changing test setup

* Removing 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

* Fixing an assert

* Cleanup, adding changelog entry

* fix typo

* Fixing dump_authentication test

* improvements found during code review

* oops

* updated CHANGELOG

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

* added tests for ldap search mode

* Fixing testInvalidGrants

(cherry picked from commit bc7ea2aaa29a9ed0974898f487e8a318f24912f1)

* Removing undefined auth level externally

(cherry picked from commit 70859f43ae6fd694fdbf70f669fbfdafc58e7913)

* Fixing previous commit

(cherry picked from commit 2fbcffd2ed657862ef9fb5e6d45201a6ec8ada69)

* more use of sessionstorage

* 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

* fix LDAP test invocation

* Added roles transformation to ldap test suite

* Fix compilation of community version.

* Imrpved the ldap testsuites by unifying their options

* fix permission problems for system collections

* Improved LDAP configuration documentation.

* Grunt.

* fixed some ro/rw display issues

* fixed some ro/rw display issues part 2

* grunt build

* bump version number

* Fixed typos in LDAP manual
2018-02-28 13:24:18 +01:00
..
Gemfile Remove httparty from the bundle - it comes as a dependency from persistent_httparty 2016-02-10 10:48:03 +01:00
README Reorganise unit tests. 2014-02-21 11:24:31 +01:00
api-admin-spec.rb fixed unit tests 2016-05-20 09:31:39 +02:00
api-aql-builtin-spec.rb added /_api/aql-builtin 2016-06-03 12:56:18 +02:00
api-aqlfunction-spec.rb fixed incompatibilies with newer rspec/ruby versions 2015-01-16 12:34:12 +01:00
api-async-spec-timecritical.rb Replaced lingering calls to removed API. (#3702) 2017-11-15 20:04:03 +01:00
api-attributes-spec.rb move system attributes to the front of objects 2016-04-29 13:13:39 +02:00
api-batch-spec.rb Adjust paths to allow call with a different current dir. 2014-02-20 10:20:24 +01:00
api-collection-access-spec.rb try to fix another permissions problem when collections are accessed … (#3485) 2017-10-25 18:05:17 +02:00
api-collection-mmfiles-noncluster-spec.rb Added RocksDB export functionality and some bug fixes. 2017-04-04 17:33:14 -04:00
api-collection-mmfiles-spec.rb Replacing /_api/collection with RestHandler (#3543) 2017-11-02 14:57:17 +01:00
api-collection-rocksdb-noncluster-spec.rb make more tests pass 2017-04-05 14:57:18 +02:00
api-collection-rocksdb-spec.rb Replacing /_api/collection with RestHandler (#3543) 2017-11-02 14:57:17 +01:00
api-cursor-spec-noncluster.rb fix typo in test description 2017-01-30 16:40:55 +01:00
api-cursor-spec.rb fixed issue #4056 (#4058) 2017-12-16 15:10:29 +01:00
api-database-spec.rb issue #2348 2017-03-03 10:50:13 +01:00
api-document-create-spec.rb escape Unicode characters in JSON dumps 2016-06-29 12:53:08 +02:00
api-document-delete-spec.rb Change undocumented behaviour in case of invalid rev in If-Match headers. 2017-02-07 22:37:38 +01:00
api-document-key-spec.rb Adjust tests for 3.0. 2016-03-09 15:20:55 +01:00
api-document-read-spec.rb Change undocumented behaviour in case of invalid rev in If-Match headers. 2017-02-07 22:37:38 +01:00
api-document-update-spec.rb Change undocumented behaviour in case of invalid rev in If-Match headers. 2017-02-07 22:37:38 +01:00
api-documents-spec.rb test fixes 2016-04-06 17:39:24 +02:00
api-edge-spec.rb Fix edge tests. 2016-03-10 12:45:10 +01:00
api-edges-spec.rb test fixes 2016-03-21 18:25:48 +01:00
api-endpoint-spec.rb Converted endpoint handler from JS to C++ (#2905) 2017-08-01 09:53:04 +02:00
api-explain-spec.rb fixed invalid object access, added a test (#2862) 2017-07-25 22:26:51 +02:00
api-export-spec-timecritical-noncluster.rb adjusted test 2017-01-04 15:37:30 +01:00
api-foxx-manager-spec-nightly.rb we may only execute nightly foxx-manager tests so we don't stress out github. 2017-04-26 13:34:31 +02:00
api-general-graph-spec.rb cleanup after testruns 2017-09-12 14:47:52 +02:00
api-http-spec.rb added OPTIONS to cors methods header 2017-03-28 16:18:53 +02:00
api-import-noncluster-spec.rb enable import API for cluster 2016-06-24 10:53:00 +02:00
api-import-spec.rb enable import API for cluster 2016-06-24 10:53:00 +02:00
api-index-geo-spec.rb unify index struct return values in cluster and non-cluster for fulltext and geo indexes (#2534) 2017-06-08 13:35:00 +02:00
api-index-hash-spec.rb added "deduplicate" attribute for array indexes (#2644) 2017-06-30 17:53:50 +02:00
api-index-persistent-spec.rb added tests, fixed unique constraints 2016-06-07 17:26:07 +02:00
api-index-skiplist-spec.rb added tests for sparse indexes 2015-02-10 21:28:12 +01:00
api-index-spec.rb test split 2017-04-04 16:16:50 +02:00
api-pipelining-spec-noncluster.rb attempt to fix test that fails non-deterministically on TravisCI 2015-09-17 21:07:48 +02:00
api-query-analysis-spec-timecritical.rb fixed tests 2017-03-08 18:08:36 +01:00
api-replication-global-spec.rb replication bugfixes and improvements ported from 3.2 (#4497) 2018-02-09 13:39:31 +01:00
api-replication-mmfiles-spec.rb Feature/async failover (#3451) 2017-10-18 23:59:29 +02:00
api-replication-rocksdb-spec.rb fix missing events in RocksDB-based replication for transactions that… (#4276) 2018-01-15 22:44:54 +01:00
api-simple-all-spec.rb moved PUT /_api/simple/all to C++ 2015-06-18 15:34:45 +02:00
api-simple-any-spec.rb Adjust paths to allow call with a different current dir. 2014-02-20 10:20:24 +01:00
api-simple-example-spec.rb Adjust paths to allow call with a different current dir. 2014-02-20 10:20:24 +01:00
api-simple-fulltext-mmfiles-spec.rb rename tests so they run in mmfiles engine only 2017-04-05 08:59:50 +02:00
api-simple-geo-mmfiles-spec.rb rename tests so they run in mmfiles engine only 2017-04-05 08:59:50 +02:00
api-simple-modify-example-cluster-spec.rb fixed tests 2014-02-27 11:39:36 +01:00
api-simple-modify-example-spec.rb make merging configurable in update-by-example API 2016-01-04 16:31:06 +01:00
api-simple-range-spec.rb Adjust paths to allow call with a different current dir. 2014-02-20 10:20:24 +01:00
api-statistics-spec.rb use should syntax in ruby test 2016-11-23 11:36:16 +01:00
api-transactions-cluster-spec.rb Feature/js to cpp transaction handler (#2985) 2017-08-11 09:29:34 +02:00
api-transactions-noncluster-spec.rb Feature/js to cpp transaction handler (#2985) 2017-08-11 09:29:34 +02:00
api-traversal-cluster-spec.rb Moved another test to use the document endpoint instead of the edge endpoint. 2016-04-05 10:30:03 +02:00
api-traversal-edgecollection-cluster-spec.rb Fixed test, it still used _api/edges instead of _api/document 2016-04-05 10:20:17 +02:00
api-traversal-edgecollection-noncluster-spec.rb fixed tests 2016-03-22 13:10:36 +01:00
api-traversal-noncluster-spec.rb fixed tests 2016-03-22 13:10:36 +01:00
api-users-spec.rb Refactor Authentication Layer (3.3) (#4588) 2018-02-28 13:24:18 +01:00
api-view-spec-noncluster.rb Added PATCH support to view rest handler. 2017-03-29 12:13:55 -04:00
api-wal-noncluster-spec-mmfiles.rb Moving api-wal-noncluster and adding running trx 2017-04-05 11:54:30 +02:00
arangodb.rb RocksDB WAL tailing fixes (#3595) 2017-11-10 09:31:53 +01:00
arangomultipartbody.rb Change spelling of 'initialize' to American English (comments and log messages only) 2015-09-01 17:07:21 +02:00
run-tests use all available, non-cluster tests 2014-07-25 15:36:21 +02:00
run-tests-replication Enabled saving applier config and fixed some replication tests/behavior. 2017-04-27 22:39:48 -04:00
stress-test.rb

README

Conventions for testing framework:
==================================

All files in this directory whose name starts with "api-"
and ends with ".js" automatically take part in http
or https server tests, with the exception of 
"api-replication-spec.js".

If the filename contains the string "-cluster-", then it is
only executed when testing in cluster mode. If the filename
contains the string "-noncluster-", then it is only executed
when testing in single instance mode.