Skip to content

Commit

Permalink
Tests: refine error message check in wrong cert type test.
Browse files Browse the repository at this point in the history
Adjusted the test to match a more generic error pattern,
accounting for variations in crypto library versions.
  • Loading branch information
route443 committed Oct 31, 2023
1 parent 7fe60ba commit d8b75d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/js_saml.t
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ like(get('/', auth_token => get_auth_token($r)), qr/Welcome user1/,

cfg_post({saml_idp_verification_certificate => "$d/sp.example.com.key"});
$r = init_sso($cfg);
like($r, qr/500.*Error verifying.*signature.*error:Type=X509_PUBKEY/s,
like($r, qr/500.*Error verifying Response message signature/s,
'wrong cert type');

cfg_post({saml_idp_verification_certificate => "not_found"});
Expand Down

0 comments on commit d8b75d1

Please sign in to comment.