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

Merge branch 'nxw' into 'master'

Fixing typo on tp id on GRANT

See merge request !16
parents 390c04ae ae6170f1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ Package MEC010_2_MEO_GRANT_BI {
   }   
 
   Test Purpose {
      TP Id "TP_MEC_MEO_GRANTS_003_NF"         //Negative case 404 Not found
      TP Id "TP_MEC_MEO_GRANT_003_NF"         //Negative case 404 Not found
      
      Test objective 
         "Check that MEO responds with an error when it receives 
+14 −74
Original line number Diff line number Diff line
@@ -395,7 +395,7 @@ Package MEC010_2_APP_INSTANCE_LCM {
      Test objective 
         "Check that MEC API provider service retrieves info about LCM Operation Occurrency on an App Instance when requested"
      
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.10.1.3.2",
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.10.3.2",
                    "ETSI GS MEC 010-2 2.0.10, table 6.2.2.14.2-1" // AppLcmOpOcc 
      
      Config Id Config_MEC_6
@@ -419,7 +419,6 @@ Package MEC010_2_APP_INSTANCE_LCM {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "200 OK",
               body containing
                  AppLcmOpOccList containing
                  AppInstanceLcmOpOcc containing
                     appLcmOpOccId set to APP_LCM_OP_OCC_ID,
                     operationState set to any_value,
@@ -432,7 +431,6 @@ Package MEC010_2_APP_INSTANCE_LCM {
                     ;
                  ;
               ;
               ;
            ; to the MEC_CONSUMER entity
         }
      }       
@@ -526,6 +524,7 @@ Package MEC010_2_APP_INSTANCE_LCM {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "200 OK",
               body containing
                  SubscriptionInfoList containing
                     SubscriptionInfo containing
	                    subscriptionId set to SUBSCRIPTION_ID,
                        subscriptionType set to SUBSCRIPTION_TYPE,
@@ -534,6 +533,7 @@ Package MEC010_2_APP_INSTANCE_LCM {
                     ;
                  ;
               ;
            ;         
            to the MEC_CONSUMER entity
         }
      }
@@ -626,64 +626,4 @@ Package MEC010_2_APP_INSTANCE_LCM {



   Test Purpose {

      TP Id "TP_MEC_MEX_INSM_WORKFLOW"
      
      Test objective 
         "Check that MEC API provider instantiates a new application when requested"
      
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.1.3.1"

      Config Id Config_MEC_6
      PICS Selection PIC_APP_LCM_MANAGEMENT

      Initial conditions  with {
         the IUT entity being_in idle_state
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vPOST containing 
               uri indicating value "/alcmi/v1/app_instances",
               body containing
                  CreateAppInstanceRequest containing
                     appDId set to APPD_ID
                  ;
               ;
            ; from the MEC_CONSUMER entity
         }
         then {
            the IUT entity sends a vPOST containing
               uri indicating value "/alcmi/v1/app_instances",
               body containing 
                  CreateAppInstanceRequest containing 	//Info model not yet defined
                  	appDId set to APPD_ID
                  ;
               ;
            ; to the MEPM entity
            and
               the IUT entity receives a HTTP_RESPONSE containing
                  status set to "201 Created",      // REST API not yet defined. Response should be 201, but should be checked when REST API is ready 
	              body containing 
	                 INSTANCE_ID_TBD set to INSTANCE_ID
	              ;
	           ;  from the MEPM entity
	        and
	           the IUT entity sends a HTTP_RESPONSE containing
	              status set to "201 Created"
	              body containing
	                 AppInstanceInfo containing
	                    appInstanceId set to any_value,
	                    appDId set to APP_D_ID,
	                    appPkgId set to any_value,
	                    instantiationState set to NOT_INSTANTIATED 
	                    
	                 ;
	              ;
	           ; to the MEC_CONSUMER entity
         } 
      }       
   }
}
+184 −0
Original line number Diff line number Diff line
@@ -313,4 +313,188 @@ Package MEC021_SRV_AMS_BO_BI {
      }       
   }
   
   
   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_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_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_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
         }
      }       
   }
		
	
}
+343 −5
Original line number Diff line number Diff line
@@ -48,11 +48,13 @@ Package MEC021_SRV_AMS_BV {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "200 OK",
               body containing
                  AppMobilityServiceInfoList containing
                     AppMobilityServiceInfo containing
            		    appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID,
            		    attribute registeredAppMobilityService
            		 ;
            	  ;
               ;
            ; to the AMS_CLIENT entity
         }
      }       
@@ -79,7 +81,7 @@ Package MEC021_SRV_AMS_BV {
            the IUT entity receives a vPOST containing 
               uri indicating value "/amsi/v1/appMobilityServices",
               body containing
                  RegistrationRequest containing					//Note: at the moment the only element that is defined is RegistrationInfo. Not sure if they are the same.
                  RegistrationInfo containing					
                     serviceConsumerId containing
                        appInstanceId set to APP_INS_ID
                     ;
@@ -459,4 +461,340 @@ Package MEC021_SRV_AMS_BV {
      }
   }
	
   Test Purpose {
      TP Id "TP_MEC_SRV_AMS_011_OK" 
      
      Test objective 
         "Check that the AMS service returns information about this 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 having a AppMobilityServiceInfo containing
            appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vGET containing 
               uri indicating value "/amsi/v1/appMobilityServices/{APP_MOBILITY_SERVICE_ID}"
            ; from the AMS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "200 OK",
               body containing
                  AppMobilityServiceInfo containing
                     appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID,
                     attribute registeredAppMobilityService
            	  ;
               ;
            ; to the AMS_CLIENT entity
         }
      }       
   }


   
   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" 
      
      Test objective 
         "Check that the AMS service modifies the individual application mobility service when requested"
      
      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
                        appInstanceId set to APP_INS_ID
                     ;
                  ;
               ;
            ; from the AMS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "200 OK",
               body containing
                  AppMobilityServiceInfo containing
                     appMobilityServiceId set to any_value,
                     registeredAppMobilityService containing
		                serviceConsumerId containing
                           appInstanceId set to APP_INS_ID
                        ;
                     ;
            	  ;
               ;
            ; to the AMS_CLIENT entity
         }
      }       
   }


   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" 
      
      Test objective 
         "Check that the AMS service de-register the individual application mobility service and 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 having a AppMobilityServiceInfo containing
            appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vDELETE containing 
               uri indicating value "/amsi/v1/appMobilityServices/{APP_MOBILITY_SERVICE_ID}"
            ; from the AMS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "204 No Content"
            ; to the AMS_CLIENT entity
         }
      }       
   }
   

   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" 
      
      Test objective 
         "Check that the AMS service deregister an individual application mobility service on expiry of the timer associated with the 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 having a AppMobilityServiceInfo containing
            appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vPOST containing 
               uri indicating value "/amsi/v1/appMobilityServices/{APP_MOBILITY_SERVICE_ID}"
            ; from the AMS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "204 No Content"
            ; to the AMS_CLIENT entity
         }
      }       
   }
   
   	
   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
         }
      }       
   }
	
}
+2 −2
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ Package MEC012_SRV_RNIS_SUBS_BI {
      ensure that {
         when {
            the IUT entity receives a vGET containing
               uri indicating value "/rni/v1/subscriptions",
               uri indicating value "/rni/v2/subscriptions",
               query_parameters containing
                  subscriptionType indicating value "wrongSubscriptionType"	//wrong subscription type
               ;
@@ -72,7 +72,7 @@ Package MEC012_SRV_RNIS_SUBS_BI {
      ensure that {
         when {
            the IUT entity receives a vPOST containing
               uri indicating value "/rni/v1/subscriptions",
               uri indicating value "/rni/v2/subscriptions",
               body containing
                  CellChangeSubscription containing
                     subscritionType indicating value "CelCangeSubscription",	//wrong subscription type 
Loading