Commit 67e4737e authored by Yann Garcia's avatar Yann Garcia
Browse files

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

parent 3fb4fb9c
Loading
Loading
Loading
Loading
+527 −93

File changed.

Preview size limit exceeded, changes collapsed.

+102 −41
Original line number Diff line number Diff line
@@ -13,6 +13,8 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestControl {
    
    if (PICS_MEC_PLAT) {
      if (PICS_APP_PACKAGE_MANAGEMENT) {

        if (PICS_IUT_MEO) {
          if (PICS_GRANTS_MANAGEMENT) {
            execute(TC_MEC_MEC010p2_MEO_GRANT_001_OK());
            execute(TC_MEC_MEC010p2_MEO_GRANT_001_BR());
@@ -59,6 +61,65 @@ module AtsMec_ApplicationPackageLifecycleAndOperationGrantingAPI_TestControl {
            execute(TC_MEC_MEC010p2_MEO_PKGM_010_OK());
          }
        }

        if (PICS_IUT_MEPM) {
          if (PICS_APP_PACKAGE_MANAGEMENT) {
            execute(TC_MEC_MEC010p2_MEO_PKGM_001_OK());
            execute(TC_MEC_MEC010p2_MEO_PKGM_001_BR());
            execute(TC_MEC_MEC010p2_MEO_PKGM_002_01_OK());
            execute(TC_MEC_MEC010p2_MEO_PKGM_002_02_OK());
            execute(TC_MEC_MEC010p2_MEO_PKGM_002_BR());
            execute(TC_MEC_MEC010p2_MEO_PKGM_003_01_OK());
            execute(TC_MEC_MEC010p2_MEO_PKGM_003_02_OK());
            execute(TC_MEC_MEC010p2_MEO_PKGM_003_NF());
            execute(TC_MEC_MEC010p2_MEO_PKGM_004_OK());
            execute(TC_MEC_MEC010p2_MEO_PKGM_004_NF());
            execute(TC_MEC_MEC010p2_MEO_PKGM_005_OK());
            execute(TC_MEC_MEC010p2_MEO_PKGM_005_BR());
            execute(TC_MEC_MEC010p2_MEO_PKGM_005_NF());
            execute(TC_MEC_MEC010p2_MEO_PKGM_006_OK());
            execute(TC_MEC_MEC010p2_MEO_PKGM_006_BR());
            execute(TC_MEC_MEC010p2_MEO_PKGM_007_OK_01());
            execute(TC_MEC_MEC010p2_MEO_PKGM_007_OK_02());
            execute(TC_MEC_MEC010p2_MEO_PKGM_008_OK());
            execute(TC_MEC_MEC010p2_MEO_PKGM_008_NF());
            execute(TC_MEC_MEC010p2_MEO_PKGM_009_OK());
            execute(TC_MEC_MEC010p2_MEO_PKGM_009_NF());

            execute(TC_MEC_MEC010p2_MEO_PKGM_011_OK());
            execute(TC_MEC_MEC010p2_MEO_PKGM_011_NF());
            execute(TC_MEC_MEC010p2_MEO_PKGM_012_01_OK());
            execute(TC_MEC_MEC010p2_MEO_PKGM_012_02_OK());
            execute(TC_MEC_MEC010p2_MEO_PKGM_012_01_NF());
            execute(TC_MEC_MEC010p2_MEO_PKGM_012_02_NF());
            execute(TC_MEC_MEC010p2_MEPM_PKGM_001_01_OK());
            execute(TC_MEC_MEC010p2_MEPM_PKGM_001_02_OK());
            execute(TC_MEC_MEC010p2_MEPM_PKGM_001_BR());
            execute(TC_MEC_MEC010p2_MEPM_PKGM_002_01_OK());
            execute(TC_MEC_MEC010p2_MEPM_PKGM_002_02_OK());
            execute(TC_MEC_MEC010p2_MEPM_PKGM_002_NF());
            execute(TC_MEC_MEC010p2_MEPM_PKGM_003_OK());
            execute(TC_MEC_MEC010p2_MEPM_PKGM_003_BR());
            execute(TC_MEC_MEC010p2_MEPM_PKGM_004_OK());
            execute(TC_MEC_MEC010p2_MEPM_PKGM_005_OK());            
            execute(TC_MEC_MEC010p2_MEPM_PKGM_006_OK());
            execute(TC_MEC_MEC010p2_MEPM_PKGM_006_NF());
            execute(TC_MEC_MEC007p2_MEPM_PKGM_007_OK());
            execute(TC_MEC_MEC010p2_MEPM_PKGM_008_NA());
            execute(TC_MEC_MEC010p2_MEPM_PKGM_011_NA());
            execute(TC_MEC_MEC010p2_MEPM_PKGM_012_01_OK());
            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());
    
            if (PICS_APP_PACKAGE_NOTIFICATIONS) {
              execute(TC_MEC_MEC010p2_MEPM_PKGM_009_OK());
              execute(TC_MEC_MEC010p2_MEPM_PKGM_009_NF());
              execute(TC_MEC_MEC010p2_MEPM_PKGM_010_FO());
            }
          }
        }
      }
    }
  } // End of 'control' statement

+5 −3
Original line number Diff line number Diff line
@@ -189,7 +189,9 @@ module ApplicationPackageLifecycleAndOperationGrantingAPI_Functions {
  } // End of function f_delete_package_management

  function f_create_app_pkg_subscription(
                                         out AppPkgSubscriptionInfo p_app_pkg_subscription_info
                                         out AppPkgSubscriptionInfo p_app_pkg_subscription_info,
                                         in charstring p_uri := PX_MEO_PKGM_SUBS,
                                         in Json.AnyURI p_callback_uri := PX_CALLBACK_URI
                                         ) runs on HttpComponent {
    // Local variables
    var Headers v_headers;
@@ -199,12 +201,12 @@ module ApplicationPackageLifecycleAndOperationGrantingAPI_Functions {
    httpPort.send(
                  m_http_request(
                                  m_http_request_post(
                                                      PICS_ROOT_API & PX_MEO_PKGM_SUBS,
                                                      PICS_ROOT_API & p_uri,
                                                      v_headers,
                                                      m_http_message_body_json(
                                                                              m_body_json_pkgm_subscription(
                                                                                                            m_app_pkg_info_subscription(
                                                                                                                                        PX_CALLBACK_URI
                                                                                                                                        p_callback_uri
                          ))))));

    tc_ac.start;
+4 −0
Original line number Diff line number Diff line
module ApplicationPackageLifecycleAndOperationGrantingAPI_Pics {
  
  modulepar boolean PICS_IUT_MEO  := true;
  
  modulepar boolean PICS_IUT_MEPM := false;
  
  /**
   * @desc Does the IUT support GRANT?
   */
+45 −11
Original line number Diff line number Diff line
@@ -210,6 +210,40 @@ module ApplicationPackageLifecycleAndOperationGrantingAPI_Templates {
      appPkgPath      := p_appPkgPath
    } // End of template mw_create_package_management
    
    template (omit) AppPkgInfo m_app_pkg_info(
                                              in template (value) Json.String p_id,
                                              in template (value) Json.String p_appDId,
                                              in template (value) Json.String p_appName,
                                              in template (value) Json.String p_appSoftwareVersion,
                                              in template (value) Json.String p_appDVersion,
                                              in template (value) Checksum p_checksum,
                                              in template (value) AppPkgSWImageInfo p_softwareImages,
                                              in template (value) OnboardingState p_onboardingState,
                                              in template (value) AppPkgInfo_OperationalState p_operationalState,
                                              in template (value) UsageState p_usageState,
                                              in template (value) AppPkgInfo_MecInfo p_mecInfo,
                                              in template (value) AppPkgInfo_Links p_links,
                                              in template (omit) Json.String p_appProvider := omit
                                              ) := {
      id                       := p_id,
      appDId                   := p_appDId,
      appProvider              := p_appProvider,
      appName                  := p_appName,
      appSoftwareVersion       := p_appSoftwareVersion,
      appDVersion              := p_appDVersion,
      checksum                 := p_checksum,
      signingCertificate       := omit,
      softwareImages           := p_softwareImages,
      additionalArtifacts      := omit,
      onboardingState          := p_onboardingState,
      operationalState         := p_operationalState,
      usageState               := p_usageState,
      mecInfo                  := p_mecInfo,
      userDefinedData          := omit,
      onboardingFailureDetails := omit,
      links                    := p_links
    } // End of template m_app_pkg_info
    
    template (present) AppPkgInfo mw_app_pkg_info(
                                                  template (present) Json.String p_id := ?,
                                                  template (present) Json.String p_appDId := ?,