Skip Menu |

This queue is for tickets about the Business-OnlinePayment-AuthorizeNet CPAN distribution.

Report information
The Basics
Id: 52444
Status: resolved
Priority: 0/
Queue: Business-OnlinePayment-AuthorizeNet

People
Owner: Nobody in particular
Requestors: bbb [...] cpan.org
kit.peters [...] acmesystems.biz
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 3.21
Fixed in:
  • 3.20
  • 3.22



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)
Patch applied; will be in 3.22; thanks!
Subject: Test failing in Business::OnlinePayment::AuthorizeNet 3.21
When trying to install from CPAN, the test "t/mixed_operation.t" fails with "Unable to locate fraud_detection module _Fake in @INC under Fraud_Class_Path". I'm digging into this myself, of course, but I thought I ought to ping you as well to see if you had an idea (seeing as how it's your module and all. *g*) Complete error: t/mixed_operation.t .. 1/9 Unable to locate fraud_detection module _Fake in @INC under Fraud_Class_Path (@Fraud_Class_Path contains: Business::OnlinePayment Business::FraudDetect) (@INC contains: /home/took/.cpan/build/Business-OnlinePayment-AuthorizeNet-3.21- /home/took/.cpan/build/Business-OnlinePayment-AuthorizeNet-3.21- /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . t/lib) at t/mixed_operation.t line 38 System is Debian i386 5.0.3, Perl 5.10.0, virtual amd64 machine running under VirtualBox on a Debian amd64 host. Kit Peters
On Wed Mar 03 04:12:01 2010, IVAN wrote: Show quoted text
> When trying to install from CPAN, the test "t/mixed_operation.t"
fails Show quoted text
> with "Unable to locate fraud_detection module _Fake in @INC under > Fraud_Class_Path". I'm digging into this myself, of course, but I > thought I ought to ping you as well to see if you had an idea (seeing > as how it's your module and all. *g*)
Alas, no quick fix comes to mind at first glance. I had thought I might have just forgotten to check in B:OP:_Fake or B:FD:_Fake, but I couldn't such a file. More oddly, CPAN testers shows this is a regression from 3.20, but at a quick glance at the Changelog, none of the changes seem like they could have caused the bug (even the ARB one).
Subject: Re: [rt.cpan.org #55172] Test failing in Business::OnlinePayment::AuthorizeNet 3.21
Date: Wed, 3 Mar 2010 08:00:08 -0600
To: bug-Business-OnlinePayment-AuthorizeNet [...] rt.cpan.org
From: Kit Peters <kit.peters [...] acmesystems.biz>
Actually, when I pulled B:FD:_Fake from the 3.20 sources, the test ran fine. KP On Wed, Mar 3, 2010 at 3:23 AM, Ivan Kohler via RT < bug-Business-OnlinePayment-AuthorizeNet@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=55172 > > > On Wed Mar 03 04:12:01 2010, IVAN wrote:
> > When trying to install from CPAN, the test "t/mixed_operation.t"
> fails
> > with "Unable to locate fraud_detection module _Fake in @INC under > > Fraud_Class_Path". I'm digging into this myself, of course, but I > > thought I ought to ping you as well to see if you had an idea (seeing > > as how it's your module and all. *g*)
> > Alas, no quick fix comes to mind at first glance. I had thought I > might have just forgotten to check in B:OP:_Fake or B:FD:_Fake, but I > couldn't such a file. > > More oddly, CPAN testers shows this is a regression from 3.20, but at a > quick glance at the Changelog, none of the changes seem like they could > have caused the bug (even the ARB one). > >
fixed in CVS; will be in 3.22
From: colink [...] perlDreamer.com
Hoping for a bump here. Any chance that 3.22 can be released?
RT-Send-CC: colink [...] perlDreamer.com
On Sun Aug 28 15:58:29 2011, colink@perlDreamer.com wrote: Show quoted text
> Hoping for a bump here.
This is a bug tracker, not a forum. Please do not send useless, content- less bumps. Show quoted text
> Any chance that 3.22 can be released?
Certainly not for this. See the severity before asking.
From: colink [...] perlDreamer.com
On Mon Sep 05 07:57:39 2011, IVAN wrote: Show quoted text
> Certainly not for this. See the severity before asking. >
My apologies. As long as you're content with a fixed bug that's preventing my novice users from installing this module, then we'll find some workaround for it.
RT-Send-CC: colink [...] perlDreamer.com
On Mon Sep 05 12:42:03 2011, colink@perlDreamer.com wrote: Show quoted text
> On Mon Sep 05 07:57:39 2011, IVAN wrote:
> > Certainly not for this. See the severity before asking. > >
> > My apologies. As long as you're content with a fixed bug that's > preventing my novice users from installing this module, then we'll find > some workaround for it. >
I apologize for being short in my previous message. I had just returned from a long trip away from my email and was rather testy. If you'd like to get involved with B:OP:AuthorizeNet development in the long-term, you are certainly welcome to do so and make releases. The inappropriateness of the CPAN shell for distribution of software to novice users is far, far outside the scope of this bug report. Look into a better solution such as using RPM/DEB packaging or something like Shipwright.