Commit 3fa5d8ca authored by Gabriele Scivoletto's avatar Gabriele Scivoletto
Browse files

merged TPs in a single file

parent 10bc93d4
Loading
Loading
Loading
Loading
+78 −3
Original line number Diff line number Diff line
@@ -3,10 +3,84 @@ Copyright (c) ETSI 2018-2023.
Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters
*/

Package MEC_MEC012_SRV_RNIS_SUBS_BV {
Package MEC_MEC012_SRV_RNIS_SUBS {
   
   import all from MEC_Common;

   Test Purpose {
      TP Id "TP_MEC_MEC012_SRV_RNIS_011_BR"       // Negative test: Trying to get a 400 Bad Request using incorrect parameters (Not existent subscriptionType)
      
      Test objective 
         "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions with a wrong subscription type"
      
      Reference "ETSI GS MEC 012 2.2.1, clause 7.6.3.1", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml"
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS_ALL_SUBSCRIPTIONS

      Initial conditions  with {
         the IUT entity having a RNIS_subscription containing
            subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE,
            subscriptionType indicating value SUBSCRIPTION_TYPE
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vGET containing
               uri indicating value "/rni/v2/subscriptions",
               query_parameters containing
                  subscriptionType indicating value "wrongSubscriptionType"	//wrong subscription type
               ;
            ; from the MEC_SUB entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "400 Bad Request"
            ; to the MEC_SUB entity
         }
      }       
   }
 
   Test Purpose {
      TP Id "TP_MEC_MEC012_SRV_RNIS_012_BR"                      // 400 Bad Request
      
      Test objective 
         "Check that the RNIS service responds with an error when it receives a request to create a new RNIS subscription with a wrong format"
      
      Reference "ETSI GS MEC 012 2.2.1, clause 7.6.3.4", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription"
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS_ALL_SUBSCRIPTIONS

      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 "/rni/v2/subscriptions",
               body containing
                  CellChangeSubscription containing
                     subscritionType indicating value "CelCangeSubscription",	//wrong subscription type 
                     callbackReference indicating value any_value,
                     attribute filterCriteriaAssocHo,
                     expiryDeadline set to any_value
                  ;
               ; 
            ; from the MEC_SUB entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "400 Bad Request"
            ; to the MEC_SUB entity
         }
      }       
   }

   Test Purpose {
      TP Id "TP_MEC_MEC012_SRV_RNIS_011_OK"
      
@@ -113,4 +187,5 @@ Package MEC_MEC012_SRV_RNIS_SUBS_BV {
         }
      }       
   }

}
+0 −84
Original line number Diff line number Diff line
/*
Copyright (c) ETSI 2018-2023.
Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters
*/

Package MEC_MEC012_SRV_RNIS_SUBS_BI {
   
   import all from MEC_Common;

   Test Purpose {
      TP Id "TP_MEC_MEC012_SRV_RNIS_011_BR"       // Negative test: Trying to get a 400 Bad Request using incorrect parameters (Not existent subscriptionType)
      
      Test objective 
         "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions with a wrong subscription type"
      
      Reference "ETSI GS MEC 012 2.2.1, clause 7.6.3.1", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml"
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS_ALL_SUBSCRIPTIONS

      Initial conditions  with {
         the IUT entity having a RNIS_subscription containing
            subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE,
            subscriptionType indicating value SUBSCRIPTION_TYPE
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vGET containing
               uri indicating value "/rni/v2/subscriptions",
               query_parameters containing
                  subscriptionType indicating value "wrongSubscriptionType"	//wrong subscription type
               ;
            ; from the MEC_SUB entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "400 Bad Request"
            ; to the MEC_SUB entity
         }
      }       
   }
 
   Test Purpose {
      TP Id "TP_MEC_MEC012_SRV_RNIS_012_BR"                      // 400 Bad Request
      
      Test objective 
         "Check that the RNIS service responds with an error when it receives a request to create a new RNIS subscription with a wrong format"
      
      Reference "ETSI GS MEC 012 2.2.1, clause 7.6.3.4", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription"
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS_ALL_SUBSCRIPTIONS

      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 "/rni/v2/subscriptions",
               body containing
                  CellChangeSubscription containing
                     subscritionType indicating value "CelCangeSubscription",	//wrong subscription type 
                     callbackReference indicating value any_value,
                     attribute filterCriteriaAssocHo,
                     expiryDeadline set to any_value
                  ;
               ; 
            ; from the MEC_SUB entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "400 Bad Request"
            ; to the MEC_SUB entity
         }
      }       
   }

}
+184 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ Copyright (c) ETSI 2018-2023.
Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters
*/

Package MEC_MEC012_SRV_RNIS_QUERY_BI {
Package MEC_MEC012_SRV_RNIS_QUERY {
   
   import all from MEC_Common;
   
@@ -308,4 +308,187 @@ Package MEC_MEC012_SRV_RNIS_QUERY_BI {
      }       
   }

   Test Purpose {
      TP Id "TP_MEC_MEC012_SRV_RNIS_016_OK" 
      
      Test objective 
         "Check that the RNIS service returns the RAB information when requested"
      
      Reference "ETSI GS MEC 012 2.2.1, clause 7.3.3.1", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo"
      
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS_QUERY

      Initial conditions with {
         the IUT entity having a RabInfo containing
            cellUserInfo containing
            	ecgi indicating value CELL_ID
            ;
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vGET containing 
               uri indicating value "/rni/v2/queries/rab_info",
               query_parameters containing 
                  cell_id indicating value CELL_ID
               ;
            ; from the RNIS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "200 OK",
               body containing 
                  RabInfo containing
                    appInstanceId set to any_value,
                    requestId set to any_value,
            		cellUserInfo containing
            		  ecgi indicating value CELL_ID,
            		  attribute ueInfo
            		;
            	  ;
               ;
            ; to the RNIS_CLIENT entity
         }
      }       
   }
   

   Test Purpose {
      TP Id "TP_MEC_MEC012_SRV_RNIS_017_OK" 
      
      Test objective 
         "Check that the RNIS service returns the PLMN information when requested"
      
      Reference "ETSI GS MEC 012 2.2.1, clause 7.4.3.1", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/PlmnInfo"
      
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS_QUERY

      Initial conditions with {
         the IUT entity having a PlmnInfo containing
            appInstanceId indicating value APP_INSTANCE_INFO
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vGET containing 
               uri indicating value "/rni/v2/queries/plmn_info",
               query_parameters containing 
                  app_ins_id indicating value APP_INS_ID
               ;
            ; from the RNIS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "200 OK",
               body containing 
                  PlmnInfo containing 
                  	appInstanceId indicating value APP_INS_ID,
                  	attribute plmn
                  ;
               ;
            ; to the RNIS_CLIENT entity
         }
      }       
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEC012_SRV_RNIS_018_OK"
      
      Test objective 
         "Check that the RNIS service returns the S1 bearer information"
      
      Reference "ETSI GS MEC 012 2.2.1, clause 7.5.3.1", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/S1BearerInfo"
      
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS_QUERY

      Initial conditions with {
         the IUT entity having a S1BearerInfo containing
            s1UeInfo containing 
              ecgi indicating value CELL_ID
            ;
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vGET containing 
               uri indicating value "/rni/v2/queries/s1_bearer_info",
               query_parameters containing 
                  cell_id indicating value CELL_ID
               ;
            ; from the RNIS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "200 OK",
               body containing 
                  S1BearerInfo containing
                     s1UeInfo containing
                        attribute tempUeId,
                        attribute associateId,
                  	    ecgi indicating value CELL_ID,
                  	    attribute s1BearerInfoDetailed
                  	 ;
                  ;
               ;
            ; to the RNIS_CLIENT entity
         }
      }       
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEC012_SRV_RNIS_019_OK"
      
      Test objective 
         "Check that the RNIS service returns the L2 measurements information"
      
      Reference "ETSI GS MEC 012 2.2.1, clause 7.5a.3.1", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml"		//TODO: not yet available in OpenAPI spec. To be added later
      
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS_QUERY

      Initial conditions with {
         the IUT entity having a L2_Meas_information containing
            cellInfo containing
              ecgi indicating value CELL_ID
            ;
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vGET containing 
               uri indicating value "/rni/v2/queries/layer2_meas",
               query_parameters containing 
                  cell_id indicating value CELL_ID
               ;
            ; from the RNIS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "200 OK",
               body containing 
                  L2_Meas_information containing
            		cellInfo containing
              		  ecgi indicating value CELL_ID
            		;
                  ;
               ;
            ; to the RNIS_CLIENT entity
         }
      }       
   }
}
+0 −193
Original line number Diff line number Diff line
/*
Copyright (c) ETSI 2018-2023.
Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters
*/

Package MEC_MEC012_SRV_RNIS_QUERY_BV {
   
   import all from MEC_Common;
   
   Test Purpose {
      TP Id "TP_MEC_MEC012_SRV_RNIS_016_OK" 
      
      Test objective 
         "Check that the RNIS service returns the RAB information when requested"
      
      Reference "ETSI GS MEC 012 2.2.1, clause 7.3.3.1", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo"
      
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS_QUERY

      Initial conditions with {
         the IUT entity having a RabInfo containing
            cellUserInfo containing
            	ecgi indicating value CELL_ID
            ;
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vGET containing 
               uri indicating value "/rni/v2/queries/rab_info",
               query_parameters containing 
                  cell_id indicating value CELL_ID
               ;
            ; from the RNIS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "200 OK",
               body containing 
                  RabInfo containing
                    appInstanceId set to any_value,
                    requestId set to any_value,
            		cellUserInfo containing
            		  ecgi indicating value CELL_ID,
            		  attribute ueInfo
            		;
            	  ;
               ;
            ; to the RNIS_CLIENT entity
         }
      }       
   }
   

   Test Purpose {
      TP Id "TP_MEC_MEC012_SRV_RNIS_017_OK" 
      
      Test objective 
         "Check that the RNIS service returns the PLMN information when requested"
      
      Reference "ETSI GS MEC 012 2.2.1, clause 7.4.3.1", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/PlmnInfo"
      
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS_QUERY

      Initial conditions with {
         the IUT entity having a PlmnInfo containing
            appInstanceId indicating value APP_INSTANCE_INFO
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vGET containing 
               uri indicating value "/rni/v2/queries/plmn_info",
               query_parameters containing 
                  app_ins_id indicating value APP_INS_ID
               ;
            ; from the RNIS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "200 OK",
               body containing 
                  PlmnInfo containing 
                  	appInstanceId indicating value APP_INS_ID,
                  	attribute plmn
                  ;
               ;
            ; to the RNIS_CLIENT entity
         }
      }       
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEC012_SRV_RNIS_018_OK"
      
      Test objective 
         "Check that the RNIS service returns the S1 bearer information"
      
      Reference "ETSI GS MEC 012 2.2.1, clause 7.5.3.1", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/S1BearerInfo"
      
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS_QUERY

      Initial conditions with {
         the IUT entity having a S1BearerInfo containing
            s1UeInfo containing 
              ecgi indicating value CELL_ID
            ;
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vGET containing 
               uri indicating value "/rni/v2/queries/s1_bearer_info",
               query_parameters containing 
                  cell_id indicating value CELL_ID
               ;
            ; from the RNIS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "200 OK",
               body containing 
                  S1BearerInfo containing
                     s1UeInfo containing
                        attribute tempUeId,
                        attribute associateId,
                  	    ecgi indicating value CELL_ID,
                  	    attribute s1BearerInfoDetailed
                  	 ;
                  ;
               ;
            ; to the RNIS_CLIENT entity
         }
      }       
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEC012_SRV_RNIS_019_OK"
      
      Test objective 
         "Check that the RNIS service returns the L2 measurements information"
      
      Reference "ETSI GS MEC 012 2.2.1, clause 7.5a.3.1", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml"		//TODO: not yet available in OpenAPI spec. To be added later
      
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS_QUERY

      Initial conditions with {
         the IUT entity having a L2_Meas_information containing
            cellInfo containing
              ecgi indicating value CELL_ID
            ;
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vGET containing 
               uri indicating value "/rni/v2/queries/layer2_meas",
               query_parameters containing 
                  cell_id indicating value CELL_ID
               ;
            ; from the RNIS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "200 OK",
               body containing 
                  L2_Meas_information containing
            		cellInfo containing
              		  ecgi indicating value CELL_ID
            		;
                  ;
               ;
            ; to the RNIS_CLIENT entity
         }
      }       
   }
}
+147 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
Copyright (c) ETSI 2018-2023.
Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters
*/
Package MEC_MEC012_SRV_RNIS_SUB_BI {
Package MEC_MEC012_SRV_RNIS_SUB {
   
   import all from MEC_Common;

@@ -157,4 +157,150 @@ Package MEC_MEC012_SRV_RNIS_SUB_BI {
      }       
   }

   Test Purpose {
      TP Id "TP_MEC_MEC012_SRV_RNIS_013_OK"
      
      Test objective
         "Check that the RNIS service sends a RNIS subscription when requested.
          Acceptable SUBSCRIPTION_TYPE are the following:
          - CellChangeSubscription
          - RabEstSubscription
          - RabModSubscription
          - RabRelSubscription
          - MeasRepUeSubscription
          - MeasTaSubscription
          - CaReconfSubscription
          - S1BearerSubscription
          - NrMeasRepUeSubscription"
      
      Reference "ETSI GS MEC 012 2.2.1, clause 7.8.3.1"
      
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS_SPECIFIC_SUBSCRIPTION

      Initial conditions  with {
         the IUT entity having a RNIS_subscription containing 
            subscriptionType indicating value SUBSCRIPTION_TYPE,
            callbackReference indicating value CALLBACK_URI,
            _links containing
               self set to "/rni/v2/subscriptions/{SUBSCRIPTION_ID}"
            ;
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vGET containing
               uri indicating value "/rni/v2/subscriptions/{SUBSCRIPTION_ID}"
            ; from the MEC_SUB entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "200 OK",
               body containing
                  subscription containing
                     subscriptionType indicating value SUBSCRIPTION_TYPE,
                     callbackReference indicating value CALLBACK_URI,
                     _links containing
                        self set to "/rni/v2/subscriptions/{SUBSCRIPTION_ID}"
                     ;
                  ;
               ;
            ; to the MEC_SUB entity
         }
      }       
   }
         

   Test Purpose {
      TP Id "TP_MEC_MEC012_SRV_RNIS_014_OK"
      
      Test objective 
         "Check that the RNIS service modifies a RNIS subscription when requested"
      
      Reference "ETSI GS MEC 012 2.2.1, clause 7.8.3.2"
      
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS_SPECIFIC_SUBSCRIPTION

      Initial conditions  with {
         the IUT entity having a RNIS_subscription containing 
            subscriptionType indicating value SUBSCRIPTION_TYPE,
            callbackReference indicating value CALLBACK_URI,
            _links containing
               self set to "/rni/v2/subscriptions/{SUBSCRIPTION_ID}"
            ;
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vPUT containing
               uri indicating value "/rni/v2/subscriptions/{SUBSCRIPTION_ID}",
               body containing
                  subscription containing
                     subscriptionType indicating value SUBSCRIPTION_TYPE,
                     callbackReference indicating value NEW_CALLBACK_URI,
                     _links containing
                        self set to "/rni/v2/subscriptions/{SUBSCRIPTION_ID}"
                     ;
                  ;
               ;
            ; from the MEC_SUB entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "200 OK",
               body containing
                  subscription containing
                     subscriptionType indicating value SUBSCRIPTION_TYPE,
                     callbackReference indicating value NEW_CALLBACK_URI,
                     _links containing
                        self set to "/rni/v2/subscriptions/{SUBSCRIPTION_ID}"
                     ;
                  ;
               ;
            ; to the MEC_SUB entity
         }
      }       
   }



   Test Purpose {
      TP Id "TP_MEC_MEC012_SRV_RNIS_015_OK"
      
      Test objective 
         "Check that the RNIS service deletes a RNIS subscription when requested"
      
      Reference "ETSI GS MEC 012 2.2.1, clause 7.8.3.5"
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS_SPECIFIC_SUBSCRIPTION

      Initial conditions  with {
         the IUT entity having a RNIS_subscription containing 
            callbackReference indicating value CALLBACK_URI,
            _links containing
               self set to "/rni/v2/subscriptions/{SUBSCRIPTION_ID}"
            ;
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vDELETE containing
               uri indicating value "/rni/v2/subscriptions/{SUBSCRIPTION_ID}"
            ; from the MEC_SUB entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "204 No Content"
            ; to the MEC_SUB entity
         }
      }       
   }
  
}
Loading