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
diff --git a/hlr/HLR_Tests.ttcn b/hlr/HLR_Tests.ttcn
index 8a96d7f..50109a6 100644
--- a/hlr/HLR_Tests.ttcn
+++ b/hlr/HLR_Tests.ttcn
@@ -711,7 +711,9 @@
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);
}