Commit 3bc10067 authored by Michele Carignani's avatar Michele Carignani
Browse files

Merge branch 'nxw' into master

parents 9781e1e8 6e7ee3ef
Loading
Loading
Loading
Loading
−208

File deleted.

−207

File deleted.

+85
Changes for Test Purposes/Common/CommonUnauthFailure_BI.tplan2: 85 added lines, 0 removed lines.
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 MEC_COMMON_BI {
   
   import all from MEC_Common;
   
   
   Test Purpose {
      TP Id "TP_MEC_COMMON_001_NT"         //Negative case 401 Unauthorized - no token
      
      Test objective 
         "Check that a MEC API provider responds with an error when it receives 
         a request without token"
      
      Reference "ETSI GS MEC 009 1.1.1, clause 6.16.1"
              
      Config Id Config_MEC_6
      
      Initial conditions  with {
         the IUT entity being_in idle_state
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a HTTP_REQUEST containing
               uri indicating value ACCEPTABLE_URI,
	       "not" authorization
            ; from the MEC_CONSUMER entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized"
            ; to the MEC_CONSUMER entity
         }
      }       
   }
   
   Test Purpose {
      TP Id "TP_MEC_COMMON_001_WT"         //Negative case 401 Unauthorized - wrong token
      
      Test objective 
         "Check that a MEC API provider responds with an error when it receives 
         a request with a wrong token"
      
      Reference "ETSI GS MEC 009 1.1.1, clause 6.16.1"

      Config Id Config_MEC_6

      Initial conditions  with {
         the IUT entity being_in idle_state
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a HTTP_REQUEST containing
               uri indicating value ACCEPTABLE_URI,
               headers containing
      			  authorization set to NOT_VALID_TOKEN
      		   ;
            ; from the MEC_CONSUMER entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized"
            ; to the MEC_CONSUMER entity
         }
      }       
   }
   
     
}
+1475

File added.

Preview size limit exceeded, changes collapsed.

+689

File added.

Preview size limit exceeded, changes collapsed.

Loading