[CX] Update test code

This commit is contained in:
Sukchan Lee 2022-02-01 14:51:54 +09:00
parent a7d164c28d
commit 8bc584ce80
3 changed files with 32 additions and 16 deletions

View File

@ -44,15 +44,15 @@ mme:
- addr: 127.0.0.2 - addr: 127.0.0.2
gummei: gummei:
plmn_id: plmn_id:
mcc: 001 mcc: 901
mnc: 01 mnc: 70
mme_gid: 2 mme_gid: 2
mme_code: 1 mme_code: 1
tai: tai:
plmn_id: plmn_id:
mcc: 001 mcc: 901
mnc: 01 mnc: 70
tac: 12345 tac: 1
security: security:
integrity_order : [ EIA2, EIA1, EIA0 ] integrity_order : [ EIA2, EIA1, EIA0 ]
ciphering_order : [ EEA0, EEA1, EEA2 ] ciphering_order : [ EEA0, EEA1, EEA2 ]
@ -115,20 +115,20 @@ amf:
- addr: 127.0.0.5 - addr: 127.0.0.5
guami: guami:
- plmn_id: - plmn_id:
mcc: 001 mcc: 901
mnc: 01 mnc: 70
amf_id: amf_id:
region: 2 region: 2
set: 1 set: 1
tai: tai:
- plmn_id: - plmn_id:
mcc: 001 mcc: 901
mnc: 01 mnc: 70
tac: 1 tac: 1
plmn_support: plmn_support:
- plmn_id: - plmn_id:
mcc: 001 mcc: 901
mnc: 01 mnc: 70
s_nssai: s_nssai:
- sst: 1 - sst: 1
security: security:

View File

@ -309,13 +309,30 @@ static void test1_func(abts_case *tc, void *data)
/* DELAY for setup IMS */ /* DELAY for setup IMS */
ogs_msleep(100); ogs_msleep(100);
/* Send UEContextReleaseRequest */ /* Send Detach Request */
sendbuf = test_s1ap_build_ue_context_release_request(test_ue, emmbuf = testemm_build_detach_request(test_ue, 1, true, false);
S1AP_Cause_PR_radioNetwork, S1AP_CauseRadioNetwork_user_inactivity); ABTS_PTR_NOTNULL(tc, emmbuf);
sendbuf = test_s1ap_build_initial_ue_message(
test_ue, emmbuf, S1AP_RRC_Establishment_Cause_mo_Signalling, true);
ABTS_PTR_NOTNULL(tc, sendbuf); ABTS_PTR_NOTNULL(tc, sendbuf);
rv = testenb_s1ap_send(s1ap, sendbuf); rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv); ABTS_INT_EQUAL(tc, OGS_OK, rv);
/* Receive OLD UEContextReleaseCommand */
enb_ue_s1ap_id = test_ue->enb_ue_s1ap_id;
recvbuf = testenb_s1ap_read(s1ap);
ABTS_PTR_NOTNULL(tc, recvbuf);
tests1ap_recv(test_ue, recvbuf);
/* Send OLD UEContextReleaseComplete */
sendbuf = test_s1ap_build_ue_context_release_complete(test_ue);
ABTS_PTR_NOTNULL(tc, sendbuf);
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
test_ue->enb_ue_s1ap_id = enb_ue_s1ap_id;
/* Receive UEContextReleaseCommand */ /* Receive UEContextReleaseCommand */
recvbuf = testenb_s1ap_read(s1ap); recvbuf = testenb_s1ap_read(s1ap);
ABTS_PTR_NOTNULL(tc, recvbuf); ABTS_PTR_NOTNULL(tc, recvbuf);

View File

@ -277,8 +277,7 @@ static void test_cx_uaa_cb(void *data, struct msg **msg)
} }
} }
ogs_assert(!err && exp_err && ogs_assert(!err && exp_err);
result_code == OGS_DIAM_CX_FIRST_REGISTRATION);
/* Free the message */ /* Free the message */
ogs_assert(pthread_mutex_lock(&ogs_diam_logger_self()->stats_lock) == 0); ogs_assert(pthread_mutex_lock(&ogs_diam_logger_self()->stats_lock) == 0);