]> 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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Tue, 25 May 2021 13:47:33 +0000 (13:47 +0000)
commita4ae376b4e29499c0a35065ca3c2a35e1ef3eca5
treee90cea1ae110ad927bd9c382406503b379662e48
parent2b6d677aedb6cb82fd91514739d1fc7872ae3002
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>
(cherry picked from commit 06a99ac9bbf163d9186e743e03533bd0ecd74614)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
C4/SIP/Sip/MsgType.pm
misc/sip_cli_emulator.pl
t/db_dependent/SIP/Message.t