improve failure diagnostics in TC_vty_msisdn_isd HLR test

Check for reception of an Insert Subscriber Data with outdated MSISDN.
This happened to me while working on a fix for issue OS#2785, and it
seems to be an easy mistake implementations can make. Catch this
situation in the test and log an explicit message about the problem.

Related: OS#2785
Change-Id: Ib0809617cca621cc22f29b078828057fd49f27e5
This commit is contained in:
Stefan Sperling 2018-04-09 11:24:22 +02:00
parent 94e0c3428e
commit 7c09687456
1 changed files with 4 additions and 0 deletions

View File

@ -480,6 +480,10 @@ testcase TC_vty_msisdn_isd() runs on test_CT {
sub.msisdn := new_msisdn;
setverdict(pass);
}
[] GSUP.receive(tr_GSUP_ISD_REQ(sub.imsi, sub.msisdn)) {
log("received ISD req with old MSISDN");
setverdict(fail);
}
[] GSUP.receive { repeat; }
[] T.timeout {
setverdict(fail, "Timeout waiting for ISD.req");