LP 1780660: Add more workstation functions to OpenILS::Utils::TestUtils. user/dyrcona/lp1780660-more-TestUtils-workstation-funcs
authorJason Stephenson <jason@sigio.com>
Sun, 8 Jul 2018 18:19:10 +0000 (14:19 -0400)
committerJason Stephenson <jason@sigio.com>
Sun, 5 Aug 2018 12:29:51 +0000 (08:29 -0400)
commitaf6292aeda7385040da11260a66713bd314e34e2
tree797ed0d1dd0202c5f58ebb7cce50588f71f37de0
parentbeee20c5b0a63bf8248a630686f2fb262d4789ac
LP 1780660: Add more workstation functions to OpenILS::Utils::TestUtils.

Add methods find_or_register_workstation($name, $lib) and
find_workstation($name, $lib) to OpenILS::Utils::TestUtils.  These can
be used when writing tests or other scripts to find or create
workstations.

The following Perl live tests were updated to use the new methods
rather than their hand-rolled versions:

* 14-lp1499123_csp_ignore_proximity.t
* 18-lp1592891_sip_standing_penalties.t
* 19-lp1306666-abort-transit-copy-status.t
* 25-lp1694058-multiple-hold-placement.t

Testing this is very simple:

1. Install Evergreen from this branch.
2. Load the Concerto dataset.
3. Start Evergreen services with osrf_control.
4. cd to the perlmods source directory.
5. Do 'make livecheck' and see that all tests pass, particularly the 4
   mentioned above.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/perlmods/lib/OpenILS/Utils/TestUtils.pm
Open-ILS/src/perlmods/live_t/14-lp1499123_csp_ignore_proximity.t
Open-ILS/src/perlmods/live_t/18-lp1592891_sip_standing_penalties.t
Open-ILS/src/perlmods/live_t/19-lp1306666-abort-transit-copy-status.t
Open-ILS/src/perlmods/live_t/25-lp1694058-multiple-hold-placement.t