]> git.koha-community.org Git - koha.git/commit
Bug 24509: Fix API relared tests failing on MySQL8
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 24 Jan 2020 12:16:09 +0000 (09:16 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 24 Jan 2020 15:20:46 +0000 (15:20 +0000)
commit8a468824fd32d96af9e43c26635491d6579c19e2
treeb21443bd9635aab183bdcfb0cbba9ff7db6fcf22
parent0c404e0529ace3ac2eee218c1d0451ace8cea857
Bug 24509: Fix API relared tests failing on MySQL8

This patch makes a trivial change to the tests so they catch the way
MySQL 8 reports the duplicate key message. The difference on the API
error message is irrelevant and so it is ok to just make the tests try
both MySQL 8 output and the rest of the supported engines.

To test:
1. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/acquisitions_orders.t \
           t/db_dependent/api/v1/libraries.t \
           t/db_dependent/api/v1/patrons.t
=> FAIL: Tests fail due to warning and conflict message differences
2. Apply this patch
3. Repeat 1
=> SUCCESS: Tests pass!
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/api/v1/acquisitions_orders.t
t/db_dependent/api/v1/libraries.t
t/db_dependent/api/v1/patrons.t