[Koha-bugs] [Bug 16977] New: REST tests cleanup ineffective

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 26 12:01:05 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16977

            Bug ID: 16977
           Summary: REST tests cleanup ineffective
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Test Suite
          Assignee: chris at bigballofwax.co.nz
          Reporter: larit at student.uef.fi
        QA Contact: gmcharlt at gmail.com

I'm having issues with REST tests. It seems that whenever the test uses
authentication, e.g.

my $tx = $t->ua->build_tx(GET => '/api/v1/patrons');
$tx->req->cookies({name => 'CGISESSID', value => $session->id});
$t->request_ok($tx) ...

the test does not cleanup database correctly. This can be currently seen in
t/db_dependent/api/v1/patrons.t. For holds.t (the other REST test in master at
the time of reporting this bug) there is at the moment no authentication and it
seems to cleanup nicely.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list