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

TTF T027: Review MEC 010-2/MEPM/LCM

parent 67e4737e
Loading
Loading
Loading
Loading
+14 −13
Original line number Diff line number Diff line
@@ -3429,7 +3429,6 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases {
    testcase TC_MEC_MEC010p2_MEPM_LCM_01_OK() runs on HttpComponent system HttpTestAdapter {
      // Local variables
      var Headers v_headers;
      var HttpMessage v_response;

      // Test control
      if (not(PICS_APP_PACKAGE_MANAGEMENT)) {
@@ -3466,7 +3465,7 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases {
        [] httpPort.receive(
                            mw_http_response(
                                             mw_http_response_202_accepted
                            )) -> value v_response {
                            )) {
          tc_ac.stop;
          log("*** " & testcasename() & ": PASS: IUT successfully responds with the correct code ***");
          f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
@@ -3477,16 +3476,16 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases {
        }
      } // End of 'alt' statement

      // Postamble
      f_cf_01_http_down();
    } // End of testcase TC_MEC_MEC010p2_MEPM_LCM_01_OK
    
    /**
     * @desc Check that MEC API provider sends an error when it receives a malformed request 
     *       for the configuration information in AppD to the MEPM-V
     * @desc Check that MEC API provider sends an error when it receives a malformed request for the configuration information in AppD to the MEPM-V
     */
    testcase TC_MEC_MEC010p2_MEPM_LCM_01_BR() runs on HttpComponent system HttpTestAdapter {
      // Local variables
      var Headers v_headers;
      var HttpMessage v_response;

      // Test control
      if (not(PICS_APP_PACKAGE_MANAGEMENT)) {
@@ -3523,7 +3522,7 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases {
        [] httpPort.receive(
                            mw_http_response(
                                             mw_http_response_400_bad_request
                            )) -> value v_response {
                            )) {
          tc_ac.stop;
          log("*** " & testcasename() & ": PASS: IUT successfully responds with a correct error code ***");
          f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
@@ -3534,16 +3533,16 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases {
        }
      } // End of 'alt' statement

      // Postamble
      f_cf_01_http_down();
    } // End of testcase TC_MEC_MEC010p2_MEPM_LCM_01_BR
    
    /**
     * @desc Check that MEC API provider sends an error when it receives a request 
     *       for the configuration information in AppD to the MEPM-V with not valid app instance ID
     * @desc Check that MEC API provider sends an error when it receives a request for the configuration information in AppD to the MEPM-V with not valid app instance ID
     */
    testcase TC_MEC_MEC010p2_MEPM_LCM_01_NF() runs on HttpComponent system HttpTestAdapter {
      // Local variables
      var Headers v_headers;
      var HttpMessage v_response;

      // Test control
      if (not(PICS_APP_PACKAGE_MANAGEMENT)) {
@@ -3580,7 +3579,7 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases {
        [] httpPort.receive(
                            mw_http_response(
                                             mw_http_response_404_not_found
                            )) -> value v_response {
                            )) {
          tc_ac.stop;
          log("*** " & testcasename() & ": PASS: IUT successfully responds with a correct error code ***");
          f_selfOrClientSyncAndVerdict(c_tbDone, e_success);
@@ -3591,6 +3590,8 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestCases {
        }
      } // End of 'alt' statement

      // Postamble
      f_cf_01_http_down();
    } // End of testcase TC_MEC_MEC010p2_MEPM_LCM_01_NF
    
  } // End of group mepm_lifcyclemgt
+3 −1
Original line number Diff line number Diff line
@@ -111,6 +111,8 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestControl {
            execute(TC_MEC_MEC010p2_MEPM_PKGM_012_02_OK());
            execute(TC_MEC_MEC010p2_MEPM_PKGM_012_01_NF());
            execute(TC_MEC_MEC010p2_MEPM_PKGM_012_02_NF());
            execute(TC_MEC_MEC010p2_MEPM_LCM_01_OK());
            execute(TC_MEC_MEC010p2_MEPM_LCM_01_BR());

            if (PICS_APP_PACKAGE_NOTIFICATIONS) {
              execute(TC_MEC_MEC010p2_MEPM_PKGM_009_OK());