Commit ce629822 authored by Yann Garcia's avatar Yann Garcia
Browse files

Add RnisAPI tests

parent 0dd2792e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ int json_codec::decode (const OCTETSTRING& p_data, LibItsHttp__JsonMessageBodyTy
  } else if (it->second.find("\"problemDetails\"") != std::string::npos) {
    UEidentityAPI__TypesAndValues::ProblemDetails problem_details;
    problem_details.decode(UEidentityAPI__TypesAndValues::ProblemDetails_descr_, decoding_buffer, TTCN_EncDec::CT_JSON);
    msg.problemDetails() = problem_details;
    msg.problemDetails__ue__identity() = problem_details;
  } else {
    loggers::get_instance().warning("json_codec::decode: Unsupported variant");
    return -1;
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ find .. -type f -name "*.bak" -exec rm {} \;
find .. -type f -name "*.log" -exec rm {} \;

# Build JSON files if any and put them in objs directory
REFERENCES="LibCommon LibHttp LibMec LibMec/LocationAPI LibMec/UEidentityAPI"
REFERENCES="LibCommon LibHttp LibMec LibMec/LocationAPI LibMec/RnisAPI LibMec/UEidentityAPI"
for i in ${REFERENCES}
do
    # TTCN code
+1 −1
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ do
    then
        cp ${TTCN_3_ORG_PATH}/$i/ttcn/*.ttcn ${TTCN_3_DST_PATH}/$i/ttcn
        cp ${TTCN_3_ORG_PATH}/$i/json/*.json ${TTCN_3_DST_PATH}/$i/json
    elif [ "$i" == "LibMec/RnsiAPI" ]
    elif [ "$i" == "LibMec/RnisAPI" ]
    then
        cp ${TTCN_3_ORG_PATH}/$i/ttcn/*.ttcn ${TTCN_3_DST_PATH}/$i/ttcn
        cp ${TTCN_3_ORG_PATH}/$i/json/*.json ${TTCN_3_DST_PATH}/$i/json
+3 −3
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ module AtsMec_RnisAPI_TestCases {
     * @desc Check that the RNIS service sends all RNIS subscriptions when requested
     * @see Check that the RNIS service sends all RNIS subscriptions when requested
     */
    testcase TC_MEC025_RNI_SUBSCRIPTION_05() runs on HttpComponent system HttpTestAdapter {
    testcase TC_MEC025_RNI_SUBSCRIPTION_005() runs on HttpComponent system HttpTestAdapter {
        // Local variables
        var HeaderLines v_headers;
        var HttpMessage v_response;
@@ -90,7 +90,7 @@ module AtsMec_RnisAPI_TestCases {
        
        // Postamble
        f_cf_01_http_down();
    } // End of testcase TC_MEC025_RNI_SUBSCRIPTION_05
    } // End of testcase TC_MEC025_RNI_SUBSCRIPTION_005
    
  } // End of group me_app_role
  
+5 −0
Original line number Diff line number Diff line
module RnisAPI_Pixits {

  modulepar universal charstring PX_SUBSCRIPTION_ID := "7777";

} // End of module RnisAPI_Pixits 
Loading