]> git.koha-community.org Git - koha.git/commit
Bug 28320: Add DB connection check to the SIP SC status message
authorNick Clemens <nick@bywatersolutions.com>
Tue, 11 May 2021 13:43:51 +0000 (13:43 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 18 May 2021 10:20:18 +0000 (12:20 +0200)
commit06a99ac9bbf163d9186e743e03533bd0ecd74614
tree78db0d32a55733fbcd20214850afd0a64caebd14
parentbf63a2f6b005ebea03072b5745f216b40290fa46
Bug 28320: Add DB connection check to the SIP SC status message

This patch adds a lookup of the sip user during an SC status, confirming that
our DB ocnnection is working, and that our user is still valid

Additionally, it adds support for SC status to the sip_cli_emulator and adds basic
test coverage for the SC status message

To test:
1 - Apply patch
2 - Restart SP server
3 - perl misc/sip_cli_emulator.pl -a localhost -p 6001 -l CPL -m sc_status_request -su term1 -sp term1
4 - prove -v t/db_dependent/SIP/Message.t

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit d85ae826c64ef43d1f606aceb6eaa6d3174cba52)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/SIP/Sip/MsgType.pm
misc/sip_cli_emulator.pl
t/db_dependent/SIP/Message.t