From 159d154f2e847e28d4fbbf8c2937e7b9827ff333 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 21 May 2021 08:24:51 +0200 Subject: [PATCH] Bug 28385: Add tests This does not test bug 28385 directly but 28278 instead. Signed-off-by: Victor Grousset/tuxayo --- t/Koha/Config.t | 14 +++++++++++++- t/data/koha-conf.xml | 10 +++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/t/Koha/Config.t b/t/Koha/Config.t index 5493b098ca..ba0caa80a9 100755 --- a/t/Koha/Config.t +++ b/t/Koha/Config.t @@ -117,7 +117,19 @@ subtest 'read_from_file() tests' => sub { 'backup_db_via_tools' => '0', 'backup_conf_via_tools' => '0', 'install_log' => '/home/koha/misc/koha-install-log', - 'useldapserver' => '0', + 'useldapserver' => '1', + 'ldapserver' => { + ldapserver => { + hostname => 'ldap://another_ldap_server:389', + user => 'user', + pass => 'password', + mapping => { + firstname => { + is => 'givenName' + } + } + } + }, 'useshibboleth' => '0', 'zebra_lockdir' => '/home/koha/var/lock/zebradb', 'lockdir' => '__LOCK_DIR__', diff --git a/t/data/koha-conf.xml b/t/data/koha-conf.xml index 28cc2689e5..ae5faf6fef 100644 --- a/t/data/koha-conf.xml +++ b/t/data/koha-conf.xml @@ -101,7 +101,15 @@ /home/koha/src/misc --> /home/koha/misc/koha-install-log - 0 + 1 + + ldap://another_ldap_server:389 + user + password + + + + 0 /home/koha/var/lock/zebradb __LOCK_DIR__ -- 2.31.1