Commit 64952d67 authored by Christophe Maudoux's avatar Christophe Maudoux 🐛

Improve unit test (#1664)

parent cb539738
......@@ -72,7 +72,7 @@ sub iniCmb {
my $res = LLNG::Manager::Test->new( {
ini => {
logLevel => 'error',
requireToken => '$ipAddr eq "127.0.0.1"',
requireToken => '!$env->{ipAddr} || $env->{ipAddr} ne "127.1.1.1"',
useSafeJail => 1,
authentication => 'Combination',
userDB => 'Same',
......
......@@ -10,7 +10,7 @@ my $client = LLNG::Manager::Test->new( {
ini => {
logLevel => 'error',
useSafeJail => 1,
requireToken => 1,
requireToken => '"Bad rule"',
}
}
);
......
......@@ -25,7 +25,7 @@ SKIP: {
portalDisplayRegister => 1,
registerDB => 'Demo',
captcha_register_enabled => 0,
requireToken => 1,
requireToken => '!$env->{ipAddr} || $env->{ipAddr} ne "127.1.1.1"',
}
}
);
......
......@@ -31,7 +31,7 @@ SKIP: {
userDB => 'Same',
passwordDB => 'Demo',
captcha_mail_enabled => 0,
requireToken => '$ipAddr eq "127.0.0.1"',
requireToken => '!$env->{ipAddr} || $env->{ipAddr} ne "127.1.1.1"',
portalDisplayResetPassword => 1,
portalMainLogo => 'common/logos/logo_llng_old.png',
}
......
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