From 382735e6f279ac1fab2673fde5dea64ffaa49086 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. --- 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 5493b098cab..ba0caa80a90 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 28cc2689e5b..ae5faf6feff 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.20.1