Commit 1b331eb0 authored by piscione's avatar piscione
Browse files

Fixes on MEC011 TPs.

parent a984b979
Loading
Loading
Loading
Loading
+78 −0
Original line number Diff line number Diff line
@@ -555,4 +555,82 @@ Package MEC_MEC011_SRV_APPSAQ {
   }

   */
   
   Test Purpose {
      TP Id "TP_MEC_MEC011_SRV_APPSAQ_005_OK"

      Test objective
         "Check that the IUT executes the deletion of a service
         for a given application instance when requested by a MEC Application"

      Reference "ETSI GS MEC 011 2.2.1, clause 8.2.7.3.5"

      Config Id Config_MEC_1

      PICS Selection PIC_MEC_PLAT and PIC_SERVICES

      Initial conditions  with {
         the IUT entity being_in idle_state and
         the IUT entity having a apps_instance containing
            instance_id indicating value APP_INSTANCE_ID
         ;
      }

      // MEC 011 2.2.1, clause 5.2.4
      Expected behaviour
         ensure that {
            when {
               the IUT entity receives a vDELETE containing
                  uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}"
               ;
               from the MEC_APP entity
            }
            then {
               // MEC 011 2.2.1, clause 8.2.7.3.2
               the IUT entity sends a HTTP_RESPONSE containing
                  status_code set to "204 No Content"
               ;
               to the MEC_APP entity
            }
         }
   }
   
      Test Purpose {
      TP Id "TP_MEC_MEC011_SRV_APPSAQ_005_NF"

      Test objective
         "Check that the IUT responds with an error when
         a request for deletion of a unknown service is sent by a MEC Application"

      Reference "ETSI GS MEC 011 2.2.1, clause 8.2.7.3.5"

      Config Id Config_MEC_1

      PICS Selection PIC_MEC_PLAT and PIC_SERVICES

      Initial conditions  with {
         the IUT entity being_in idle_state and
         the IUT entity not having a apps_instance containing
            instance_id indicating value APP_INSTANCE_ID
         ;
      }

      // MEC 011 2.2.1, clause 5.2.4
      Expected behaviour
         ensure that {
            when {
               the IUT entity receives a vDELETE containing
                  uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{NON_EXISTENT_SERVICE_ID}"
               ;
               from the MEC_APP entity
            }
            then {
               // MEC 011 2.2.1, clause 8.2.7.3.2
               the IUT entity sends a HTTP_RESPONSE containing
                  status_code set to "404 Not Found"
               ;
               to the MEC_APP entity
            }
         }
   }
}