aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2024-04-16 17:46:44 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2024-04-16 18:08:15 +0200
commitfa2095bcfb0bb8a747ed69e6cb1fe065876fc4e8 (patch)
tree582342f7ca2466bcec28ab5c46ca8db5f2ca82c7
parente9c6c7b97ee5b870212c54a08064acbde5670d5d (diff)
hnbgw: TC_hnb_register_duplicate: Fix 2nd HNB_REG_REQ containing different LAC
-rw-r--r--hnbgw/HNBGW_Tests.ttcn6
1 files changed, 6 insertions, 0 deletions
diff --git a/hnbgw/HNBGW_Tests.ttcn b/hnbgw/HNBGW_Tests.ttcn
index e28feccc..3369e373 100644
--- a/hnbgw/HNBGW_Tests.ttcn
+++ b/hnbgw/HNBGW_Tests.ttcn
@@ -980,9 +980,15 @@ testcase TC_hnb_register() runs on test_CT {
testcase TC_hnb_register_duplicate() runs on test_CT {
g_num_hnbs := 2;
f_init(start_hnb := false);
+
+ /* Make HNB REQ look as if it came from the same HnodeB (LAI+SAC),
+ * but from different IP address (underlaying link): */
+ g_hnb_cfg[1] := g_hnb_cfg[0];
f_hnbap_hnb_register(0);
f_hnbap_hnb_register(1, 0, expect_reject := true);
+
f_verify_talloc_count(HNBGWVTY, {"struct hnb_context"}, expect_count := 1);
+
f_shutdown_helper();
}