Subject: | Business-OnlinePayment-AuthorizeNet-3.21 t/mixed_operation failure: Unable to locate fraud_detection module _Fake in @INC |
The test suite does not work in the latest version 3.21:
Steps to duplicate:
==== snip ====
$ wget
http://search.cpan.org/CPAN/authors/id/I/IV/IVAN/Business-OnlinePayment-AuthorizeNet-3.21.tar.gz
$ gtar -zxvf Business-OnlinePayment-AuthorizeNet-3.21.tar.gz
$ cd Business-OnlinePayment-AuthorizeNet
$ perl Makefile.PL
$ make
$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00load.............ok
t/bop................ok
t/capture............ok
t/card_arb...........ok
t/check..............skipped
all skipped: Authorize.net test account won't do ACH
t/credit_card........ok
t/mixed_operation....ok 1/9Unable to locate fraud_detection module _Fake
in @INC under Fraud_Class_Path (@Fraud_Class_Path contains:
Business::OnlinePayment Business::FraudDetect) (@INC contains:
/home/rob/src/freeside.biz/cmp/Business-OnlinePayment-AuthorizeNet-3.21.HORKED/blib/lib
/home/rob/src/freeside.biz/cmp/Business-OnlinePayment-AuthorizeNet-3.21.HORKED/blib/arch
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.4/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.3/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.4/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3
/usr/lib/perl5/vendor_perl
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .
t/lib) at t/mixed_operation.t line 37
# Looks like you planned 9 tests but only ran 1.
# Looks like your test died just after 1.
t/mixed_operation....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-9
Failed 8/9 tests, 11.11% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/mixed_operation.t 255 65280 9 16 177.78% 2-9
1 test skipped.
Failed 1/7 test scripts, 85.71% okay. 8/22 subtests failed, 63.64% okay.
make: *** [test_dynamic] Error 255
$
==== snap ====
I noticed that the file actually DOES exist in cvs, so I assume it just
got inadvertently left out of the build.
To fix it, here is the one-liner patch:
--- Business-OnlinePayment-AuthorizeNet-3.21.ORIG/MANIFEST 2009-11-14
19:37:32.000000000 -0700
+++ Business-OnlinePayment-AuthorizeNet-3.21/MANIFEST 2009-12-03
17:40:16.000000000 -0700
@@ -16,4 +16,5 @@
t/test_account_ach
t/test_account_arb
t/lib/test_account.pl
+t/lib/Business/FraudDetect/_Fake.pm
META.yml Module meta-data (added by
MakeMaker)