Commit cff92f2e authored by dcoutadeur dcoutadeur's avatar dcoutadeur dcoutadeur

- adaptation of new handler tests:

  * don't use LemonLoadConf anymore (instead minimal config hash is used in 01 and 02 tests)
  * using ENV variables instead of GLOBAL::variable to launch DefaultHander with a test configuration
  * unset ENV variables at the end of every test
  * adapting Makefile with new dependancies used for test

parent 1c5d4d8c
......@@ -15,6 +15,8 @@ WriteMakefile(
'SOAP::Lite' => 0,
'Test::MockObject' => 0,
'Test::Pod' => 0,
'File::Basename' => 0,
'Cwd' => 0,
},
META_MERGE => {
'recommends' => {
......
......@@ -25,6 +25,7 @@ use Lemonldap::NG::Common::Conf; #link protected lmConf
use Lemonldap::NG::Common::Conf::Constants; #inherits
use Cache::Cache qw($EXPIRES_NEVER);
use Lemonldap::NG::Handler::Main::Logger;
use Env qw($lmTestConfig);
use Mouse;
......@@ -41,10 +42,6 @@ our $reloadTime;
our $lmConf;
our $localConfig;
my $conf = defined($GLOBAL::testInput)
? $GLOBAL::testInput
: {};
BEGIN {
if ( MP() == 2 ) {
eval {
......@@ -262,7 +259,7 @@ sub refresh($$) {
return OK;
}
__PACKAGE__->init( $conf );
__PACKAGE__->init( $lmTestConfig );
1;
__END__
......
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