Skip Menu |

This queue is for tickets about the Net-SAML2 CPAN distribution.

Report information
The Basics
Id: 88771
Status: resolved
Priority: 0/
Queue: Net-SAML2

People
Owner: TIMLEGGE [...] cpan.org
Requestors: wolfgang [...] kinkeldei.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 0.20



Subject: Some tests are always passing
Some of the tests in Net::SAML2 are written wrong. The first argument to C<ok()> is a regular expression always evaluating to true. Most tests would probably work if you used C<like> instead of C<ok> and swap the order of arguments. $ egrep 'ok.*qr' *.t 04-response.t:ok(qr/verified/, $subject); 07-logout-request.t:ok(qr/ID=".+"/, $xml); 07-logout-request.t:ok(qr/IssueInstant=".+"/, $xml); 07-logout-request.t:ok(qr/persistent/, $xml); 08-logout-response.t:ok(qr/ID=".+"/, $xml); 08-logout-response.t:ok(qr/IssueInstant=".+"/, $xml); 10-artifact-resolve.t:ok(qr/ID=".+"/, $xml); 10-artifact-resolve.t:ok(qr/IssueInstant=".+"/, $xml);
Thank you. I agree with the fix, and I'll make the appropriate changes.
Being addressed in the next release https://github.com/timlegge/perl-Net-SAML2/issues/12