mirror of
https://github.com/open5gs/open5gs.git
synced 2026-04-26 10:30:41 +00:00
amf/ngap: use ogs_warn for missing RAN UE context
Also update tests to use unique SUCI values.
This commit is contained in:
parent
f7ec6ea2ed
commit
231b0e4721
5 changed files with 25 additions and 24 deletions
|
|
@ -4742,7 +4742,7 @@ void ngap_handle_ng_reset(
|
|||
ran_ue = ran_ue_find_by_amf_ue_ngap_id(amf_ue_ngap_id);
|
||||
|
||||
if (!ran_ue) {
|
||||
ogs_error("No RAN UE Context : AMF_UE_NGAP_ID[%lld]",
|
||||
ogs_warn("No RAN UE Context : AMF_UE_NGAP_ID[%lld]",
|
||||
(long long)amf_ue_ngap_id);
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ static void failure_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000001");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -487,7 +487,7 @@ static void direct_complete_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000002");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -1105,7 +1105,7 @@ static void direct_cancel_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000003");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -1519,7 +1519,7 @@ static void indirect_complete_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000004");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -2176,7 +2176,7 @@ static void indirect_cancel_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000005");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -2765,7 +2765,7 @@ static void partial_handover_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000006");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ static void test_two_qos_flows(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000001");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -477,7 +477,7 @@ static void test_keep_tunnel(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000002");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ static void test1_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000001");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -292,7 +292,7 @@ static void test2_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000002");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -499,7 +499,7 @@ static void test3_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000003");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -946,7 +946,7 @@ static void test4_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000004");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -1240,7 +1240,7 @@ static void test5_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000005");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -1616,7 +1616,7 @@ static void test6_issues2917_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000006");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -1916,7 +1916,7 @@ static void test7_issues4209_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000007");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -1955,6 +1955,7 @@ static void test7_issues4209_func(abts_case *tc, void *data)
|
|||
|
||||
/* Send Registration request */
|
||||
test_ue->registration_request_param.guti = 1;
|
||||
|
||||
gmmbuf = testgmm_build_registration_request(test_ue, NULL, false, false);
|
||||
ABTS_PTR_NOTNULL(tc, gmmbuf);
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ static void test1_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000001");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -740,7 +740,7 @@ static void test2_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000002");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -1215,7 +1215,7 @@ static void test3_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000003");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -1670,7 +1670,7 @@ static void test4_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000004");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -2296,7 +2296,7 @@ static void test5_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000005");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -3013,7 +3013,7 @@ static void test6_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000006");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -3550,7 +3550,7 @@ static void test7_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000007");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
@ -4015,7 +4015,7 @@ static void test8_func(abts_case *tc, void *data)
|
|||
mobile_identity_suci.protection_scheme_id = OGS_PROTECTION_SCHEME_NULL;
|
||||
mobile_identity_suci.home_network_pki_value = 0;
|
||||
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000203190");
|
||||
test_ue = test_ue_add_by_suci(&mobile_identity_suci, "0000000008");
|
||||
ogs_assert(test_ue);
|
||||
|
||||
test_ue->nr_cgi.cell_id = 0x40001;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue