Commit 664c9c16 authored by Filipe Ferreira's avatar Filipe Ferreira
Browse files

MEC 029 negative test cases.

parent 9ade1f6f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -276,8 +276,7 @@ Package plat_mp1_dns_rules {

      Test objective
         "Check that the IUT responds with an error when
         non compliant data is sent for an update to a specific DNS rule
         by a MEC Application"
         a request with incorrect parameters is sent by a MEC Application"

      Reference "ETSI GS MEC 011 V2.0.4, clause 7.13.3.2",
         "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails"
+1546 −0

File changed.

Preview size limit exceeded, changes collapsed.

+0 −86
Original line number Diff line number Diff line
@@ -149,49 +149,6 @@ Package plat_mp1_timing {
   Test Purpose {
      TP Id "TP_MEC_PLAT_MP1_TIME_BI_002" 
      
      Test objective 
         "Check that the IUT responds with an error when
         a request for an unknown URI is sent by a MEC Application"
      
      Reference "ETSI GS MEC 011 V2.0.4, clause 7.7.3.1",
         "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails"
      
      Config Id Config_MEC_1
      
      PICS Selection PIC_MEC_PLAT and PIC_SERVICES

      Initial conditions  with {
         the IUT entity being_in idle_state
      }

      // MEC 011, clause 5.2.10.3
      Expected behaviour
         ensure that {
            when {
               the IUT entity receives a vGET containing
                  Uri indicating value "mp1/v1/timing/timing_caps/{ANY_ID}"
               ;
               from the MEC_APP entity
            }
            then {
               // MEC 011, clause 7.7.3.1
               the IUT entity sends a HttpMsg containing
                  status_code set to "404 Not Found"
                  body containing
                     ProblemDetails containing
                        detail set to any_value
                     ;
                  ; 
               ;
               to the MEC_APP entity
            }
         }
   }


   Test Purpose {
      TP Id "TP_MEC_PLAT_MP1_TIME_BI_003" 
      
      Test objective 
         "Check that the IUT responds with an error when
         an unauthorised request is sent by a MEC Application"
@@ -230,47 +187,4 @@ Package plat_mp1_timing {
            }
         }
   }


   Test Purpose {
      TP Id "TP_MEC_PLAT_MP1_TIME_BI_004" 
      
      Test objective 
         "Check that the IUT responds with an error when
         a request for an unknown URI is sent by a MEC Application"
      
      Reference "ETSI GS MEC 011 V2.0.4, clause 7.8.3.1",
         "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails"

      Config Id Config_MEC_1
      
      PICS Selection PIC_MEC_PLAT and PIC_SERVICES

      Initial conditions  with {
         the IUT entity being_in idle_state
      }

      // MEC 011, clause 5.2.10.2
      Expected behaviour
         ensure that {
            when {
               the IUT entity receives a vGET containing
                  Uri indicating value "mp1/v1/timing/current_time/{ANY_ID}"
               ;
               from the MEC_APP entity
            }
            then {
               // MEC 011, clause 7.8.3.1
               the IUT entity sends a HttpMsg containing
                  status_code set to "404 Not Found"
                  body containing
                     ProblemDetails containing
                        detail set to any_value
                     ;
                  ; 
               ;
               to the MEC_APP entity
            }
         }
   }
}