Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • lemonldap-ng lemonldap-ng
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 354
    • Issues 354
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 19
    • Merge requests 19
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • LemonLDAP NGLemonLDAP NG
  • lemonldap-nglemonldap-ng
  • Issues
  • #2704

Some warnings are thrown by unit tests

Concerned version

Version: %2.0.14

Platform: All

Summary

Warnings are still existing.

Logs

maudoux@L520[~/lemonldap-ng/lemonldap-ng-portal](v2.0=)$ prove -v t/01-WebAuthn.t 
t/01-WebAuthn.t .. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in regex; marked by <-- HERE in m/<script type="application/init">\s*({ <-- HERE "request"[^<]*})\s*</script>/ at t/01-WebAuthn.t line 83.
ok 1 - use Lemonldap::NG::Portal::Main;
ok 2 - Portal object


maudoux@L520[~/lemonldap-ng/lemonldap-ng-portal](v2.0=)$ prove -v t/36-Combination-with-Choice.t
t/36-Combination-with-Choice.t .. 
ok 1 - use Lemonldap::NG::Portal::Main;
...
ok 39 -  No pdata
ok 40 - Disconnect request
ok 41 -  Response is 401
Use of uninitialized value $r in 1's complement (~) at /home/maudoux/lemonldap-ng/lemonldap-ng-portal/../lemonldap-ng-common/blib/lib/Lemonldap/NG/Common/Combination/Parser.pm line 91.
Use of uninitialized value $r in bitwise and (&) at /home/maudoux/lemonldap-ng/lemonldap-ng-portal/../lemonldap-ng-common/blib/lib/Lemonldap/NG/Common/Combination/Parser.pm line 91.
Use of uninitialized value $r in numeric eq (==) at /home/maudoux/lemonldap-ng/lemonldap-ng-portal/../lemonldap-ng-common/blib/lib/Lemonldap/NG/Common/Combination/Parser.pm line 95.
ok 42 -  Try to connect with login dwho
ok 43 -  Response status is 401
ok 44 -  Content is JSON
ok 45 - Error code is 5

maudoux@L520[~/lemonldap-ng/lemonldap-ng-portal](v2.0=)$ prove -v t/79-2F-Yubikey.t 
t/79-2F-Yubikey.t .. 
ok 1 - use Lemonldap::NG::Portal::Main;
ok 2 - Portal object
...
ok 16 -  URI match
ok 17 -  Field "token" is defined
ok 18 -  Field "code" is defined
Use of uninitialized value $yubikey in index at /home/maudoux/lemonldap-ng/lemonldap-ng-portal/blib/lib/Lemonldap/NG/Portal/2F/Yubikey.pm line 180.
ok 19 - Post code
ok 20 - Bad OTP code

Backends used

Demo

Possible fixes

See relative MR (!253 (merged))

Edited Feb 19, 2022 by Christophe Maudoux
Assignee
Assign to
Time tracking