Commit 046d7401 authored by Christophe Maudoux's avatar Christophe Maudoux 🐛

Fix regex unit tests (#1664)

parent 2fabde04
...@@ -72,11 +72,11 @@ sub iniCmb { ...@@ -72,11 +72,11 @@ sub iniCmb {
my $res = LLNG::Manager::Test->new( { my $res = LLNG::Manager::Test->new( {
ini => { ini => {
logLevel => 'error', logLevel => 'error',
requireToken => '"127.1.1.1" !~ /$env->{ipAddr}/', requireToken => '$env->{ipAddr} !~ /127\.0\.[1-3]\.1/',
useSafeJail => 1, useSafeJail => 1,
authentication => 'Combination', authentication => 'Combination',
userDB => 'Same', userDB => 'Same',
combination => $expr, combination => $expr,
combModules => { combModules => {
DB => { DB => {
......
...@@ -31,7 +31,7 @@ SKIP: { ...@@ -31,7 +31,7 @@ SKIP: {
userDB => 'Same', userDB => 'Same',
passwordDB => 'Demo', passwordDB => 'Demo',
captcha_mail_enabled => 0, captcha_mail_enabled => 0,
requireToken => '!$env->{ipAddr} || $env->{ipAddr} ne "127.1.1.1"', requireToken => '$env->{ipAddr} !~ /127\.0\.[1-3]\.1/',
portalDisplayResetPassword => 1, portalDisplayResetPassword => 1,
portalMainLogo => 'common/logos/logo_llng_old.png', 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