Commit 24565805 authored by Michele Carignani's avatar Michele Carignani
Browse files

Merge branch 'nxw' into 'master'

Bug fixing on Clause 8.5 of MEC 021

See merge request !21
parents 48d7ea83 74fb9fa4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -485,7 +485,7 @@ Package MEC021_SRV_AMS_BO_BI {
      ensure that {
         when {
            the IUT entity receives a vPOST containing 
               uri indicating value "/amsi/v1/appMobilityServices/{NON_EXISTENT_APP_MOBILITY_SERVICE_ID}"
               uri indicating value "/amsi/v1/appMobilityServices/{NON_EXISTENT_APP_MOBILITY_SERVICE_ID}/deregisterTask"
            ; from the AMS_CLIENT entity
         }
         then {
+1 −182
Original line number Diff line number Diff line
@@ -499,41 +499,6 @@ Package MEC021_SRV_AMS_BV {
      }       
   }


   
   Test Purpose {
      TP Id "TP_MEC_SRV_AMS_011_NF" 
      
      Test objective 
         "Check that the AMS service sends an error when receives a query about a not existing individual application mobility service"
      
      Reference "ETSI GS MEC 021 2.0.10, clause 8.4.3.1"
      
      Config Id Config_MEC_1
      PICS Selection PIC_AMS

      Initial conditions  with {
         the IUT entity "not" having a AppMobilityServiceInfo containing
            appMobilityServiceId indicating value NON_EXISTENT_APP_MOBILITY_SERVICE_ID
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vGET containing 
               uri indicating value "/amsi/v1/appMobilityServices/{NON_EXISTENT_APP_MOBILITY_SERVICE_ID}"
            ; from the AMS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "404 Not Found"
            ; to the AMS_CLIENT entity
         }
      }       
   }   


   Test Purpose {
      TP Id "TP_MEC_SRV_AMS_012_OK" 
      
@@ -584,87 +549,6 @@ Package MEC021_SRV_AMS_BV {
   }


   Test Purpose {
      TP Id "TP_MEC_SRV_AMS_012_NF" 
      
      Test objective 
         "Check that the AMS service sends an error when receives a request to modify a not existing individual application mobility service"
      
      Reference "ETSI GS MEC 021 2.0.10, clause 8.4.3.2"
      
      Config Id Config_MEC_1
      PICS Selection PIC_AMS

      Initial conditions  with {
         the IUT entity "not" having a AppMobilityServiceInfo containing
            appMobilityServiceId indicating value NON_EXISTENT_APP_MOBILITY_SERVICE_ID
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vPUT containing 
               uri indicating value "/amsi/v1/appMobilityServices/{NON_EXISTENT_APP_MOBILITY_SERVICE_ID}",
               body containing
                  RegistrationInfo containing					
                     serviceConsumerId containing
                        appInstanceId set to APP_INS_ID
                     ;
                  ;
               ;
            ; from the AMS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "404 Not Found"
            ; to the AMS_CLIENT entity
         }
      }
   }


   Test Purpose {
      TP Id "TP_MEC_SRV_AMS_012_BR" 
      
      Test objective 
         "Check that the AMS service sends an error when receives a request to modify a individual application mobility service using bad parameters"
      
      Reference "ETSI GS MEC 021 2.0.10, clause 8.4.3.2"
      
      Config Id Config_MEC_1
      PICS Selection PIC_AMS

      Initial conditions  with {
         the IUT entity having a AppMobilityServiceInfo containing
            appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vPUT containing 
               uri indicating value "/amsi/v1/appMobilityServices/{APP_MOBILITY_SERVICE_ID}",
               body containing
                  RegistrationInfo containing					
                     serviceConsumerId containing
                        appId set to APP_INS_ID 	//Should be appInstanteId not appId
                     ;
                  ;
               ;
            ; from the AMS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "400 Bad Request"
            ; to the AMS_CLIENT entity
         }
      }
   }



   Test Purpose {
      TP Id "TP_MEC_SRV_AMS_013_OK" 
      
@@ -699,39 +583,6 @@ Package MEC021_SRV_AMS_BV {
   }
   

   Test Purpose {
      TP Id "TP_MEC_SRV_AMS_013_NF" 
      
      Test objective 
         "Check that the AMS service sends an error when is requested to delete the resource
			that represents the individual application mobility service"
      
      Reference "ETSI GS MEC 021 2.0.10, clause 8.4.3.5"
      
      Config Id Config_MEC_1
      PICS Selection PIC_AMS

      Initial conditions  with {
         the IUT entity "not" having a AppMobilityServiceInfo containing
            appMobilityServiceId indicating value NON_ESISTENT_APP_MOBILITY_SERVICE_ID
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vDELETE containing 
               uri indicating value "/amsi/v1/appMobilityServices/{NON_ESISTENT_APP_MOBILITY_SERVICE_ID}"
            ; from the AMS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "404 Not Found"
            ; to the AMS_CLIENT entity
         }
      }       
   }

   Test Purpose {
      TP Id "TP_MEC_SRV_AMS_014_OK" 
      
@@ -753,7 +604,7 @@ Package MEC021_SRV_AMS_BV {
      ensure that {
         when {
            the IUT entity receives a vPOST containing 
               uri indicating value "/amsi/v1/appMobilityServices/{APP_MOBILITY_SERVICE_ID}"
               uri indicating value "/amsi/v1/appMobilityServices/{APP_MOBILITY_SERVICE_ID}/deregisterTask"
            ; from the AMS_CLIENT entity
         }
         then {
@@ -765,36 +616,4 @@ Package MEC021_SRV_AMS_BV {
   }
   

   Test Purpose {
      TP Id "TP_MEC_SRV_AMS_014_NF" 
      
      Test objective 
         "Check that the AMS service send an error when is requested to deregister a not existent individual application mobility service"
      
      Reference "ETSI GS MEC 021 2.0.10, clause 8.5.3.4"
      
      Config Id Config_MEC_1
      PICS Selection PIC_AMS

      Initial conditions  with {
         the IUT entity "not" having a AppMobilityServiceInfo containing
            appMobilityServiceId indicating value NON_EXISTENT_APP_MOBILITY_SERVICE_ID
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vPOST containing 
               uri indicating value "/amsi/v1/appMobilityServices/{NON_EXISTENT_APP_MOBILITY_SERVICE_ID}"
            ; from the AMS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "404 Not Found"
            ; to the AMS_CLIENT entity
         }
      }       
   }
	
}