Commit 9689ed0a authored by garciay's avatar garciay
Browse files

Start typing and templates for Tunnel Management

parent 7014c2ac
Loading
Loading
Loading
Loading
+119 −2
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
 * @author      ETSI/STF498
 * @version     $Url$
 *              $Id$
 * @dec         Testcases module for INT GTPv2-C protocol
 * @desc        Testcases module for INT GTPv2-C protocol
 */
module AtsGtpv2C_TestCases {
    
@@ -260,6 +260,64 @@ module AtsGtpv2C_TestCases {
                
            } // End of testcase TC_S11_MME_TM_01 
            
            /**
            * @desc    Validate that S-GW is able to request the MME to start Create Bearer Request Procedure.
            * <pre>
            * Pics Selection: PICS_S11_IUT_IS_MME and PICS_MME_CREATE_SESSION_REQUEST and PICS_MME_CREATE_BEARER_RESPONSE and PICS_MME_MODIFY_BEARER_REQUEST
            * Config Id: CF01
            * Initial conditions:
            *  with {
            *      EPC, RAN, and one UE are available.
            *      MME is configured the GTP Tunnel Parameter.
            *      S-GW is configured with the GTP Tunnel Parameter.
            *      Verify IP connectivity between the two nodes.
            *      UE attaches to the network. During the attach procedure the S-GW sends the Create Bearer Request message to the MME as part of the Dedicated Bearer Activation Procedure.
            *      The QoS parameter is updated in the P-GW. 
            *  }
            * Expected behaviour:
            *  ensure that {
            *      when {
            *          An IP-CAN Session Modification or,
            *          the PDN-GW may apply local QoS policy (change over PDN-GW OAM the QoS parameter for this UE)
            *      }
            *      then {
            *          Verify that the MME sends back a Create Bearer Response message to the S-GW
            *          and, verify that, in the case where dynamic PCC is deployed, the PCRF sends a PCC decision provision (QoS policy) message to the PDN GW
            *          or, verify that, in the case where dynamic PCC is not deployed, the PDN GW may apply local QoS policy
            *      }
            *  }
            * </pre>
            * @verdict pass on success, inconc on timeout, fail otherwise
            *
            * @see         ETSI TS 103 202-2 V0.0.2 (2014-03), TP_TM_02
            * @reference   ETSI TS 129 274 V9.13.0, clauses 7.2.3, 7.2.4
            * @reference   ETSI TS 123.401 V9.13.0, clauses 5.4.1
            */
            testcase TC_S11_MME_TM_02() runs on Gtpv2CComponent system Gtpv2CSystemAdapter {
                
                // Local variables
                
                // Test control
                if (not (PICS_S11_IUT_IS_MME and PICS_MME_CREATE_SESSION_REQUEST and PICS_MME_CREATE_BEARER_RESPONSE and PICS_MME_MODIFY_BEARER_REQUEST)) {
                    log("*** " & testcasename() & ": PICS_S11_IUT_IS_MME and PICS_MME_CREATE_SESSION_REQUEST and PICS_MME_CREATE_BEARER_RESPONSE and PICS_MME_MODIFY_BEARER_REQUEST required for executing the TC ***");
                    setverdict(inconc);
                    stop;
                }
                
                // Test component configuration
                f_cf01_S11Up_MME();
                
                // Start
                vc_gtpv2c_sgw.start(f_TC_S11_MME_TM_02());
                
                // synchronize PTC on 1 sychronization points
                f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone});
                
                // Postamble
                f_cf01_S11Down_MME();
                
            } // End of testcase TC_S11_MME_TM_02 
            
        } // End of group tunnelManagement 
        
    } // End of group mmeRole 
@@ -503,6 +561,65 @@ module AtsGtpv2C_TestCases {
                
            } // End of testcase TC_S11_SGW_TM_01 
            
            /**
            * @desc    Validate that S-GW is able to request the MME to start Create Bearer Request Procedure.
            * <pre>
            * Pics Selection: PICS_S11_IUT_IS_MME and PICS_MME_CREATE_SESSION_REQUEST and PICS_MME_CREATE_BEARER_RESPONSE and PICS_MME_MODIFY_BEARER_REQUEST
            * Config Id: CF01
            * Initial conditions:
            *  with {
            *      EPC, RAN, and one UE are available.
            *      MME is configured the GTP Tunnel Parameter.
            *      S-GW is configured with the GTP Tunnel Parameter.
            *      Verify IP connectivity between the two nodes.
            *      UE attaches to the network. During the attach procedure the S-GW sends the Create Bearer Request message to the MME as part of the Dedicated Bearer Activation Procedure.
            *      The QoS parameter is updated in the P-GW. 
            *  }
            * Expected behaviour:
            *  ensure that {
            *      when {
            *          An IP-CAN Session Modification or,
            *          the PDN-GW may apply local QoS policy (change over PDN-GW OAM the QoS parameter for this UE)
            *      }
            *      then {
            *          Verify that the MME sends back a Create Bearer Response message to the S-GW
            *          and, verify that, in the case where dynamic PCC is deployed, the PCRF sends a PCC decision provision (QoS policy) message to the PDN GW
            *          or, verify that, in the case where dynamic PCC is not deployed, the PDN GW may apply local QoS policy
            *      }
            *  }
            * </pre>
            * @verdict pass on success, inconc on timeout, fail otherwise
            *
            * @see         ETSI TS 103 202-2 V0.0.2 (2014-03), TP_TM_02
            * @reference   ETSI TS 129 274 V9.13.0, clauses 7.2.3, 7.2.4
            * @reference   ETSI TS 123.401 V9.13.0, clauses 5.4.1
            */
            testcase TC_S11_SGW_TM_02() runs on Gtpv2CComponent system Gtpv2CSystemAdapter {
                
                // Local variables
                
                // Test control
                if (not (PICS_S11_IUT_IS_SGW and PICS_SGW_CREATE_SESSION_RESPONSE and PICS_MME_CREATE_BEARER_REQUEST and PICS_MME_BEARER_RESOURCE_FAILURE_INDICATION and PICS_MME_MODIFY_BEARER_RESPONSE)) {
                    log("*** " & testcasename() & ": PICS_S11_IUT_IS_MME and PICS_MME_CREATE_SESSION_REQUEST and PICS_MME_CREATE_BEARER_RESPONSE and PICS_MME_MODIFY_BEARER_REQUEST required for executing the TC ***");
                    setverdict(inconc);
                    stop;
                }
                
                // Test component configuration
                f_cf02_S11Up_SGW();
                
                // Start
                vc_gtpv2c_s5.start(f_TC_S5_SGW_TM_02());
                vc_gtpv2c_sgw.start(f_TC_S11_SGW_TM_02());
                
                // synchronize PTC on 1 sychronization points
                f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone});
                
                // Postamble
                f_cf02_S11Down_SGW();
                
            } // End of testcase TC_S11_SGW_TM_02 
            
        } // End of group tunnelManagement 
        
    } // End of group sgwRole 
+4 −2
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
 * @author      ETSI/STF498
 * @version     $Url$
 *              $Id$
 * @dec         Testcontrol module for INT GTPv2-C protocol
 * @desc        Testcontrol module for INT GTPv2-C protocol
 */
module AtsGtpv2C_TestControl { 
    
@@ -28,6 +28,7 @@ module AtsGtpv2C_TestControl {
            /* Tunnel management */
            if (PICS_MME_CREATE_SESSION_REQUEST and PICS_MME_CREATE_BEARER_RESPONSE and PICS_MME_MODIFY_BEARER_REQUEST) {
                execute(TC_S11_MME_TM_01());
                execute(TC_S11_MME_TM_02());
            }
        }
        
@@ -45,6 +46,7 @@ module AtsGtpv2C_TestControl {
            /* Tunnel management */
            if (PICS_SGW_CREATE_SESSION_RESPONSE and PICS_MME_CREATE_BEARER_REQUEST and PICS_MME_BEARER_RESOURCE_FAILURE_INDICATION and PICS_MME_MODIFY_BEARER_RESPONSE) {
                execute(TC_S11_SGW_TM_01());
                execute(TC_S11_SGW_TM_02());
            }
        }