aboutsummaryrefslogtreecommitdiffstats
path: root/hlr
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2019-12-03 20:08:57 +0100
committerHarald Welte <laforge@osmocom.org>2019-12-03 20:08:57 +0100
commit4b61204e855e4fb3a6057ad257259241209dd0ce (patch)
tree0b0f6c63711171c26f16e8334dc41017ac53a0a8 /hlr
parent0a1fd0e667d6e736bd236eef1577aec5c19f8797 (diff)
hlr: Don't attempt to find AUTN in 2G-only tuple
In Change-Id I40c6cf7e28ad9331e6c27fe7acafa3f9e277eedf we introduced a patch that verifies the AMF separation bit for 3G/3G vs 4G authentication. However, the test ignored the fact that AUTN cannot be present in pure 2G tuples. This makes TC_gsup_sai pass again. Change-Id: I9b61e62a58b583461dd5e67dd12119be282cae21
Diffstat (limited to 'hlr')
-rw-r--r--hlr/HLR_Tests.ttcn4
1 files changed, 3 insertions, 1 deletions
diff --git a/hlr/HLR_Tests.ttcn b/hlr/HLR_Tests.ttcn
index 8a96d7f2..50109a6f 100644
--- a/hlr/HLR_Tests.ttcn
+++ b/hlr/HLR_Tests.ttcn
@@ -711,7 +711,9 @@ function f_start_handler_per_sub(void_fn fn, HlrSubscriberList sl) runs on test_
private function f_TC_gsup_sai() runs on HLR_ConnHdlr {
var GSUP_PDU res;
res := f_perform_SAI(g_pars.sub.imsi);
- f_ensure_amf_separation_bit(res, '0'B);
+ if (ispresent(g_pars.sub.aud3g)) {
+ f_ensure_amf_separation_bit(res, '0'B);
+ }
/* TODO: match if tuple[s] matches expectation */
setverdict(pass);
}