Loading ccsrc/Protocols/Http/http_codec_mec.cc +6 −3 Original line number Diff line number Diff line Loading @@ -28,13 +28,16 @@ bool http_codec_mec::decode_body_json(const OCTETSTRING &p_data, LibHttp__JsonMe loggers::get_instance().log(">>> http_codec_mec::decode_body_json"); if (_codecs["json"].get() != nullptr) { loggers::get_instance().log("http_codec::decode_body: Call 'json_codec'"); loggers::get_instance().log("http_codec::decode_body_json: Call 'json_codec'"); if (_codecs["json"]->decode(p_data, (Record_Type&)p_json_body, p_params) == -1) { loggers::get_instance().warning("http_codec::decode_body: Failed to decode JSON message"); loggers::get_instance().warning("http_codec::decode_body_json: Failed to decode JSON message"); p_json_body.raw() = CHARSTRING(p_data.lengthof(), (char*)static_cast<const unsigned char*>(p_data)); } else { loggers::get_instance().log_msg("http_codec::decode_body: Decoded message:", p_json_body); loggers::get_instance().log_msg("http_codec::decode_body_json: Decoded message:", p_json_body); } } else { loggers::get_instance().error("http_codec::decode_body_json: Codec not found"); return false; } return true; Loading ttcn/AtsMec_FederationEnablement/AtsMec_FederationEnablementAPI_TestCases.ttcn +25 −0 Original line number Diff line number Diff line module AtsMec_FederationEnablementAPI_TestCases { // Libcommon import from LibCommon_Sync all; // LibHttp import from LibHttp_TypesAndValues all; import from LibHttp_Functions all; import from LibHttp_Templates all; import from LibHttp_JsonTemplates all; import from LibHttp_TestSystem all; // LibMec/FederationEnablementAPI import from FederationEnablementAPI_TypesAndValues all; import from FederationEnablementAPI_Templates all; import from FederationEnablementAPI_Functions all; import from FederationEnablementAPI_Pics all; import from FederationEnablementAPI_Pixits all; // LibMec import from LibMec_Functions all; import from LibMec_Pics all; import from LibMec_Pixits all; } // End of module AtsMec_FederationEnablementAPI_TestCases ttcn/AtsMec_FederationEnablement/AtsMec_FederationEnablementAPI_TestControl.ttcn +16 −0 Original line number Diff line number Diff line module AtsMec_FederationEnablementAPI_TestControl { // LibMec/FederationEnablementAPI import from FederationEnablementAPI_Pics all; // LibMec import from LibMec_Pics all; // AtsMec_FederationEnablementAPI import from AtsMec_FederationEnablementAPI_TestCases all; control { } // End of 'control' statement } // End of module AtsMec_FederationEnablementAPI_TestControl ttcn/AtsMec_IoT/AtsMec_IoTAPI_TestCases.ttcn 0 → 100644 +25 −0 Original line number Diff line number Diff line module AtsMec_IoTAPI_TestCases { // Libcommon import from LibCommon_Sync all; // LibHttp import from LibHttp_TypesAndValues all; import from LibHttp_Functions all; import from LibHttp_Templates all; import from LibHttp_JsonTemplates all; import from LibHttp_TestSystem all; // LibMec/IoTAPI import from IoTAPI_TypesAndValues all; import from IoTAPI_Templates all; import from IoTAPI_Functions all; import from IoTAPI_Pics all; import from IoTAPI_Pixits all; // LibMec import from LibMec_Functions all; import from LibMec_Pics all; import from LibMec_Pixits all; } // End of module AtsMec_IoTAPI_TestCases ttcn/AtsMec_IoT/AtsMec_IoTAPI_TestControl.ttcn 0 → 100644 +16 −0 Original line number Diff line number Diff line module AtsMec_IoTAPI_TestControl { // LibMec/IoTAPI import from IoTAPI_Pics all; // LibMec import from LibMec_Pics all; // AtsMec_IoTAPI import from AtsMec_IoTAPI_TestCases all; control { } // End of 'control' statement } // End of module AtsMec_IoTAPI_TestControl Loading
ccsrc/Protocols/Http/http_codec_mec.cc +6 −3 Original line number Diff line number Diff line Loading @@ -28,13 +28,16 @@ bool http_codec_mec::decode_body_json(const OCTETSTRING &p_data, LibHttp__JsonMe loggers::get_instance().log(">>> http_codec_mec::decode_body_json"); if (_codecs["json"].get() != nullptr) { loggers::get_instance().log("http_codec::decode_body: Call 'json_codec'"); loggers::get_instance().log("http_codec::decode_body_json: Call 'json_codec'"); if (_codecs["json"]->decode(p_data, (Record_Type&)p_json_body, p_params) == -1) { loggers::get_instance().warning("http_codec::decode_body: Failed to decode JSON message"); loggers::get_instance().warning("http_codec::decode_body_json: Failed to decode JSON message"); p_json_body.raw() = CHARSTRING(p_data.lengthof(), (char*)static_cast<const unsigned char*>(p_data)); } else { loggers::get_instance().log_msg("http_codec::decode_body: Decoded message:", p_json_body); loggers::get_instance().log_msg("http_codec::decode_body_json: Decoded message:", p_json_body); } } else { loggers::get_instance().error("http_codec::decode_body_json: Codec not found"); return false; } return true; Loading
ttcn/AtsMec_FederationEnablement/AtsMec_FederationEnablementAPI_TestCases.ttcn +25 −0 Original line number Diff line number Diff line module AtsMec_FederationEnablementAPI_TestCases { // Libcommon import from LibCommon_Sync all; // LibHttp import from LibHttp_TypesAndValues all; import from LibHttp_Functions all; import from LibHttp_Templates all; import from LibHttp_JsonTemplates all; import from LibHttp_TestSystem all; // LibMec/FederationEnablementAPI import from FederationEnablementAPI_TypesAndValues all; import from FederationEnablementAPI_Templates all; import from FederationEnablementAPI_Functions all; import from FederationEnablementAPI_Pics all; import from FederationEnablementAPI_Pixits all; // LibMec import from LibMec_Functions all; import from LibMec_Pics all; import from LibMec_Pixits all; } // End of module AtsMec_FederationEnablementAPI_TestCases
ttcn/AtsMec_FederationEnablement/AtsMec_FederationEnablementAPI_TestControl.ttcn +16 −0 Original line number Diff line number Diff line module AtsMec_FederationEnablementAPI_TestControl { // LibMec/FederationEnablementAPI import from FederationEnablementAPI_Pics all; // LibMec import from LibMec_Pics all; // AtsMec_FederationEnablementAPI import from AtsMec_FederationEnablementAPI_TestCases all; control { } // End of 'control' statement } // End of module AtsMec_FederationEnablementAPI_TestControl
ttcn/AtsMec_IoT/AtsMec_IoTAPI_TestCases.ttcn 0 → 100644 +25 −0 Original line number Diff line number Diff line module AtsMec_IoTAPI_TestCases { // Libcommon import from LibCommon_Sync all; // LibHttp import from LibHttp_TypesAndValues all; import from LibHttp_Functions all; import from LibHttp_Templates all; import from LibHttp_JsonTemplates all; import from LibHttp_TestSystem all; // LibMec/IoTAPI import from IoTAPI_TypesAndValues all; import from IoTAPI_Templates all; import from IoTAPI_Functions all; import from IoTAPI_Pics all; import from IoTAPI_Pixits all; // LibMec import from LibMec_Functions all; import from LibMec_Pics all; import from LibMec_Pixits all; } // End of module AtsMec_IoTAPI_TestCases
ttcn/AtsMec_IoT/AtsMec_IoTAPI_TestControl.ttcn 0 → 100644 +16 −0 Original line number Diff line number Diff line module AtsMec_IoTAPI_TestControl { // LibMec/IoTAPI import from IoTAPI_Pics all; // LibMec import from LibMec_Pics all; // AtsMec_IoTAPI import from AtsMec_IoTAPI_TestCases all; control { } // End of 'control' statement } // End of module AtsMec_IoTAPI_TestControl