Commit c87beffd authored by sikeda's avatar sikeda
Browse files

[dev] Adding a few test cases for Sympa::Tools::Password.


git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@12500 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent c6674e6e
......@@ -36,6 +36,7 @@ check_SCRIPTS = \
t/pod-syntax.t \
t/tools_data.t \
t/tools_file.t \
t/Tools_Password.t \
t/Tools_SMIME.t \
t/Tools_Text.t \
t/tools_time.t
......
# -*- indent-tabs-mode: nil; -*-
# vim:ft=perl:et:sw=4
# $Id$
use strict;
use warnings;
use Test::More;
use Conf;
use Sympa::Tools::Password;
unless ($Data::Password::VERSION) {
plan skip_all => 'Data::Password required';
} else {
plan tests => 2;
}
$Conf::Conf{'password_validation'} = 'MINLEN=8,GROUPS=4';
isnt(Sympa::Tools::Password::password_validation('XXX'), undef, 'Bad');
is(Sympa::Tools::Password::password_validation('91#%cxCX'), undef, 'Good');
# ToDo: tmp_passwd()
# ToDo: ciphersaber_installed()
# ToDo: crypt_password()
# ToDo: decrypt_password()
Supports Markdown
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