Commit b2d730b4 authored by Giada Landi's avatar Giada Landi
Browse files

RNIS queries

parent ed37f07f
Loading
Loading
Loading
Loading
+681 −0
Original line number Diff line number Diff line
/*
Copyright (c) ETSI 2018.

This software is subject to copyrights owned by ETSI. Non-exclusive permission
is hereby granted, free of charge, to copy, reproduce and amend this file
under the following conditions: It is provided "as is", without warranty of any
kind, expressed or implied.

ETSI shall never be liable for any claim, damages, or other liability arising
from its use or inability of use.This permission does not apply to any documentation
associated with this file for which ETSI keeps all rights reserved. The present
copyright notice shall be included in all copies of whole or part of this
file and shall not imply any sub-license right.
*/

Package MEC012_APP_MP1_RNI_QUERY_BO_BI {
   
   import all from MEC_Common;
   
   Test Purpose {
      TP Id "TP_MEC_RNI_QUERY_01_NEG_A"                         // Negative test: 400 Bad request 
      
      Test objective 
         "Check that the RNIS service returns an error when the RAB information is requested with a malformatted message"
      
      Reference "ETSI GS MEC 012 2.0.4, 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 and 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 GET containing 
               uri indicating value "/rni/v1/queries/rab_info",
               query_parameters containing 
                  cId indicating value C_ID					//wrong parameter
               ;
            ; from the RNIS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "400 Bad Request"
            ; to the RNIS_CLIENT entity
         }
      }       
   }   


   Test Purpose {
      TP Id "TP_MEC_RNI_QUERY_01_NEG_B"                         // Negative test: 401 Unauthorized (No token provided) 
      
      Test objective 
         "Check that the RNIS service returns an error when the RAB information is requested without credentials"
      
      Reference "ETSI GS MEC 012 2.0.4, 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 and 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 GET containing
               uri indicating value "/rni/v1/queries/rab_info",
               "not" authorization,
               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 "401 Unauthorized"
            ; to the RNIS_CLIENT entity
         }
      }       
   }
   
   
   Test Purpose {
      TP Id "TP_MEC_RNI_QUERY_01_NEG_C"                         // Negative test: 401 Unauthorized (Invalid token provided) 
      
      Test objective 
         "Check that the RNIS service returns an error when the RAB information is requested with a wrong token"
      
      Reference "ETSI GS MEC 012 2.0.4, 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 and 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 GET containing
               uri indicating value "/rni/v1/queries/rab_info",
               headers set to vHeadersInvalidToken,
               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 "401 Unauthorized"
            ; to the RNIS_CLIENT entity
         }
      }       
   } 
   

   Test Purpose {
      TP Id "TP_MEC_RNI_QUERY_01_NEG_D"                         // Negative test: 404 Not found 
      
      Test objective 
         "Check that the RNIS service returns an error when the RAB information for a not existing element is requested"
      
      Reference "ETSI GS MEC 012 2.0.4, 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 and PIC_RNIS_QUERY

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

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a GET containing
               uri indicating value "/rnis/v1/query/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 "404 Not Found"
            ; to the RNIS_CLIENT entity
         }
      }       
   } 
   
//Removed since not in scope of MEC032 -- only 400, 401 and 404 for individual resources are considered
/*
   Test Purpose {
      TP Id "TP_MEC025_RNI_QUERY_01_NEG_E"                         // Negative test: 406 Not Acceptable 
      
      Test objective 
         "Check that the RNIS service returns an error when the RAB information when requested"
      
      Reference "ETSI GS MEC 012 2.0.3, 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 and PIC_RNIS_QUERY

      Initial conditions  with {
         the IUT entity having a RabInfo containing
            cellId indicating value CELL_USER_INFO
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vGET containing
               uri indicating value "/rni/v1/queries/rab_info",
               headers set to vHeadersAcceptKO,
               query_parameters containing 
                  cellId indicating value CELL_ID
               ;
            ; from the RNIS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "406 Not Acceptable"
            ; to the RNIS_CLIENT entity
         }
      }       
   } 
   *
   */
   
   Test Purpose {
      TP Id "TP_MEC_RNI_QUERY_02_NEG_A"                         // Negative test: 400 Bad request 
      
      Test objective 
         "Check that the RNIS service returns an error when the PLMN information is requested with a malformatted message"
      
      Reference "ETSI GS MEC 012 2.0.4, 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 and 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 GET containing 
               uri indicating value "/rni/v1/queries/plmn_info",
               query_parameters containing 
                  cId indicating value C_ID					//wrong parameter
               ;
            ; from the RNIS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "400 Bad Request"
            ; to the RNIS_CLIENT entity
         }
      }       
   }   


   Test Purpose {
      TP Id "TP_MEC_RNI_QUERY_02_NEG_B"                         // Negative test: 401 Unauthorized (No token provided) 
      
      Test objective 
         "Check that the RNIS service returns an error when the PLMN information is requested without credentials"
      
      Reference "ETSI GS MEC 012 2.0.4, 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 and 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 GET containing
               uri indicating value "/rni/v1/queries/plmn_info",
               "not" authorization,
               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 "401 Unauthorized"
            ; to the RNIS_CLIENT entity
         }
      }       
   }
   
   
   Test Purpose {
      TP Id "TP_MEC_RNI_QUERY_02_NEG_C"                         // Negative test: 401 Unauthorized (Invalid token provided) 
      
      Test objective 
         "Check that the RNIS service returns an error when the PLMN information is requested with a wrong token"
      
      Reference "ETSI GS MEC 012 2.0.4, 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 and 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 GET containing
               uri indicating value "/rni/v1/queries/plmn_info",
               headers set to vHeadersInvalidToken,
               query_parameters containing 
                  appInstanceId indicating value APP_INSTANCE_INFO
               ;
            ; from the RNIS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized"
            ; to the RNIS_CLIENT entity
         }
      }       
   } 
   

   Test Purpose {
      TP Id "TP_MEC_RNI_QUERY_02_NEG_D"                         // Negative test: 404 Not found 
      
      Test objective 
         "Check that the RNIS service returns an error when the PLMN information for a not existing element is requested"
      
      Reference "ETSI GS MEC 012 2.0.4, 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 and PIC_RNIS_QUERY

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

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a GET containing
               uri indicating value "/rnis/v1/query/plmn_info",
               query_parameters containing 
                  appInstanceId indicating value APP_INSTANCE_INFO
               ;
            ; from the RNIS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "404 Not Found"
            ; to the RNIS_CLIENT entity
         }
      }       
   }
   
   Test Purpose {
      TP Id "TP_MEC_RNI_QUERY_03_NEG_A"                         // Negative test: 400 Bad request 
      
      Test objective 
         "Check that the RNIS service returns an error when the S1 bearer information is requested with a malformatted message"
      
      Reference "ETSI GS MEC 012 2.0.4, 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 and 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 GET containing 
               uri indicating value "/rni/v1/queries/s1_bearer_info",
               query_parameters containing 
                  cId indicating value C_ID					//wrong parameter
               ;
            ; from the RNIS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "400 Bad Request"
            ; to the RNIS_CLIENT entity
         }
      }       
   }   


   Test Purpose {
      TP Id "TP_MEC_RNI_QUERY_03_NEG_B"                         // Negative test: 401 Unauthorized (No token provided) 
      
      Test objective 
         "Check that the RNIS service returns an error when the S1 bearer information is requested without credentials"
      
      Reference "ETSI GS MEC 012 2.0.4, 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 and 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 GET containing
               uri indicating value "/rni/v1/queries/s1_bearer_info",
               "not" authorization,
               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 "401 Unauthorized"
            ; to the RNIS_CLIENT entity
         }
      }       
   }
   
   
   Test Purpose {
      TP Id "TP_MEC_RNI_QUERY_03_NEG_C"                         // Negative test: 401 Unauthorized (Invalid token provided) 
      
      Test objective 
         "Check that the RNIS service returns an error when the S1 bearer information is requested with a wrong token"
      
      Reference "ETSI GS MEC 012 2.0.4, 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 and 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 GET containing
               uri indicating value "/rni/v1/queries/s1_bearer_info",
               headers set to vHeadersInvalidToken,
               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 "401 Unauthorized"
            ; to the RNIS_CLIENT entity
         }
      }       
   } 
   

   Test Purpose {
      TP Id "TP_MEC_RNI_QUERY_03_NEG_D"                         // Negative test: 404 Not found 
      
      Test objective 
         "Check that the RNIS service returns an error when the S1 bearer information for a not existing element is requested"
      
      Reference "ETSI GS MEC 012 2.0.4, 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 and PIC_RNIS_QUERY

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

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a GET containing
               uri indicating value "/rnis/v1/query/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 "404 Not Found"
            ; to the RNIS_CLIENT entity
         }
      }       
   }
   
      Test Purpose {
      TP Id "TP_MEC_RNI_QUERY_04_NEG_A"                         // Negative test: 400 Bad request 
      
      Test objective 
         "Check that the RNIS service returns an error when the L2 measurements information is requested with a malformatted message"
      
      Reference "ETSI GS MEC 012 2.0.4, 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 and 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 GET containing 
               uri indicating value "/rni/v1/queries/layer2_meas",
               query_parameters containing 
                  cId indicating value C_ID					//wrong parameter
               ;
            ; from the RNIS_CLIENT entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "400 Bad Request"
            ; to the RNIS_CLIENT entity
         }
      }       
   }   


   Test Purpose {
      TP Id "TP_MEC_RNI_QUERY_04_NEG_B"                         // Negative test: 401 Unauthorized (No token provided) 
      
      Test objective 
         "Check that the RNIS service returns an error when the L2 measurements information is requested without credentials"
      
      Reference "ETSI GS MEC 012 2.0.4, 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 and 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 GET containing
               uri indicating value "/rni/v1/queries/layer2_meas",
               "not" authorization,
               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 "401 Unauthorized"
            ; to the RNIS_CLIENT entity
         }
      }       
   }
   
   
   Test Purpose {
      TP Id "TP_MEC_RNI_QUERY_04_NEG_C"                         // Negative test: 401 Unauthorized (Invalid token provided) 
      
      Test objective 
         "Check that the RNIS service returns an error when the L2 measurements information is requested with a wrong token"
      
      Reference "ETSI GS MEC 012 2.0.4, 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 and 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 GET containing
               uri indicating value "/rni/v1/queries/layer2_meas",
               headers set to vHeadersInvalidToken,
               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 "401 Unauthorized"
            ; to the RNIS_CLIENT entity
         }
      }       
   } 
   

   Test Purpose {
      TP Id "TP_MEC_RNI_QUERY_04_NEG_D"                         // Negative test: 404 Not found 
      
      Test objective 
         "Check that the RNIS service returns an error when the L2 measurements information for a not existing element is requested"
      
      Reference "ETSI GS MEC 012 2.0.4, 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 and PIC_RNIS_QUERY

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

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a GET containing
               uri indicating value "/rnis/v1/query/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 "404 Not Found"
            ; to the RNIS_CLIENT entity
         }
      }       
   }
   
}
 No newline at end of file
+0 −207

File deleted.

Preview size limit exceeded, changes collapsed.