]> git.koha-community.org Git - koha.git/commit
Bug 18826: rollback transaction for api tests
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 12 Jul 2017 20:24:24 +0000 (17:24 -0300)
committerKatrin Fischer <katrin.fischer.83@web.de>
Thu, 27 Jul 2017 23:18:15 +0000 (01:18 +0200)
commit247a34970aa3a4c0ac15497f441253d9c704fb59
treecba26c5f423b664f1169bf876b2e218b80ddf41c
parent39745bb1ce4eb24435970b1700cb94528475e3a2
Bug 18826: rollback transaction for api tests

The holds.t tests for the REST api do no rollback properly and modify
the DB (no cleanup).
This comes from a bug caused by SessionStorage = mysql (default)

The error is:
    "rollback ineffective with AutoCommit enabled"

Test plan:
  select count(*) from borrowers;
  prove t/db_dependent/api/v1/holds.t
  select count(*) from borrowers;
=> The number of entry must be the same before and after the tests have
been executed

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit d5dc473382ccfa118e78e91507384245ce0dcfcb)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit da0ed1cba584a7eb182876d75ccd535bbd5d5b35)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
t/db_dependent/api/v1/holds.t
t/db_dependent/api/v1/patrons.t