Commit 0c64d833 authored by Giada Landi's avatar Giada Landi
Browse files

RNIS - subscriptions resource

parent b8936897
Loading
Loading
Loading
Loading
+190 −187
Original line number Diff line number Diff line
@@ -18,13 +18,13 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI {
   import all from MEC_Common;

   Test Purpose {
      TP Id "TP_MEC025_RNI_SUBSCRIPTION_05_NEG_A"       // Negative test: Trying to get a 400 Bad Request using incorrect parameters (Not existent subscriptionType)
      TP Id "TP_MEC_RNI_SUBSCRIPTION_01_NEG_A"       // 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"
         "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 1.1.1, clause 7.6.3.1", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription"
      Reference "ETSI GS MEC 012 2.0.4, 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 and PIC_RNIS_ALL_SUBSCRIPTIONS

@@ -41,7 +41,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI {
            the IUT entity receives a vGET containing
               uri indicating value "/rni/v1/subscriptions",
               query_parameters containing
                  subscriptionType indicating value "wrongSubscriptionType"
                  subscriptionType indicating value "wrongSubscriptionType"	//wrong subscription type
               ;
            ; from the MEC_SUB entity
         }
@@ -55,13 +55,13 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI {
   

   Test Purpose {
      TP Id "TP_MEC025_RNI_SUBSCRIPTION_05_NEG_B"       // Negative test: Trying to get a 401 Unauthorized (Client did not submit credentials)
      TP Id "TP_MEC_RNI_SUBSCRIPTION_01_NEG_B"       // Negative test: Trying to get a 401 Unauthorized (Client did not submit credentials)
      
      Test objective 
         "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions"
         "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions of a given type without submitting credentials"
      
      Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription"
      Reference "ETSI GS MEC 012 2.0.4, 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 and PIC_RNIS_ALL_SUBSCRIPTIONS

@@ -94,13 +94,13 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI {
   
   
   Test Purpose {
      TP Id "TP_MEC025_RNI_SUBSCRIPTION_05_NEG_C"       // Negative test: Trying to get a 401 Unauthorized (Invalid token)
      TP Id "TP_MEC_RNI_SUBSCRIPTION_01_NEG_C"       // Negative test: Trying to get a 401 Unauthorized (Invalid token)
      
      Test objective 
         "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions"
         "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions of a given type submitting a wrong token"
      
      Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription"
      Reference "ETSI GS MEC 012 2.0.4, 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 and PIC_RNIS_ALL_SUBSCRIPTIONS

@@ -131,81 +131,83 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI {
      }       
   }
      
   Test Purpose {
      TP Id "TP_MEC025_RNI_SUBSCRIPTION_05_NEG_D"       // Negative test: 404 Not found
      
      Test objective 
         "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions"
      
      Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription"
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS

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

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vGET containing
               uri indicating value "/rni/v1/subscrition",                       // Wrong URI
               query_parameters containing
                  subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE,
                  subscriptionType indicating value "CellChangeSubscription"
               ;
            ; from the MEC_SUB entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "404 Not Found"
            ; to the MEC_SUB entity
         }
      }       
   }
   
 
   Test Purpose {
      TP Id "TP_MEC025_RNI_SUBSCRIPTION_05_NEG_E"       // Negative test: 406 Not acceptable. Using Accept header as application/octet-stream
      
      Test objective 
         "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions"
//Removed since not related to an individual resource
//   Test Purpose {
//      TP Id "TP_MEC_RNI_SUBSCRIPTION_01_NEG_D"       // Negative test: 404 Not found
//      
//      Test objective 
//         "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions of a given type, "
//      
//      Reference "ETSI GS MEC 012 2.0.4, 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 and PIC_RNIS_ALL_SUBSCRIPTIONS
//
//      Initial conditions  with {
//         the IUT entity having a RNIS_subscription containing
//            subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE,
//            subscriptionType indicating value "CellChangeSubscription"
//         ;
//      }

      Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription"
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS
//      Expected behaviour
//      ensure that {
//         when {
//            the IUT entity receives a vGET containing
//               uri indicating value "/rni/v1/subscrition",                       // Wrong URI
//               query_parameters containing
//                  subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE,
//                  subscriptionType indicating value "CellChangeSubscription"
//               ;
//            ; from the MEC_SUB entity
//         }
//         then {
//            the IUT entity sends a HTTP_RESPONSE containing
//               status set to "404 Not Found"
//            ; to the MEC_SUB entity
//         }
//      }       
//   }
   
      Initial conditions  with {
         the IUT entity having a RNIS_subscription containing
            subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE,
            subscriptionType indicating value "CellChangeSubscription"
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vGET containing
               uri indicating value "/rni/v1/subscriptions",
               headers set to vHeadersAcceptKO,
               query_parameters containing
                  subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE,
                  subscriptionType indicating value "CellChangeSubscription"
               ;
            ; from the MEC_SUB entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "406 Not Acceptable"
            ; to the MEC_SUB 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_SUBSCRIPTION_05_NEG_E"       // Negative test: 406 Not acceptable. Using Accept header as application/octet-stream
//      
//      Test objective 
//         "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions"
//      
//      Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", 
//         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription"
//      Config Id Config_MEC_1
//      PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS
//
//      Initial conditions  with {
//         the IUT entity having a RNIS_subscription containing
//            subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE,
//            subscriptionType indicating value "CellChangeSubscription"
//         ;
//      }
//
//      Expected behaviour
//      ensure that {
//         when {
//            the IUT entity receives a vGET containing
//               uri indicating value "/rni/v1/subscriptions",
//               headers set to vHeadersAcceptKO,
//               query_parameters containing
//                  subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE,
//                  subscriptionType indicating value "CellChangeSubscription"
//               ;
//            ; from the MEC_SUB entity
//         }
//         then {
//            the IUT entity sends a HTTP_RESPONSE containing
//               status set to "406 Not Acceptable"
//            ; to the MEC_SUB entity
//         }
//      }       
//   }
   
//   Test Purpose {
//      TP Id "TP_MEC025_RNI_SUBSCRIPTION_05_NEG_F"       // Negative test: 403 Forbidden. 
@@ -254,12 +256,12 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI {
 
 
   Test Purpose {
      TP Id "TP_MEC025_RNI_SUBSCRIPTION_01_NEG_A"                      // 400 Bad Request
      TP Id "TP_MEC_RNI_SUBSCRIPTION_02_NEG_A"                      // 400 Bad Request
      
      Test objective 
         "Check that the RNIS service responds with an error when a request to create a new RNIS subscription is done"
         "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 1.1.1, clause 7.6.3.4", 
      Reference "ETSI GS MEC 012 2.0.4, 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 and PIC_RNIS_ALL_SUBSCRIPTIONS
@@ -275,10 +277,10 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI {
               uri indicating value "/rni/v1/subscriptions",
               body containing
                  CellChangeSubscription containing
                     subscritionType indicating value "CelCangeSubscription",
                     subscritionType indicating value "CelCangeSubscription",	//wrong subscription type 
                     callbackReference indicating value CALLBACK_URI,
                     filterCriteriaAssocHo containing
                        appInsId set to APP_INS_ID,
                        appInstanceId set to APP_INS_ID,
                        associateId set to ASSOCIATE_ID_LIST,
                        ecgi set to ECGI,
                        hoStatus set to HO_STATUS
@@ -298,13 +300,13 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI {


   Test Purpose {
      TP Id "TP_MEC025_RNI_SUBSCRIPTION_01_NEG_B"                      // 401 Unauthorized (No Token)
      TP Id "TP_MEC_RNI_SUBSCRIPTION_02_NEG_B"                      // 401 Unauthorized (No Token)
      
      Test objective 
         "Check that the RNIS service responds with an error when a request to create a new RNIS subscription is done"
         "Check that the RNIS service responds with an error when it receives a request to create a new RNIS subscription without credentials"
      
      Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.4", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription"
      Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.4", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml"
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS

@@ -323,7 +325,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI {
                     subscriptionType indicating value "CellChangeSubscription",
                     callbackReference indicating value CALLBACK_URI,
                     filterCriteriaAssocHo containing
                        appInsId set to APP_INS_ID,
                        appInstanceId set to APP_INS_ID,
                        associateId set to ASSOCIATE_ID_LIST,
                        ecgi set to ECGI,
                        hoStatus set to HO_STATUS
@@ -343,13 +345,13 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI {
   
   
   Test Purpose {
      TP Id "TP_MEC025_RNI_SUBSCRIPTION_01_NEG_C"                      // 401 Unauthorized (Wrong token)
      TP Id "TP_MEC_RNI_SUBSCRIPTION_02_NEG_C"                      // 401 Unauthorized (Wrong token)
      
      Test objective 
         "Check that the RNIS service responds with an error when a request to create a new RNIS subscription is done"
         "Check that the RNIS service responds with an error when it receives a request to create a new RNIS subscription with a wrong token"
      
      Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.4", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription"
      Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.4", 
         "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml"
      Config Id Config_MEC_1
      PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS

@@ -368,7 +370,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI {
                     subscriptionType indicating value "CellChangeSubscription",
                     callbackReference indicating value CALLBACK_URI,
                     filterCriteriaAssocHo containing
                        appInsId set to APP_INS_ID,
                        appInstanceId set to APP_INS_ID,
                        associateId set to ASSOCIATE_ID_LIST,
                        ecgi set to ECGI,
                        hoStatus set to HO_STATUS
@@ -386,92 +388,93 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI {
      }       
   }   

   Test Purpose {
      TP Id "TP_MEC025_RNI_SUBSCRIPTION_01_NEG_C"                      // 404 not Found (Wrong URI)
      
      Test objective 
         "Check that the RNIS service responds with an error when a request to create a new RNIS subscription is done"
      
      Reference "ETSI GS MEC 012 1.1.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 and 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 "/rnis/v1/subscription",              // wrong URI
               body containing
                  CellChangeSubscription containing
                     subscriptionType indicating value "CellChangeSubscription",
                     callbackReference indicating value CALLBACK_URI,
                     filterCriteriaAssocHo containing
                        appInsId set to APP_INS_ID,
                        associateId set to ASSOCIATE_ID_LIST,
                        ecgi set to ECGI,
                        hoStatus set to HO_STATUS
                     ;,
                     expiryDeadline set to EXPIRY_DEADLINE
                  ;
               ; 
            ; from the MEC_SUB entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "404 Not Found"
            ; to the MEC_SUB entity
         }
      }       
   } 


   Test Purpose {
      TP Id "TP_MEC025_RNI_SUBSCRIPTION_01_NEG_D"                      // 406 not acceptable (client accepts only application/octet-stream content format)
      
      Test objective 
         "Check that the RNIS service responds with an error when a request to create a new RNIS subscription is done"
      
      Reference "ETSI GS MEC 012 1.1.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 and PIC_RNIS_ALL_SUBSCRIPTIONS

      Initial conditions  with {
         the IUT entity being_in idle_state
      }
//Removed since not related to an individual resource
//   Test Purpose {
//      TP Id "TP_MEC025_RNI_SUBSCRIPTION_01_NEG_C"                      // 404 not Found (Wrong URI)
//      
//      Test objective 
//         "Check that the RNIS service responds with an error when a request to create a new RNIS subscription is done"
//      
//      Reference "ETSI GS MEC 012 1.1.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 and 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 "/rnis/v1/subscription",              // wrong URI
//               body containing
//                  CellChangeSubscription containing
//                     subscriptionType indicating value "CellChangeSubscription",
//                     callbackReference indicating value CALLBACK_URI,
//                     filterCriteriaAssocHo containing
//                        appInsId set to APP_INS_ID,
//                        associateId set to ASSOCIATE_ID_LIST,
//                        ecgi set to ECGI,
//                        hoStatus set to HO_STATUS
//                     ;,
//                     expiryDeadline set to EXPIRY_DEADLINE
//                  ;
//               ; 
//            ; from the MEC_SUB entity
//         }
//         then {
//            the IUT entity sends a HTTP_RESPONSE containing
//               status set to "404 Not Found"
//            ; to the MEC_SUB entity
//         }
//      }       
//   } 

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vPOST containing
               uri indicating value "/rni/v1/subscriptions",
               headers set to vHeadersAcceptKO,
               body containing
                  CellChangeSubscription containing
                     subscriptionType indicating value "CellChangeSubscription",
                     callbackReference indicating value CALLBACK_URI,
                     filterCriteriaAssocHo containing
                        appInsId set to APP_INS_ID,
                        associateId set to ASSOCIATE_ID_LIST,
                        ecgi set to ECGI,
                        hoStatus set to HO_STATUS
                     ;,
                     expiryDeadline set to EXPIRY_DEADLINE
                  ;
               ; 
            ; from the MEC_SUB entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "406 Not Acceptable"
            ; to the MEC_SUB 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_SUBSCRIPTION_01_NEG_D"                      // 406 not acceptable (client accepts only application/octet-stream content format)
//      
//      Test objective 
//         "Check that the RNIS service responds with an error when a request to create a new RNIS subscription is done"
//      
//      Reference "ETSI GS MEC 012 1.1.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 and 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/v1/subscriptions",
//               headers set to vHeadersAcceptKO,
//               body containing
//                  CellChangeSubscription containing
//                     subscriptionType indicating value "CellChangeSubscription",
//                     callbackReference indicating value CALLBACK_URI,
//                     filterCriteriaAssocHo containing
//                        appInsId set to APP_INS_ID,
//                        associateId set to ASSOCIATE_ID_LIST,
//                        ecgi set to ECGI,
//                        hoStatus set to HO_STATUS
//                     ;,
//                     expiryDeadline set to EXPIRY_DEADLINE
//                  ;
//               ; 
//            ; from the MEC_SUB entity
//         }
//         then {
//            the IUT entity sends a HTTP_RESPONSE containing
//               status set to "406 Not Acceptable"
//            ; to the MEC_SUB entity
//         }
//      }       
//   } 

}
+13 −18

File changed.

Preview size limit exceeded, changes collapsed.