Bug 21105: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 12 Nov 2021 13:16:37 +0000 (10:16 -0300)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 19 Nov 2021 16:32:05 +0000 (11:32 -0500)
commit35280e175122c13d0984407b9ff887cae478569d
tree395170617abaffe56afd2c2b36b815adab4a311f
parent0338a1bf742e1cda93edc857c91333260d83915d
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>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/OAI/Server.t