Commit 60b959f3 authored by Xavier Guimard's avatar Xavier Guimard

Enable local cache in e2e tests (#889)

parent 427e4d0a
......@@ -266,7 +266,7 @@ extra_test: all
e2e_test: all prepare_test_server start_web_server launch_protractor stop_web_server
prepare_test_server:
@mkdir -p e2e-tests/conf/lock e2e-tests/conf/persistents/lock
@mkdir -p e2e-tests/conf/sessions/lock e2e-tests/conf/persistents/lock
@$(MAKE) install_webserver_conf \
RCONFDIR=e2e-tests/conf \
ERASECONFIG=1 \
......
......@@ -5,6 +5,14 @@
type=File
dirName=__pwd__/e2e-tests/conf
loglevel = debug
localStorage=Cache::FileCache
localStorageOptions={ \
'namespace' => 'lemonldap-ng-config',\
'default_expires_in' => 600, \
'directory_umask' => '007', \
'cache_root' => '__pwd__/e2e-tests/conf', \
'cache_depth' => 0, \
}
[portal]
......
......@@ -109,12 +109,19 @@
},
"globalStorage": "Apache::Session::File",
"globalStorageOptions": {
"Directory": "__pwd__/e2e-tests/conf",
"LockDirectory": "__pwd__/e2e-tests/conf/lock",
"Directory": "__pwd__/e2e-tests/conf/sessions",
"LockDirectory": "__pwd__/e2e-tests/conf/sessions/lock",
"generateModule": "Lemonldap::NG::Common::Apache::Session::Generate::SHA256"
},
"groups": {},
"key": "qwertyui",
"localSessionStorageOptions": {
"cache_depth": 3,
"cache_root": "__pwd__/e2e-tests/conf",
"default_expires_in": 600,
"directory_umask": "007",
"namespace": "lemonldap-ng-sessions"
},
"locationRules": {
"manager.example.com": {
"(?#Configuration)^/(manager\\.html|conf/)": "$uid eq \"dwho\"",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment