]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 17 May 2021 10:34:33 +0000 (12:34 +0200)
commitd85ae826c64ef43d1f606aceb6eaa6d3174cba52
tree8b0f27db60cac5ffa84f4b9cb1bc9824c62725b2
parent7e14b054b2fd5b6fddc2046b46d3bd431acf689a
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>
C4/SIP/Sip/MsgType.pm
misc/sip_cli_emulator.pl
t/db_dependent/SIP/Message.t