Bug 32537: Add no-block option to SIP cli emulator
authorNick Clemens <nick@bywatersolutions.com>
Tue, 27 Dec 2022 20:21:15 +0000 (20:21 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 14 Feb 2023 22:02:13 +0000 (22:02 +0000)
commit9ff59a53737cfa0b4425fa032466e1f61bc52fb0
tree7c028370ab52fcd342b4c315d5beb6a75ee9c567
parent94bb81502b25dcb3128664e9a681e444afaf691f
Bug 32537: Add no-block option to SIP cli emulator

This patch adds the option to pass a no-block option and use this
in checkout/checkin/renew messages

To test:
1 - perl misc/sip_cli_emulator.pl -a localhost -p 6001 -l CPL -su term1 -sp term1 -m checkin --item 39999000010831
2 - Confirm out like:
    SEND: 09N20221227    20183920221227    201839APCPL|AOCPL|AB39999000010831|ACterm1|BIN|
    (Note the N after 09)
3 - Apply patch
4 - Restart SIP, repeat 1
5 - Confirm still an N
6 - perl misc/sip_cli_emulator.pl -a localhost -p 6001 -l CPL -su term1 -sp term1 -m checkin --item 39999000010831 -n N
7 - Confirm still an N
8 - perl misc/sip_cli_emulator.pl -a localhost -p 6001 -l CPL -su term1 -sp term1 -m checkin --item 39999000010831 -n Y
9 - Confirm the send has a Y after 09

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 0880d809492f4011ef4cfac32129df4a2dd1fa71)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
(cherry picked from commit 61c4d9d37454cab2240cc1c43f811045e492a2ec)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
misc/sip_cli_emulator.pl