Bug 21105: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 12 Nov 2021 13:16:37 +0000 (10:16 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 15 Nov 2021 11:38:39 +0000 (12:38 +0100)
commit24c2fee5b47cc8bc5d41b2c91e45342f2428bcb6
treef5384d9e8eec161778406c428894723c93c79323
parent0b3d856bc42ab9372e25eae799ea50beb4cf1c0e
Bug 21105: Regression tests

This patch introduces a regression test for the fixed behavior.
I also changed a oneliner regex we had for stripping query parameters
because it was causing a warning with the tests base URL
(http://localhost) because it was generating an empty baseURL.

To test:
1. Apply the regression tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/OAI/Server.t
=> FAIL: Tests fail, the response is incorrect!
3. Apply the bug's patch
4. Repeat 2
=> SUCCESS: Tests pass! Good response!

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/OAI/Server.t