From 046d74010919073efbaff330dc577396df05d9b9 Mon Sep 17 00:00:00 2001 From: maudoux Date: Sat, 6 Apr 2019 21:45:07 +0200 Subject: [PATCH] Fix regex unit tests (#1664) --- lemonldap-ng-portal/t/36-Combination-with-token.t | 4 ++-- lemonldap-ng-portal/t/43-MailPasswordReset-with-token.t | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lemonldap-ng-portal/t/36-Combination-with-token.t b/lemonldap-ng-portal/t/36-Combination-with-token.t index bb11d849d..84c80b5a9 100644 --- a/lemonldap-ng-portal/t/36-Combination-with-token.t +++ b/lemonldap-ng-portal/t/36-Combination-with-token.t @@ -72,11 +72,11 @@ sub iniCmb { my $res = LLNG::Manager::Test->new( { ini => { logLevel => 'error', - requireToken => '"127.1.1.1" !~ /$env->{ipAddr}/', + requireToken => '$env->{ipAddr} !~ /127\.0\.[1-3]\.1/', useSafeJail => 1, authentication => 'Combination', userDB => 'Same', - + combination => $expr, combModules => { DB => { diff --git a/lemonldap-ng-portal/t/43-MailPasswordReset-with-token.t b/lemonldap-ng-portal/t/43-MailPasswordReset-with-token.t index fff2b6129..2490eb56f 100644 --- a/lemonldap-ng-portal/t/43-MailPasswordReset-with-token.t +++ b/lemonldap-ng-portal/t/43-MailPasswordReset-with-token.t @@ -31,7 +31,7 @@ SKIP: { userDB => 'Same', passwordDB => 'Demo', captcha_mail_enabled => 0, - requireToken => '!$env->{ipAddr} || $env->{ipAddr} ne "127.1.1.1"', + requireToken => '$env->{ipAddr} !~ /127\.0\.[1-3]\.1/', portalDisplayResetPassword => 1, portalMainLogo => 'common/logos/logo_llng_old.png', }