Browse Source

Bug 28385: Add tests

This does not test bug 28385 directly but 28278 instead.

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
Jonathan Druart 2 months ago
parent
commit
e10b25d594
  1. 14
      t/Koha/Config.t
  2. 10
      t/data/koha-conf.xml

14
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__',

10
t/data/koha-conf.xml

@ -101,7 +101,15 @@
<supportdir>/home/koha/src/misc</supportdir>
-->
<install_log>/home/koha/misc/koha-install-log</install_log>
<useldapserver>0</useldapserver><!-- see C4::Auth_with_ldap for extra configs you must add if you want to turn this on -->
<useldapserver>1</useldapserver><!-- see C4::Auth_with_ldap for extra configs you must add if you want to turn this on -->
<ldapserver id="ldapserver">
<hostname>ldap://another_ldap_server:389</hostname>
<user>user</user>
<pass>password</pass>
<mapping>
<firstname is="givenName" ></firstname>
</mapping>
</ldapserver>
<useshibboleth>0</useshibboleth><!-- see C4::Auth_with_shibboleth for extra configs you must do to turn this on -->
<zebra_lockdir>/home/koha/var/lock/zebradb</zebra_lockdir>
<lockdir>__LOCK_DIR__</lockdir>

Loading…
Cancel
Save