Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Tests Fail #6

Open
tophopstop opened this issue Jun 21, 2024 · 0 comments
Open

Install Tests Fail #6

tophopstop opened this issue Jun 21, 2024 · 0 comments

Comments

@tophopstop
Copy link

When you try to install WWW::Postmark, the tests fail, per below.

I suspect the problem is that Postmark no longer accepts non-ssl api calls. If you try a non-ssl api call, Postmark responds with a 301 redirect to the ssl version of the api endpoint. WWW::Postmark->send method considers any non 2XX response as a fail.

# Testing WWW::Postmark 1.000001, Perl 5.016003, /usr/bin/perl
t/00-load.t ................ ok

#   Failed test 'simple sending okay'
...skipping...
#   at t/01-sending.t line 20.
#          got: ''
#     expected: 'HASH'

#   Failed test 'expected token failure okay'
#   at t/01-sending.t line 33.
#                   'Failed sending message: Unknown HTTP error code 301. at t/01-sending.t line 31.
# '
#     doesn't match '(?^:Missing or incorrect API Key header)'

#   Failed test 'html and text okay'
#   at t/01-sending.t line 45.

#   Failed test 'multiple recipients okay'
#   at t/01-sending.t line 51.
You have not provided a Postmark API token, you will not be able to send emails. at t/01-sending.t line 86.
# Looks like you failed 5 tests of 14.
t/01-sending.t .............
Dubious, test returned 5 (wstat 1280, 0x500)
Failed 5/14 subtests
        (less 3 skipped subtests: 6 okay)
You have not provided a Postmark API token, you will not be able to send emails. at t/02-spam_score.t line 9.

#   Failed test 'Request #1 was successful'
#   at t/02-spam_score.t line 42.

#   Failed test 'Received a hash-ref'
#   at t/02-spam_score.t line 43.

#   Failed test 'Request #2 was successful'
#   at t/02-spam_score.t line 74.
# Looks like you failed 3 tests of 5.
t/02-spam_score.t ..........
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/5 subtests
t/release-dist-manifest.t .. skipped: these tests are for release candidate testing

Test Summary Report
-------------------
t/01-sending.t           (Wstat: 1280 Tests: 14 Failed: 5)
  Failed tests:  2-3, 7, 9-10
  Non-zero exit status: 5
t/02-spam_score.t        (Wstat: 768 Tests: 5 Failed: 3)
  Failed tests:  2-4
  Non-zero exit status: 3
Files=4, Tests=20,  1 wallclock secs ( 0.02 usr  0.01 sys +  0.30 cusr  0.03 csys =  0.36 CPU)
Result: FAIL
Failed 2/4 test programs. 8/20 subtests failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant