- TEST(XappRmr, HC_ReturnToSender){
-
- int total_num_msgs = 2;
- int num_attempts = 10;
-
- std::unique_ptr<XappRmr> rmr;
- rmr = std::make_unique<XappRmr>("4560",num_attempts);
- rmr->xapp_rmr_init();
-
- XappSettings config;
-
- std::unique_ptr<Xapp> hw_xapp = std::make_unique<Xapp>(std::ref(config),std::ref(*rmr));
-
- std::unique_ptr<XappMsgHandler> mp_handler = std::make_unique<XappMsgHandler>();
-
- rmr->set_listen(true);
- hw_xapp->start_xapp_receiver(std::ref(*mp_handler));
- sleep(5);
-
- xapp_rmr_header hdr;
- hdr.message_type = RIC_HEALTH_CHECK_REQ;
- char strMsg[HC_MSG_SIZE];
-
- for(int i = 0; i < total_num_msgs; i++){
- snprintf(strMsg,HC_MSG_SIZE, "HelloWorld: RMR Health Check %d", i);
- clock_gettime(CLOCK_REALTIME, &(hdr.ts));
- hdr.payload_length = strlen(strMsg);
-
- bool res = rmr->xapp_rmr_send(&hdr,(void*)strMsg);
- usleep(10);
- }
-
-
- };
-
+TEST(RMR, SendReceiveWithMEID) {
+ XappSettings config;
+ int total_num_msgs = 2;
+ int num_attempts = 10;