done DB integration
This commit is contained in:
parent
582c07d3e1
commit
e15348b089
|
@ -88,14 +88,12 @@ static int hss_air_cb( struct msg **msg, struct avp *avp,
|
|||
goto out;
|
||||
}
|
||||
|
||||
#if 0
|
||||
rv = hss_db_increment_sqn(imsi_bcd);
|
||||
if (rv != CORE_OK)
|
||||
{
|
||||
d_error("Cannot increment sqn for IMSI:'%s'", imsi_bcd);
|
||||
goto out;
|
||||
}
|
||||
#endif
|
||||
|
||||
d_assert(fd_msg_search_avp(qry, s6a_visited_plmn_id, &avp) == 0 &&
|
||||
avp, goto out,);
|
||||
|
|
|
@ -101,6 +101,7 @@ static void nas_sm_test1(abts_case *tc, void *data)
|
|||
|
||||
ABTS_TRUE(tc, mongoc_collection_insert(collection,
|
||||
MONGOC_INSERT_NONE, doc, NULL, &error));
|
||||
bson_destroy(doc);
|
||||
|
||||
d_log_set_level(D_MSG_TO_STDOUT, D_LOG_LEVEL_ERROR);
|
||||
|
||||
|
@ -225,10 +226,12 @@ static void nas_sm_test1(abts_case *tc, void *data)
|
|||
core_sleep(time_from_msec(300));
|
||||
d_log_set_level(D_MSG_TO_STDOUT, D_LOG_LEVEL_FULL);
|
||||
|
||||
doc = BCON_NEW("imsi", BCON_UTF8("001010123456819"));
|
||||
ABTS_PTR_NOTNULL(tc, doc);
|
||||
ABTS_TRUE(tc, mongoc_collection_remove(collection,
|
||||
MONGOC_REMOVE_SINGLE_REMOVE, doc, NULL, &error))
|
||||
|
||||
bson_destroy(doc);
|
||||
|
||||
mongoc_collection_destroy(collection);
|
||||
}
|
||||
|
||||
|
@ -299,6 +302,7 @@ static void nas_sm_test2(abts_case *tc, void *data)
|
|||
|
||||
ABTS_TRUE(tc, mongoc_collection_insert(collection,
|
||||
MONGOC_INSERT_NONE, doc, NULL, &error));
|
||||
bson_destroy(doc);
|
||||
|
||||
d_log_set_level(D_MSG_TO_STDOUT, D_LOG_LEVEL_ERROR);
|
||||
|
||||
|
@ -403,10 +407,12 @@ static void nas_sm_test2(abts_case *tc, void *data)
|
|||
core_sleep(time_from_msec(300));
|
||||
d_log_set_level(D_MSG_TO_STDOUT, D_LOG_LEVEL_FULL);
|
||||
|
||||
doc = BCON_NEW("imsi", BCON_UTF8("001010123456826"));
|
||||
ABTS_PTR_NOTNULL(tc, doc);
|
||||
ABTS_TRUE(tc, mongoc_collection_remove(collection,
|
||||
MONGOC_REMOVE_SINGLE_REMOVE, doc, NULL, &error))
|
||||
|
||||
bson_destroy(doc);
|
||||
|
||||
mongoc_collection_destroy(collection);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue