Avoid calling init without valid lemonldap-ng.ini (#1162)

This commit is contained in:
Xavier Guimard 2017-02-12 20:26:36 +00:00
parent 64027a901a
commit cf1b164058

View File

@ -46,7 +46,8 @@ my $conf = {
},
};
ok( $h->init($conf), 'init' );
eval { $h->localConfig($conf); $h->logLevelInit() };
ok( !$@, 'init' );
ok( $h->configReload($conf), 'Load conf' );
ok( $h->tsv->{portal}->() eq 'http://auth.example.com/', 'portal' );