osmo-msc/tests
Neels Hofmeyr 16c42b5fba subscr_conn: store complete_layer3_type in conn, not FSM event arg
Instead of jumping through hoops to pass the Complete Layer 3 operation that
created this conn via FSM event dispatch parameters, put it right in the
gsm_subscriber_connection struct, where it always belonged.

Move definition of the enum complete_layer3_type to gsm_data.h, where
gsm_subscriber_connection is defined.

Introduce msc_subscr_conn_update_id() to set the complete_layer3_type of the
conn as soon as a Complete Layer 3 message is received.

In msc_subscr_conn_update_id(), already include an mi_string argument to
prepare for an upcoming patch where the FSM will be allocated much earlier when
the Mobile Identity is not known yet, and we'll also update the fi->id here.

The odd logging change in the msc_vlr_tests output uncovers a wrong use of the
osmo_fsm_inst_dispatch() data argument for SUBSCR_CONN_E_CN_CLOSE events: if a
child FSM signals unsuccessful result, instead of the failure cause, it passed
the complete_layer3_type, as requested upon FSM allocation, which was then
misinterpreted as a failure cause. Now a child FSM failure will pass NULL
instead, while other SUBSCR_CONN_E_CN_CLOSE events may still pass a valid cause
value.

Related: OS#3122
Change-Id: Iae30dd57a8861c4eaaf56999f872d4e635ba97fb
2018-04-03 02:13:16 +02:00
..
db remove empty libcommon-cs 2018-03-22 17:11:30 +01:00
msc_vlr subscr_conn: store complete_layer3_type in conn, not FSM event arg 2018-04-03 02:13:16 +02:00
smpp use osmo_init_logging2() with proper talloc ctx 2018-03-30 23:20:03 +02:00
sms_queue use osmo_init_logging2() with proper talloc ctx 2018-03-30 23:20:03 +02:00
Makefile.am split off osmo-msc: remove files, apply build, rename 2017-08-29 12:51:19 +00:00
atlocal.in remove further files and autotest/autoconf bits irrelevant to osmo-msc 2017-10-03 09:44:23 +08:00
ctrl_test_runner.py Remove unneeded .py scripts 2017-12-03 21:14:10 +00:00
smpp_test_runner.py Implement IuCS (large refactoring and addition) 2017-08-08 19:17:53 +02:00
testsuite.at add msc_vlr_test_call to reproduce a sanitizer error 2017-11-27 15:40:01 +01:00
vty_test_runner.py remove unused "auth policy" VTY command 2018-02-14 09:04:56 +01:00