From 9c3b7dfe4beb70bafe4ffc9aa2b572ba8ed40c68 Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Sun, 12 Jun 2022 14:32:53 +0900 Subject: [PATCH] Added RRCEstablishmentCause to Test-Msg Param --- tests/common/ngap-build.c | 4 +- tests/common/ngap-build.h | 2 +- tests/handover/5gc-n2-test.c | 15 +++++--- tests/handover/5gc-xn-test.c | 3 +- tests/registration/auth-test.c | 6 ++- tests/registration/crash-test.c | 9 +++-- tests/registration/dereg-test.c | 22 +++++++---- tests/registration/gmm-status-test.c | 3 +- tests/registration/guti-test.c | 21 ++++++---- tests/registration/identity-test.c | 9 +++-- tests/registration/idle-test.c | 42 +++++++++++++------- tests/registration/paging-test.c | 57 ++++++++++++++++++---------- tests/registration/reset-test.c | 12 ++++-- tests/registration/ue-context-test.c | 33 ++++++++++------ tests/slice/different-dnn-test.c | 3 +- tests/slice/same-dnn-test.c | 9 +++-- tests/vonr/af-test.c | 33 ++++++++++------ tests/vonr/qos-flow-test.c | 6 ++- tests/vonr/session-test.c | 27 ++++++++----- tests/vonr/video-test.c | 3 +- 20 files changed, 211 insertions(+), 108 deletions(-) diff --git a/tests/common/ngap-build.c b/tests/common/ngap-build.c index 71712785c..cf4a6eefd 100644 --- a/tests/common/ngap-build.c +++ b/tests/common/ngap-build.c @@ -259,7 +259,7 @@ ogs_pkbuf_t *testngap_build_ran_configuration_update(bool supported_ta_list) ogs_pkbuf_t *testngap_build_initial_ue_message( test_ue_t *test_ue, ogs_pkbuf_t *gmmbuf, - bool s_tmsi, bool ue_context_requested) + uint8_t cause, bool s_tmsi, bool ue_context_requested) { ogs_pkbuf_t *pkbuf = NULL; int i, j; @@ -355,7 +355,7 @@ ogs_pkbuf_t *testngap_build_initial_ue_message( UserLocationInformation->choice.userLocationInformationNR = userLocationInformationNR; - *RRCEstablishmentCause = NGAP_RRCEstablishmentCause_mo_Signalling; + *RRCEstablishmentCause = cause; if (s_tmsi) { NGAP_AMFSetID_t *aMFSetID = NULL; diff --git a/tests/common/ngap-build.h b/tests/common/ngap-build.h index d73520605..eedbfc9da 100644 --- a/tests/common/ngap-build.h +++ b/tests/common/ngap-build.h @@ -29,7 +29,7 @@ ogs_pkbuf_t *testngap_build_ran_configuration_update(bool supported_ta_list); ogs_pkbuf_t *testngap_build_initial_ue_message( test_ue_t *test_ue, ogs_pkbuf_t *gmmbuf, - bool s_tmsi, bool ue_context_requested); + uint8_t cause, bool s_tmsi, bool ue_context_requested); ogs_pkbuf_t *testngap_build_uplink_nas_transport( test_ue_t *test_ue, ogs_pkbuf_t *gmmbuf); diff --git a/tests/handover/5gc-n2-test.c b/tests/handover/5gc-n2-test.c index 4b87e637b..b0ba850ef 100644 --- a/tests/handover/5gc-n2-test.c +++ b/tests/handover/5gc-n2-test.c @@ -126,7 +126,8 @@ static void failure_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap1, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -528,7 +529,8 @@ static void direct_complete_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap1, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1146,7 +1148,8 @@ static void direct_cancel_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap1, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1564,7 +1567,8 @@ static void indirect_complete_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap1, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -2218,7 +2222,8 @@ static void indirect_cancel_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap1, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); diff --git a/tests/handover/5gc-xn-test.c b/tests/handover/5gc-xn-test.c index 4a2a31404..5bf4a6699 100644 --- a/tests/handover/5gc-xn-test.c +++ b/tests/handover/5gc-xn-test.c @@ -126,7 +126,8 @@ static void test1_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap1, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); diff --git a/tests/registration/auth-test.c b/tests/registration/auth-test.c index 3464de77c..3120eaaab 100644 --- a/tests/registration/auth-test.c +++ b/tests/registration/auth-test.c @@ -95,7 +95,8 @@ static void test1_func(abts_case *tc, void *data) /* Send Registration request */ gmmbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -144,7 +145,8 @@ static void test1_func(abts_case *tc, void *data) /* Send Registration request */ gmmbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); diff --git a/tests/registration/crash-test.c b/tests/registration/crash-test.c index 4daba6f05..84279cb21 100644 --- a/tests/registration/crash-test.c +++ b/tests/registration/crash-test.c @@ -106,7 +106,8 @@ static void test1_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -466,7 +467,8 @@ static void test2_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -831,7 +833,8 @@ static void test3_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); diff --git a/tests/registration/dereg-test.c b/tests/registration/dereg-test.c index d1a550eb6..4bf9daf58 100644 --- a/tests/registration/dereg-test.c +++ b/tests/registration/dereg-test.c @@ -105,7 +105,8 @@ static void test1_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -350,7 +351,8 @@ static void test2_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -440,7 +442,8 @@ static void test2_func(abts_case *tc, void *data) /* Send De-registration request */ gmmbuf = testgmm_build_de_registration_request(test_ue, 1, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, false); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, false); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -560,7 +563,8 @@ static void test3_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -772,7 +776,8 @@ static void test3_func(abts_case *tc, void *data) gmmbuf = testgmm_build_registration_request(test_ue, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -886,7 +891,8 @@ static void test3_func(abts_case *tc, void *data) /* Send De-registration request */ gmmbuf = testgmm_build_de_registration_request(test_ue, 1, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, false); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, false); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1015,8 +1021,8 @@ static void test4_func(abts_case *tc, void *data) test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message( - test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); diff --git a/tests/registration/gmm-status-test.c b/tests/registration/gmm-status-test.c index fa2ef9a79..b2e2268b0 100644 --- a/tests/registration/gmm-status-test.c +++ b/tests/registration/gmm-status-test.c @@ -105,7 +105,8 @@ static void test1_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); diff --git a/tests/registration/guti-test.c b/tests/registration/guti-test.c index 3761e52ce..ed1799a48 100644 --- a/tests/registration/guti-test.c +++ b/tests/registration/guti-test.c @@ -106,7 +106,8 @@ static void test1_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -280,7 +281,8 @@ static void test1_func(abts_case *tc, void *data) gmmbuf = testgmm_build_registration_request(test_ue, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -338,7 +340,8 @@ static void test1_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -583,7 +586,8 @@ static void test2_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -757,7 +761,8 @@ static void test2_func(abts_case *tc, void *data) gmmbuf = testgmm_build_registration_request(test_ue, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -824,7 +829,8 @@ static void test2_func(abts_case *tc, void *data) gmmbuf = testgmm_build_registration_request(test_ue, NULL, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1042,7 +1048,8 @@ static void test3_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); diff --git a/tests/registration/identity-test.c b/tests/registration/identity-test.c index ae110bcba..4d54a1075 100644 --- a/tests/registration/identity-test.c +++ b/tests/registration/identity-test.c @@ -105,7 +105,8 @@ static void test1_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -224,7 +225,8 @@ static void test1_func(abts_case *tc, void *data) gmmbuf = testgmm_build_registration_request(test_ue, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -291,7 +293,8 @@ static void test1_func(abts_case *tc, void *data) gmmbuf = testgmm_build_registration_request(test_ue, NULL, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); diff --git a/tests/registration/idle-test.c b/tests/registration/idle-test.c index 3a9a76ea5..0d792185d 100644 --- a/tests/registration/idle-test.c +++ b/tests/registration/idle-test.c @@ -105,7 +105,8 @@ static void test1_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -266,7 +267,8 @@ static void test1_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_SIGNALLING, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -341,7 +343,8 @@ static void test1_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_DATA, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -498,7 +501,8 @@ static void test2_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -599,7 +603,8 @@ static void test2_func(abts_case *tc, void *data) gmmbuf = testgmm_build_service_request( test_ue, OGS_NAS_SERVICE_TYPE_SIGNALLING, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -744,7 +749,8 @@ static void test3_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -887,7 +893,8 @@ static void test3_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_DATA, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1101,7 +1108,8 @@ static void test4_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1216,7 +1224,8 @@ static void test4_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_SIGNALLING, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, false); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, false); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1300,7 +1309,8 @@ static void test4_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_DATA, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1553,7 +1563,8 @@ static void test5_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1710,7 +1721,8 @@ static void test5_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_SIGNALLING, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1915,7 +1927,8 @@ static void test6_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -2102,7 +2115,8 @@ static void test6_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_DATA, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); diff --git a/tests/registration/paging-test.c b/tests/registration/paging-test.c index 8b3a14cec..83a5a5012 100644 --- a/tests/registration/paging-test.c +++ b/tests/registration/paging-test.c @@ -105,7 +105,8 @@ static void cm_idle_paging_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -282,7 +283,8 @@ static void cm_idle_paging_func(abts_case *tc, void *data) nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -406,7 +408,8 @@ static void cm_idle_paging_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_SIGNALLING, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -495,7 +498,8 @@ static void cm_idle_paging_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_DATA, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -667,7 +671,8 @@ static void cm_connected_paging_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -834,7 +839,8 @@ static void cm_connected_paging_func(abts_case *tc, void *data) nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1010,7 +1016,8 @@ static void cm_idle_error_indication_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1186,7 +1193,8 @@ static void cm_idle_error_indication_func(abts_case *tc, void *data) nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1355,7 +1363,8 @@ static void cm_connected_error_indication_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1638,7 +1647,8 @@ static void vonr_qos_flow_test1_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1850,7 +1860,8 @@ static void vonr_qos_flow_test1_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_DATA, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -2036,7 +2047,8 @@ static void vonr_session_test2_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -2290,7 +2302,8 @@ static void vonr_session_test2_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_DATA, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -2525,7 +2538,8 @@ static void registration_ue_context_test4_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, false); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, false); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -2684,7 +2698,8 @@ static void registration_ue_context_test4_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_SIGNALLING, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, false); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, false); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -2739,7 +2754,8 @@ static void registration_ue_context_test4_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_DATA, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, false); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, false); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -2915,7 +2931,8 @@ static void registration_idle_test1_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -3076,7 +3093,8 @@ static void registration_idle_test1_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_SIGNALLING, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -3170,7 +3188,8 @@ static void registration_idle_test1_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_DATA, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); diff --git a/tests/registration/reset-test.c b/tests/registration/reset-test.c index 16d92c70f..cd0807e6e 100644 --- a/tests/registration/reset-test.c +++ b/tests/registration/reset-test.c @@ -113,7 +113,8 @@ static void test1_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_SIGNALLING, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -149,7 +150,8 @@ static void test1_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -415,7 +417,8 @@ static void test2_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -681,7 +684,8 @@ static void test3_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); diff --git a/tests/registration/ue-context-test.c b/tests/registration/ue-context-test.c index 9f7fd3efe..701bf2bcc 100644 --- a/tests/registration/ue-context-test.c +++ b/tests/registration/ue-context-test.c @@ -105,7 +105,8 @@ static void test1_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -265,7 +266,8 @@ static void test2_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -319,7 +321,8 @@ static void test2_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -564,7 +567,8 @@ static void test3_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, false); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, false); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -703,7 +707,8 @@ static void test3_func(abts_case *tc, void *data) gmmbuf = testgmm_build_registration_request(test_ue, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, false); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, false); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -853,7 +858,8 @@ static void test3_func(abts_case *tc, void *data) gmmbuf = testgmm_build_registration_request(test_ue, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, false); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, false); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1006,7 +1012,8 @@ static void test4_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, false); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, false); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1165,7 +1172,8 @@ static void test4_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_SIGNALLING, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, false); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, false); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1220,7 +1228,8 @@ static void test4_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_DATA, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, false); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, false); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1378,7 +1387,8 @@ static void test5_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, false); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, false); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1569,7 +1579,8 @@ static void test5_func(abts_case *tc, void *data) gmmbuf = testgmm_build_registration_request(test_ue, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); diff --git a/tests/slice/different-dnn-test.c b/tests/slice/different-dnn-test.c index f16b04786..50a28833d 100644 --- a/tests/slice/different-dnn-test.c +++ b/tests/slice/different-dnn-test.c @@ -95,7 +95,8 @@ static void test1_func(abts_case *tc, void *data) /* Send Registration request */ gmmbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); diff --git a/tests/slice/same-dnn-test.c b/tests/slice/same-dnn-test.c index 91a216ab7..895ca208d 100644 --- a/tests/slice/same-dnn-test.c +++ b/tests/slice/same-dnn-test.c @@ -95,7 +95,8 @@ static void test1_func(abts_case *tc, void *data) /* Send Registration request */ gmmbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -264,7 +265,8 @@ static void test1_func(abts_case *tc, void *data) gmmbuf = testgmm_build_registration_request(test_ue, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -398,7 +400,8 @@ static void test2_func(abts_case *tc, void *data) /* Send Registration request */ gmmbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); diff --git a/tests/vonr/af-test.c b/tests/vonr/af-test.c index 35ec3c9f3..514c6e6e2 100644 --- a/tests/vonr/af-test.c +++ b/tests/vonr/af-test.c @@ -114,7 +114,8 @@ static void test1_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -796,7 +797,8 @@ static void test2_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1270,7 +1272,8 @@ static void test3_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1724,7 +1727,8 @@ static void test4_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -2113,7 +2117,8 @@ static void test4_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -2349,7 +2354,8 @@ static void test5_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -2602,7 +2608,8 @@ static void test5_func(abts_case *tc, void *data) nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -2733,7 +2740,8 @@ static void test5_func(abts_case *tc, void *data) nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -2859,7 +2867,8 @@ static void test5_func(abts_case *tc, void *data) nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -3065,7 +3074,8 @@ static void test6_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -3602,7 +3612,8 @@ static void test7_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); diff --git a/tests/vonr/qos-flow-test.c b/tests/vonr/qos-flow-test.c index 2946b7002..7de74a988 100644 --- a/tests/vonr/qos-flow-test.c +++ b/tests/vonr/qos-flow-test.c @@ -110,7 +110,8 @@ static void test1_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -339,7 +340,8 @@ static void test1_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_DATA, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); diff --git a/tests/vonr/session-test.c b/tests/vonr/session-test.c index c088e6350..126bc58cb 100644 --- a/tests/vonr/session-test.c +++ b/tests/vonr/session-test.c @@ -110,7 +110,8 @@ static void test1_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -369,7 +370,8 @@ static void test1_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_DATA, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -589,7 +591,8 @@ static void test2_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -853,7 +856,8 @@ static void test2_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_DATA, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1021,7 +1025,8 @@ static void test3_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1282,7 +1287,8 @@ static void test3_func(abts_case *tc, void *data) test_ue, OGS_NAS_SERVICE_TYPE_SIGNALLING, nasbuf, true, false); ABTS_PTR_NOTNULL(tc, gmmbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, true, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, true, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1439,7 +1445,8 @@ static void test4_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -1786,7 +1793,8 @@ static void test5_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); @@ -2068,7 +2076,8 @@ static void test6_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv); diff --git a/tests/vonr/video-test.c b/tests/vonr/video-test.c index 1a902011c..e49082563 100644 --- a/tests/vonr/video-test.c +++ b/tests/vonr/video-test.c @@ -114,7 +114,8 @@ static void test1_func(abts_case *tc, void *data) nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false); ABTS_PTR_NOTNULL(tc, nasbuf); - sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, false, true); + sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf, + NGAP_RRCEstablishmentCause_mo_Signalling, false, true); ABTS_PTR_NOTNULL(tc, sendbuf); rv = testgnb_ngap_send(ngap, sendbuf); ABTS_INT_EQUAL(tc, OGS_OK, rv);