Unverified Commit 097df70b authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Update test cases due to a change in #1241

parent cfdc0e8a
......@@ -102,7 +102,7 @@ ok( !Sympa::Tools::SMIME::parse_cert(file => '/no/where'),
'non-existing file',
);
ok(!Sympa::Tools::SMIME::parse_cert(text => ''), 'empty string',);
ok(!eval { Sympa::Tools::SMIME::parse_cert(text => '') }, 'empty string',);
my $cert_file = 't/pki/crt/rousse.pem';
#my $cert_string = Sympa::Tools::File::slurp_file($cert_file);
......@@ -113,8 +113,12 @@ my $cert_data = {
enc => 1
},
subject =>
'/O=sympa developpers/OU=unit testing/CN=Guillaume Rousse/emailAddress=Guillaume.Rousse@sympa.org',
email => {'guillaume.rousse@sympa.org' => 1}
'O=sympa developpers, OU=unit testing, CN=Guillaume Rousse, emailAddress=Guillaume.Rousse@sympa.org',
email => {'guillaume.rousse@sympa.org' => 1},
emails => ['guillaume.rousse@sympa.org'],
notAfter => 'Feb 23 17:11:04 2023 GMT',
issuer =>
'O=sympa developpers, OU=unit testing, CN=Test CA, emailAddress=test@sympa.org',
};
SKIP: {
......@@ -131,12 +135,16 @@ SKIP: {
my $ca_cert_file = 't/pki/crt/ca.pem';
my $ca_cert_data = {
subject =>
'/O=sympa developpers/OU=unit testing/CN=Test CA/emailAddress=test@sympa.org',
'O=sympa developpers, OU=unit testing, CN=Test CA, emailAddress=test@sympa.org',
email => {'test@sympa.org' => 1},
emails => ['test@sympa.org'],
purpose => {
sign => '',
enc => ''
},
notAfter => 'Feb 24 17:05:48 2018 GMT',
issuer =>
'O=sympa developpers, OU=unit testing, CN=Test CA, emailAddress=test@sympa.org',
};
SKIP: {
......
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