Commit 886dc92a authored by piscione's avatar piscione
Browse files

Initial updates of TPs for MEC010p2 v3.1.1

parent 363047cd
Loading
Loading
Loading
Loading
+77 −57
Original line number Diff line number Diff line
@@ -13,10 +13,9 @@ Package MEC_MEC010p2_MEO_GRANT {
         "Check that MEO sends a synchronous grant response when a grant request is requested - INSTANTIATE"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.5.1.3.1",
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.2.2-1",        //GrantRequest
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.2.2-1 Note 2", //GrantRequest
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.4.2-1"         //Grant
          "ETSI GS MEC 010-2 3.1.1, clause 7.5.1.3.1",
          "ETSI GS MEC 010-2 3.1.1, Table 6.2.4.2.2-1",        //GrantRequest
          "ETSI GS MEC 010-2 3.1.1, Table 6.2.4.4.2-1"         //Grant
              
      Config Id Config_MEC_3
      PICS Selection PIC_GRANTS_MANAGEMENT 
@@ -40,7 +39,10 @@ Package MEC_MEC010p2_MEO_GRANT {
                     appDId set to any_value,
                     operation set to INSTANTIATE,
                     addResources set to INST_RESOURCES_LIST,
                     _links set to H_LINK
                     _links containing
                     	appLcmOpOcc set to APP_LCM_OP_OCC_LINK,
                     	appInstance set to APP_INSTANCE_LINK
                     ;
               ;;;
            from the MEPM entity
         }
@@ -48,14 +50,17 @@ Package MEC_MEC010p2_MEO_GRANT {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "201 Created",
               headers containing
                   Location indicating value "{GRANTING_ID}"
                   Location set to "/granting/v1/grants/{GRANTING_ID}"
               body containing 
                  Grant containing
                     id set to any_value,
                     appInstanceId set to APP_INSTANCE_ID,
                     appLcmOpOccId set to any_value,
                     addResources set to INST_RESOURCES_LIST,
                     _links set to H_LINK
                     _links containing
                     	appLcmOpOcc set to APP_LCM_OP_OCC_LINK,
                     	appInstance set to APP_INSTANCE_LINK
                     ;
                  ;
               ;
            ;;
@@ -71,10 +76,9 @@ Package MEC_MEC010p2_MEO_GRANT {
         "Check that MEO responds with an error when it receives a malformed request when a new grant request is performed - INSTANTIATE"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.5.1.3.1",
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.2.2-1",        //GrantRequest
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.2.2-1 Note 2", //GrantRequest
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.4.2-1"         //Grant
          "ETSI GS MEC 010-2 3.1.1, clause 7.5.1.3.1",
          "ETSI GS MEC 010-2 3.1.1, Table 6.2.4.2.2-1",        //GrantRequest
          "ETSI GS MEC 010-2 3.1.1, Table 6.2.4.4.2-1"         //Grant
          
      Config Id Config_MEC_3
      
@@ -98,7 +102,10 @@ Package MEC_MEC010p2_MEO_GRANT {
                     appDId set to any_value,
                     operationERROR set to INSTANTIATE,
                     not addResources,
                     _links set to H_LINK
                     _links containing
                     	appLcmOpOcc set to APP_LCM_OP_OCC_LINK,
                     	appInstance set to APP_INSTANCE_LINK
                     ;
                  ;
               ;
            ; from the MEPM entity
@@ -119,9 +126,9 @@ Package MEC_MEC010p2_MEO_GRANT {
         "Check that MEO sends a synchronous grant response when a grant request is requested"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.5.1.3.1",
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.2.2-1",      //GrantRequest
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.4.2-1"       //Grant
          "ETSI GS MEC 010-2 3.1.1, clause 7.5.1.3.1",
          "ETSI GS MEC 010-2 3.1.1, Table 6.2.4.2.2-1",        //GrantRequest
          "ETSI GS MEC 010-2 3.1.1, Table 6.2.4.4.2-1"         //Grant
          
      Config Id Config_MEC_3
      PICS Selection PIC_GRANTS_MANAGEMENT 
@@ -144,7 +151,10 @@ Package MEC_MEC010p2_MEO_GRANT {
                     appLcmOpOccId set to any_value,
                     appDId set to any_value,
                     operation set to OPERATION_TYPE,   //Shall be one from - OPERATE - TERMINATE
                     _links set to H_LINK
                     _links containing
                     	appLcmOpOcc set to APP_LCM_OP_OCC_LINK,
                     	appInstance set to APP_INSTANCE_LINK
                     ;
                     ;;;
            from the MEPM entity
         }
@@ -158,7 +168,10 @@ Package MEC_MEC010p2_MEO_GRANT {
                     id set to any_value,
                     appInstanceId set to APP_INSTANCE_ID,
                     appLcmOpOccId set to any_value,
                     _links set to H_LINK
                     _links containing
                     	appLcmOpOcc set to APP_LCM_OP_OCC_LINK,
                     	appInstance set to APP_INSTANCE_LINK
                     ;
                  ;
               ;
            ;;
@@ -175,10 +188,9 @@ Package MEC_MEC010p2_MEO_GRANT {
         "Check that MEO sends a asynchronous grant response when a grant request is requested - INSTANTIATE"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.5.1.3.1",
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.2.2-1",        //GrantRequest
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.2.2-1 Note 2", //GrantRequest
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.4.2-1"         //Grant
          "ETSI GS MEC 010-2 3.1.1, clause 7.5.1.3.1",
          "ETSI GS MEC 010-2 3.1.1, Table 6.2.4.2.2-1",        //GrantRequest
          "ETSI GS MEC 010-2 3.1.1, Table 6.2.4.4.2-1"         //Grant
          
      Config Id Config_MEC_3
      PICS Selection PIC_GRANTS_MANAGEMENT 
@@ -202,7 +214,10 @@ Package MEC_MEC010p2_MEO_GRANT {
                     appDId set to any_value,
                     operation set to INSTANTIATE,
                     addResources set to INST_RESOURCES_LIST,
                     _links set to H_LINK
                     _links containing
                     	appLcmOpOcc set to APP_LCM_OP_OCC_LINK,
                     	appInstance set to APP_INSTANCE_LINK
                     ;
                  ;
               ;
            ;
@@ -226,9 +241,9 @@ Package MEC_MEC010p2_MEO_GRANT {
         "Check that MEO sends a asynchronous grant response when a grant request is requested"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.6.1.3.1",
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.2.2-1",        //GrantRequest
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.4.2-1"         //Grant
          "ETSI GS MEC 010-2 3.1.1, clause 7.5.1.3.1",
          "ETSI GS MEC 010-2 3.1.1, Table 6.2.4.2.2-1",        //GrantRequest
          "ETSI GS MEC 010-2 3.1.1, Table 6.2.4.4.2-1"         //Grant
          
      Config Id Config_MEC_3
      PICS Selection PIC_GRANTS_MANAGEMENT 
@@ -251,7 +266,10 @@ Package MEC_MEC010p2_MEO_GRANT {
                     appLcmOpOccId set to any_value,
                     appDId set to any_value,
                     operation set to OPERATION_TYPE,   //Shall be one from - OPERATE - TERMINATE
                     _links set to H_LINK
                     _links containing
                     	appLcmOpOcc set to APP_LCM_OP_OCC_LINK,
                     	appInstance set to APP_INSTANCE_LINK
                     ;
               ;
            ;
            ;
@@ -268,6 +286,7 @@ Package MEC_MEC010p2_MEO_GRANT {
      }
   }
   
   
      Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEO_GRANT_005_OK"
      
@@ -275,15 +294,16 @@ Package MEC_MEC010p2_MEO_GRANT {
         "Check that MEO sends the status of a grant request when a query on a granting ID is performed"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.5.2.3.2",
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.4.2-1"
          "ETSI GS MEC 010-2 3.1.1, clause 7.5.2.3.2",
          "ETSI GS MEC 010-2 3.1.1, Table 6.2.4.4.2-1"
          
      Config Id Config_MEC_3
      PICS Selection PIC_GRANTS_MANAGEMENT 

      Initial conditions  with {
         the IUT entity having a grant containing
            id indicating value GRANTING_ID;
            id indicating value GRANTING_ID,
            link indicating value H_LINK;
      }

      Expected behaviour
@@ -296,16 +316,20 @@ Package MEC_MEC010p2_MEO_GRANT {
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "202 Accepted",
               headers containing 
                  Location set to "/granting/v1/grants/{GRANTING_ID}"
               status set to "200 OK",
               body containing
                  Grant containing
                     id set to GRANTING_ID,
                     appInstanceId set to any_value,
                     appLcmOpOccId set to any_value,
                     _links set to H_LINK
                  ;
               ;   
            ; to the MEPM entity
         }
      }
   }


   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEO_GRANT_006_OK"
      
@@ -313,16 +337,14 @@ Package MEC_MEC010p2_MEO_GRANT {
          "Check that MEO sends the status of a grant request when a query on a granting ID is performed"
      
      Reference 
          "ETSI GS MEC 010-2 2.2.1, clause 7.5.2.3.2",
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.4.2-1"
          "ETSI GS MEC 010-2 3.1.1, clause 7.5.2.3.2"
          
      Config Id Config_MEC_3
      PICS Selection PIC_GRANTS_MANAGEMENT 

      Initial conditions  with {
         the IUT entity having a grant containing
            id indicating value GRANTING_ID,
            link indicating value H_LINK;
            id indicating value GRANTING_ID;
      }

      Expected behaviour
@@ -335,20 +357,18 @@ Package MEC_MEC010p2_MEO_GRANT {
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "200 OK",
               body containing
                  Grant containing
                     id set to GRANTING_ID,
                     appInstanceId set to any_value,
                     appLcmOpOccId set to any_value,
                     _links set to H_LINK
                  ;
               status set to "202 Accepted",
               headers containing 
                  Location set to "/granting/v1/grants/{GRANTING_ID}"
               ;
            ; to the MEPM entity
         }
      }
   }   




   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEO_GRANT_006_NF"
      
@@ -356,7 +376,7 @@ Package MEC_MEC010p2_MEO_GRANT {
         "Check that MEO responds with an error when it receives 
         a request for returning a grant referred with a wrong ID"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.2.3.2"
      Reference   "ETSI GS MEC 010-2 3.1.1, clause 7.5.2.3.2"
              
      Config Id Config_MEC_3
      PICS Selection PIC_GRANTS_MANAGEMENT
+113 −103

File changed.

Preview size limit exceeded, changes collapsed.

+11 −8
Original line number Diff line number Diff line
@@ -13,8 +13,8 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM {
         "Check that MEC API provider has created the configuration information in AppD to the MEPM-V"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.7.6.3.1",
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.21.2-1" //ConfigPlatformForAppRequest
          "ETSI GS MEC 010-2 3.1.1, clause 7.7.6.3.1",
          "ETSI GS MEC 010-2 3.1.1, Table 6.2.2.21.2-1" //ConfigPlatformForAppRequest
          
      Config Id Config_MEC_5
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 
@@ -34,7 +34,10 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM {
         }
         then {
             the IUT entity sends a HTTP_RESPONSE containing
                 status set to "202 Accepted"
                 status set to "202 Accepted",
                 headers containing 
                  Location set to "/app_lcm/v1/app_lcm_op_occs/APP_LCM_OP_OCC_ID"
                  ;
              ;
              to the MEO entity
         }
@@ -49,8 +52,8 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM {
            for the configuration information in AppD to the MEPM-V"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.7.6.3.1",
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.21.2-1" //ConfigPlatformForAppRequest
          "ETSI GS MEC 010-2 3.1.1, clause 7.7.6.3.1",
          "ETSI GS MEC 010-2 3.1.1, Table 6.2.2.21.2-1" //ConfigPlatformForAppRequest
          
      Config Id Config_MEC_5
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 
@@ -86,8 +89,8 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM {
            for the configuration information in AppD to the MEPM-V with not valid app instance ID"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.7.6.3.1",
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.21.2-1" //ConfigPlatformForAppRequest
          "ETSI GS MEC 010-2 3.1.1, clause 7.7.6.3.1",
          "ETSI GS MEC 010-2 3.1.1, Table 6.2.2.21.2-1" //ConfigPlatformForAppRequest
          
      Config Id Config_MEC_5
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 
@@ -105,7 +108,7 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM {
                  uri indicating value "/app_lcm/v1/app_instances/{NOT_EXISTING_APP_ID}/configure_platform_for_app",
                  body containing
                  ConfigPlatformForAppRequest containing
                     appServiceWrongRequired set to some_values //Wrong Param
                     appServiceRequired set to some_values
                  ;
               ;
              ;
+72 −78

File changed.

Preview size limit exceeded, changes collapsed.