remove delay in test code

This commit is contained in:
Sukchan Lee
2019-06-15 16:02:52 +09:00
parent 1542d70af6
commit f6a8985267
6 changed files with 3 additions and 158 deletions

View File

@@ -95,8 +95,6 @@ static void attach_test1(abts_case *tc, void *data)
"\"__v\" : 0 "
"}";
ogs_msleep(300);
/* eNB connects to MME */
s1ap = testenb_s1ap_client("127.0.0.1");
ABTS_PTR_NOTNULL(tc, s1ap);
@@ -144,8 +142,6 @@ static void attach_test1(abts_case *tc, void *data)
/***********************************************************************
* Attach Request : Known IMSI, Integrity Protected, No Security Context
* Send Initial-UE Message + Attach Request + PDN Connectivity */
ogs_msleep(300);
mme_self()->mme_ue_s1ap_id = 16777372;
rv = tests1ap_build_initial_ue_msg(&sendbuf, msgindex);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -217,8 +213,6 @@ static void attach_test1(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Initial Context Setup Response */
rv = tests1ap_build_initial_context_setup_response(&sendbuf,
16777373, 1, 5, 1, "127.0.0.5");
@@ -240,15 +234,6 @@ static void attach_test1(abts_case *tc, void *data)
ABTS_TRUE(tc, memcmp(recvbuf->data+32, tmp+32, 20) == 0);
ogs_pkbuf_free(recvbuf);
#if TEST_INITIAL_CONTEXT_SETUP_FAILURE
/* Send Initial Context Setup Failure */
rv = tests1ap_build_initial_context_setup_failure(&sendbuf, msgindex);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
#endif
ogs_msleep(300);
rv = testgtpu_build_slacc_rs(&sendbuf, 0);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
rv = testenb_gtpu_send(gtpu, sendbuf);
@@ -291,8 +276,6 @@ static void attach_test1(abts_case *tc, void *data)
/*****************************************************************
* Attach Request : Known GUTI, Integrity Protected, MAC Matched
* Send Initial-UE Message + Attach Request + PDN Connectivity */
ogs_msleep(300);
rv = tests1ap_build_initial_ue_msg(&sendbuf, msgindex+1);
/* Update M-TMSI */
m_tmsi = htonl(m_tmsi);
@@ -340,8 +323,6 @@ static void attach_test1(abts_case *tc, void *data)
ABTS_INT_EQUAL(tc, OGS_OK, rv);
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
#endif
/* Send ESM Information Response */
@@ -389,8 +370,6 @@ static void attach_test1(abts_case *tc, void *data)
/*****************************************************************
* Attach Request : Unknown GUTI, Integrity Protected
* Send Initial-UE Message + Attach Request + PDN Connectivity */
ogs_msleep(300);
rv = tests1ap_build_initial_ue_msg(&sendbuf, msgindex+2);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
rv = testenb_s1ap_send(s1ap, sendbuf);
@@ -432,8 +411,6 @@ static void attach_test1(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* eNB disonncect from MME */
testenb_s1ap_close(s1ap);
@@ -454,13 +431,13 @@ out:
mongoc_collection_destroy(collection);
ogs_msleep(300);
/* eNB disonncect from MME */
testenb_s1ap_close(s1ap);
/* eNB disonncect from SGW */
testenb_gtpu_close(gtpu);
ogs_msleep(300);
#endif
}
@@ -565,8 +542,6 @@ static void attach_test2(abts_case *tc, void *data)
uint8_t tmp[MAX_SDU_LEN];
ogs_msleep(300);
/* eNB connects to MME */
s1ap = testenb_s1ap_client("127.0.0.1");
ABTS_PTR_NOTNULL(tc, s1ap);
@@ -627,8 +602,6 @@ static void attach_test2(abts_case *tc, void *data)
/*****************************************************************
* Attach Request : Known IMSI, Plain NAS message
* Send Initial-UE Message + Attach Request + PDN Connectivity */
ogs_msleep(300);
mme_self()->mme_ue_s1ap_id = 0;
rv = tests1ap_build_initial_ue_msg(&sendbuf, msgindex);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -681,8 +654,6 @@ static void attach_test2(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Initial Context Setup Response */
rv = tests1ap_build_initial_context_setup_response(&sendbuf,
1, 31, 5, 1, "127.0.0.5");
@@ -704,8 +675,6 @@ static void attach_test2(abts_case *tc, void *data)
/*****************************************************************
* Attach Request : IMSI, Integrity Protected, MAC Matched
* Send Initial-UE Message + Attach Request + PDN Connectivity */
ogs_msleep(300);
rv = tests1ap_build_initial_ue_msg(&sendbuf, msgindex+1);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
rv = testenb_s1ap_send(s1ap, sendbuf);
@@ -787,8 +756,6 @@ static void attach_test2(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
doc = BCON_NEW("imsi", BCON_UTF8("001010123456826"));
ABTS_PTR_NOTNULL(tc, doc);
ABTS_TRUE(tc, mongoc_collection_remove(collection,
@@ -900,8 +867,6 @@ static void attach_test3(abts_case *tc, void *data)
"\"__v\" : 0 "
"}";
ogs_msleep(300);
/* eNB connects to MME */
s1ap = testenb_s1ap_client("127.0.0.1");
ABTS_PTR_NOTNULL(tc, s1ap);
@@ -946,8 +911,6 @@ static void attach_test3(abts_case *tc, void *data)
/*****************************************************************
* Attach Request : Known IMSI, Plain NAS message
* Send Initial-UE Message + Attach Request + PDN Connectivity */
ogs_msleep(300);
mme_self()->mme_ue_s1ap_id = 33554631;
rv = tests1ap_build_initial_ue_msg(&sendbuf, msgindex);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -1009,8 +972,6 @@ static void attach_test3(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Initial Context Setup Response */
rv = tests1ap_build_initial_context_setup_response(&sendbuf,
33554632, 2, 5, 1, "127.0.0.5");
@@ -1061,8 +1022,6 @@ static void attach_test3(abts_case *tc, void *data)
ABTS_INT_EQUAL(tc, OGS_OK, rv);
/* Send Service Request */
ogs_msleep(300);
rv = tests1ap_build_service_request(&sendbuf, 0x000400, 4, 0xd4b8, m_tmsi);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
rv = testenb_s1ap_send(s1ap, sendbuf);
@@ -1079,8 +1038,6 @@ static void attach_test3(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Initial Context Setup Response */
rv = tests1ap_build_initial_context_setup_response(&sendbuf,
33554633, 4, 5, 1, "127.0.0.5");
@@ -1088,8 +1045,6 @@ static void attach_test3(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send TAU Request */
rv = tests1ap_build_tau_request(&sendbuf, 0,
0, 0x003600, 1, m_tmsi, 7, 0xe73ce7c, mme_ue->knas_int);
@@ -1109,8 +1064,6 @@ static void attach_test3(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send TAU Request */
rv = tests1ap_build_tau_request(&sendbuf, 0,
0, 0x002600, 0, m_tmsi, 8, 0x972dc6f8, mme_ue->knas_int);
@@ -1134,8 +1087,6 @@ static void attach_test3(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
doc = BCON_NEW("imsi", BCON_UTF8("001010123456797"));
ABTS_PTR_NOTNULL(tc, doc);
ABTS_TRUE(tc, mongoc_collection_remove(collection,
@@ -1212,8 +1163,6 @@ static void attach_test4(abts_case *tc, void *data)
"\"__v\" : 0 "
"}";
ogs_msleep(300);
/* eNB connects to MME */
s1ap = testenb_s1ap_client("127.0.0.1");
ABTS_PTR_NOTNULL(tc, s1ap);
@@ -1261,8 +1210,6 @@ static void attach_test4(abts_case *tc, void *data)
/***********************************************************************
* Attach Request : Known IMSI, Integrity Protected, No Security Context
* Send Initial-UE Message + Attach Request + PDN Connectivity */
ogs_msleep(300);
mme_self()->mme_ue_s1ap_id = 0;
rv = tests1ap_build_initial_ue_msg(&sendbuf, msgindex);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -1324,8 +1271,6 @@ static void attach_test4(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
doc = BCON_NEW("imsi", BCON_UTF8("001010000000002"));
ABTS_PTR_NOTNULL(tc, doc);
ABTS_TRUE(tc, mongoc_collection_remove(collection,
@@ -1401,8 +1346,6 @@ static void attach_test5(abts_case *tc, void *data)
"\"__v\" : 0 "
"}";
ogs_msleep(300);
/* eNB connects to MME */
s1ap = testenb_s1ap_client("127.0.0.1");
ABTS_PTR_NOTNULL(tc, s1ap);
@@ -1440,8 +1383,6 @@ static void attach_test5(abts_case *tc, void *data)
} while (count == 0);
bson_destroy(doc);
ogs_msleep(300);
/* Send Service request */
mme_self()->mme_ue_s1ap_id = 0;
rv = tests1ap_build_service_request(&sendbuf,
@@ -1520,8 +1461,6 @@ static void attach_test5(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Initial Context Setup Response */
rv = tests1ap_build_initial_context_setup_response(&sendbuf,
2, 1837, 5, 0x1000908, "127.0.0.5");
@@ -1663,8 +1602,6 @@ static void attach_test5(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/********** Remove Subscriber in Database */
doc = BCON_NEW("imsi", BCON_UTF8("001010123456937"));
ABTS_PTR_NOTNULL(tc, doc);
@@ -1742,8 +1679,6 @@ static void attach_test6(abts_case *tc, void *data)
"\"__v\" : 0 "
"}";
ogs_msleep(300);
/* eNB connects to MME */
s1ap = testenb_s1ap_client("127.0.0.1");
ABTS_PTR_NOTNULL(tc, s1ap);
@@ -1791,8 +1726,6 @@ static void attach_test6(abts_case *tc, void *data)
/***********************************************************************
* Attach Request : Known IMSI, Integrity Protected, No Security Context
* Send Initial-UE Message + Attach Request + PDN Connectivity */
ogs_msleep(300);
mme_self()->mme_ue_s1ap_id = 0;
rv = tests1ap_build_initial_ue_msg(&sendbuf, msgindex);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -1849,8 +1782,6 @@ static void attach_test6(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
doc = BCON_NEW("imsi", BCON_UTF8("001010000000002"));
ABTS_PTR_NOTNULL(tc, doc);
ABTS_TRUE(tc, mongoc_collection_remove(collection,

View File

@@ -213,8 +213,6 @@ static void handover_test1(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap1, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Initial Context Setup Response */
rv = tests1ap_build_initial_context_setup_response(&sendbuf,
16777690, 1, 5, 1, "127.0.0.5");
@@ -246,8 +244,6 @@ static void handover_test1(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap1, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Activate dedicated EPS bearer context accept */
rv = tests1ap_build_activate_dedicated_bearer_accept(&sendbuf, msgindex);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -536,8 +532,6 @@ static void handover_test2(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap1, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Initial Context Setup Response */
rv = tests1ap_build_initial_context_setup_response(&sendbuf,
33554628, 12, 5, 1, "127.0.0.5");
@@ -576,16 +570,12 @@ static void handover_test2(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap1, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Activate dedicated EPS bearer context accept */
rv = tests1ap_build_activate_dedicated_bearer_accept(&sendbuf, msgindex);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
rv = testenb_s1ap_send(s1ap1, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send ENB configuration transfer */
rv = tests1ap_build_enb_configuration_transfer(&sendbuf, 0);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -689,8 +679,6 @@ static void handover_test2(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap1, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Handover Required */
rv = tests1ap_build_handover_required(&sendbuf, 1);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -752,8 +740,6 @@ static void handover_test2(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap2, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Handover Required */
rv = tests1ap_build_handover_required(&sendbuf, 2);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -799,8 +785,6 @@ static void handover_test2(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap2, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/********** Remove Subscriber in Database */
doc = BCON_NEW("imsi", BCON_UTF8("001010123456815"));
ABTS_PTR_NOTNULL(tc, doc);

View File

@@ -94,7 +94,7 @@ static void s1setup_test2(abts_case *tc, void *data)
ogs_pkbuf_free(recvbuf);
ogs_msleep(1000);
ogs_msleep(300);
}
abts_suite *test_s1setup(abts_suite *suite)

View File

@@ -187,8 +187,6 @@ static void volte_test1(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Initial Context Setup Response */
rv = tests1ap_build_initial_context_setup_response(
&sendbuf, 1, 1, 5, 1, "127.0.0.5");
@@ -196,8 +194,6 @@ static void volte_test1(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Attach Complete + Activate default EPS bearer cotext accept */
rv = tests1ap_build_attach_complete(&sendbuf, msgindex);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -227,8 +223,6 @@ static void volte_test1(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Activate default EPS bearer context accept */
rv = tests1ap_build_activate_default_bearer_accept(&sendbuf, msgindex);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -247,16 +241,12 @@ static void volte_test1(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send E-RAB Setup Response */
rv = tests1ap_build_e_rab_setup_response(&sendbuf, 1, 1, 7, 3, "127.0.0.5");
ABTS_INT_EQUAL(tc, OGS_OK, rv);
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send PDN disconnectivity request */
rv = tests1ap_build_pdn_disconnectivity_request(&sendbuf, msgindex);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -275,16 +265,12 @@ static void volte_test1(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(1000);
/* Deactivate EPS bearer context accept */
rv = tests1ap_build_deactivate_bearer_accept(&sendbuf, msgindex);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send INVALID PDN Connectivity Request */
rv = tests1ap_build_pdn_connectivity_request(&sendbuf, msgindex+1);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -307,8 +293,6 @@ static void volte_test1(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/********** Remove Subscriber in Database */
doc = BCON_NEW("imsi", BCON_UTF8("001010123456819"));
ABTS_PTR_NOTNULL(tc, doc);
@@ -502,8 +486,6 @@ static void volte_test2(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Initial Context Setup Response */
rv = tests1ap_build_initial_context_setup_response(
&sendbuf, 16777373, 1, 5, 1, "127.0.0.5");
@@ -511,8 +493,6 @@ static void volte_test2(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Attach Complete + Activate default EPS bearer cotext accept */
rv = tests1ap_build_attach_complete(&sendbuf, msgindex);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -537,8 +517,6 @@ static void volte_test2(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Activate dedicated EPS bearer context accept */
rv = tests1ap_build_activate_dedicated_bearer_accept(&sendbuf, msgindex+1);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -546,8 +524,6 @@ static void volte_test2(abts_case *tc, void *data)
ABTS_INT_EQUAL(tc, OGS_OK, rv);
#if 0 /* TFT Rule Tester */
ogs_msleep(300);
/* Send GTP-U ICMP Packet */
#if 1
rv = testgtpu_build_ping(&sendbuf, "45.45.0.2", "45.45.0.1");
@@ -555,8 +531,6 @@ static void volte_test2(abts_case *tc, void *data)
rv = testgtpu_build_ping(&sendbuf, "cafe::2", "cafe::1");
#endif
rv = testgtpu_enb_send(gtpu, sendbuf);
ogs_msleep(300);
#endif
/********** Remove Subscriber in Database */

View File

@@ -92,8 +92,6 @@ static void test1_func(abts_case *tc, void *data)
"\"__v\" : 0 "
"}";
ogs_msleep(300);
/* eNB connects to MME */
s1ap = testenb_s1ap_client("127.0.0.1");
ABTS_PTR_NOTNULL(tc, s1ap);
@@ -138,8 +136,6 @@ static void test1_func(abts_case *tc, void *data)
} while (count == 0);
bson_destroy(doc);
ogs_msleep(300);
mme_self()->mme_ue_s1ap_id = 27263233;
rv = tests1ap_build_initial_ue_msg(&sendbuf, msgindex);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -206,8 +202,6 @@ static void test1_func(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Initial Context Setup Response */
rv = tests1ap_build_initial_context_setup_response(&sendbuf,
27263233, 24, 5, 1, "127.0.0.5");

View File

@@ -173,8 +173,6 @@ static void volte_test1(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Initial Context Setup Response */
rv = tests1ap_build_initial_context_setup_response(&sendbuf,
1, 1, 5, 1, "127.0.0.5");
@@ -199,8 +197,6 @@ static void volte_test1(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Receive E-RAB Setup Request +
* Activate default EPS bearer context request */
recvbuf = testenb_s1ap_read(s1ap);
@@ -213,16 +209,12 @@ static void volte_test1(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Activate default EPS bearer context accept */
rv = tests1ap_build_activate_default_bearer_accept(&sendbuf, msgindex);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send AA-Request */
pcscf_rx_send_aar(&rx_sid, "45.45.0.3", 1, 1);
@@ -238,16 +230,12 @@ static void volte_test1(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Activate dedicated EPS bearer context accept */
rv = tests1ap_build_activate_dedicated_bearer_accept(&sendbuf, msgindex);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send AA-Request without Flow */
pcscf_rx_send_aar(&rx_sid, "45.45.0.3", 2, 1);
@@ -263,16 +251,12 @@ static void volte_test1(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Modify EPS bearer context accept */
rv = tests1ap_build_modify_bearer_accept(&sendbuf, msgindex);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Session-Termination-Request */
pcscf_rx_send_str(rx_sid);
@@ -288,16 +272,12 @@ static void volte_test1(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Deactivate EPS bearer context accept */
rv = tests1ap_build_deactivate_bearer_accept(&sendbuf, msgindex+1);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Detach Request */
rv = tests1ap_build_detach_request(&sendbuf, msgindex+1);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -315,8 +295,6 @@ static void volte_test1(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/********** Remove Subscriber in Database */
doc = BCON_NEW("imsi", BCON_UTF8("001010123456819"));
ABTS_PTR_NOTNULL(tc, doc);
@@ -511,8 +489,6 @@ static void volte_test2(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Initial Context Setup Response */
rv = tests1ap_build_initial_context_setup_response(&sendbuf,
1, 1, 5, 1, "127.0.0.5");
@@ -537,8 +513,6 @@ static void volte_test2(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Receive E-RAB Setup Request +
* Activate default EPS bearer context request */
recvbuf = testenb_s1ap_read(s1ap);
@@ -551,8 +525,6 @@ static void volte_test2(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Activate default EPS bearer context accept */
rv = tests1ap_build_activate_default_bearer_accept(&sendbuf, msgindex);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -571,16 +543,12 @@ static void volte_test2(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send E-RAB Setup Response */
rv = tests1ap_build_e_rab_setup_response(&sendbuf, 1, 1, 7, 3, "127.0.0.5");
ABTS_INT_EQUAL(tc, OGS_OK, rv);
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send AA-Request */
pcscf_rx_send_aar(&rx_sid, "45.45.0.5", 0, 1);
@@ -596,8 +564,6 @@ static void volte_test2(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send PDN disconnectivity request */
rv = tests1ap_build_pdn_disconnectivity_request(&sendbuf, msgindex+1);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
@@ -616,16 +582,12 @@ static void volte_test2(abts_case *tc, void *data)
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/* Send Deactivate EPS bearer context accept */
rv = tests1ap_build_deactivate_bearer_accept(&sendbuf, msgindex+2);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
rv = testenb_s1ap_send(s1ap, sendbuf);
ABTS_INT_EQUAL(tc, OGS_OK, rv);
ogs_msleep(300);
/********** Remove Subscriber in Database */
doc = BCON_NEW("imsi", BCON_UTF8("001010123456819"));
ABTS_PTR_NOTNULL(tc, doc);