Commit 667f4e38 authored by Yann Garcia's avatar Yann Garcia
Browse files

Add TC_SH_AS_MS_01 skeleton

parent 33de599c
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
module DiameterShDh_PICS {
}
 No newline at end of file
    
    /**
     * @desc Does IUT acts as the HSS? 
     * @see  ETSI TS 103 289-1 A.2/1 
     */
    modulepar boolean PICS_HSS_IUT := false;
    
    /**
     * @desc Does IUT acts as the AS? 
     * @see  ETSI TS 103 289-1 A.2/1 
     */
    modulepar boolean PICS_AS_IUT := false;
    
} // End of module DiameterShDh_PICS 
 No newline at end of file
+1608 −1528
Original line number Diff line number Diff line
@@ -72,7 +72,11 @@ module DiameterShDh_TestCases {
                    // Local variables
                    var DiameterShDh v_diameterSh_as; 
                        
                    //TODO Test control - PICS
                    // Test control
                    if (not PICS_HSS_IUT) {
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_HSS_IUT' required for executing the TC. ***"); 
                        stop;
                    }
                    
                    // Test component configuration
                    f_cf_1Sh_asUp(v_diameterSh_as);
@@ -85,7 +89,7 @@ module DiameterShDh_TestCases {
                        
                    f_cf_1Sh_asDown(v_diameterSh_as);
                        
                } // End of testcase TC_CX_HSS_MS_01 
                } // End of testcase TC_SH_HSS_MS_01 
                
            } // End of group TP_HSSRole_MS 
            
@@ -1456,7 +1460,11 @@ module DiameterShDh_TestCases {
                    // Local variables
                    var DiameterShDh v_diameterSh_as; 
            
					//TODO Test control - PICS
                    // Test control
                    if (not PICS_HSS_IUT) {
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_HSS_IUT' required for executing the TC. ***"); 
                        stop;
                    }
                    
                    // Test component configuration
                    f_cf_1Sh_asUp(v_diameterSh_as);
@@ -1512,7 +1520,11 @@ module DiameterShDh_TestCases {
                    // Local variables
                    var DiameterShDh v_diameterSh_as; 
                    
					//TODO Test control - PICS
                    // Test control
                    if (not PICS_AS_IUT) {
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_HSS_IUT' required for executing the TC. ***"); 
                        stop;
                    }
                    
                    // Test component configuration
                    f_cf_1Sh_asUp(v_diameterSh_as);
@@ -1560,7 +1572,11 @@ module DiameterShDh_TestCases {
                    // Local variables
                    var DiameterShDh v_diameterSh_as; 
                    
					//TODO Test control - PICS
                    // Test control
                    if (not PICS_AS_IUT) {
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_HSS_IUT' required for executing the TC. ***"); 
                        stop;
                    }
                    
                    // Test component configuration
                    f_cf_1Sh_asUp(v_diameterSh_as);
@@ -1581,6 +1597,70 @@ module DiameterShDh_TestCases {
        group TP_AS_Role { // §5.2.2.2
        
            group TP_ASRole_MessageSyntax {
                
                /**
                 * @desc    Verify that the IUT sends the appropriate Result-Code AVP when mandatory User-Identity AVP is absent.
                 * <pre>
                 * Pics Selection: PICS_AS_IUT
                 * Initial conditions: 
                 *     with {
                 *        
                 *     }
                 * Expected behaviour:
                 *     ensure that {
                 *        when {
                 *            the IUT receives a UD-Request
                 *                containing a Session-ID AVP
                 *                containing a Vendor-Specific-Application-Id AVP
                 *                containing an Auth-Session-State AVP
                 *                containing an Origin-Host AVP
                 *                containing an Origin-Realm AVP
                 *                containing a Destination-Realm AVP
                 *                not containing a User-Identity AVP
                 *                containing a Data-Reference AVP
                 *        }
                 *        then {
                 *            the IUT sends a UD-Answer 
                 *                containing a Session-ID AVP
                 *                containing a Result-Code AVP
                 *                    indicating DIAMETER_MISSING_AVP
                 *                containing a Vendor-Specific-Application-Id AVP
                 *                containing an Auth-Session-State AVP
                 *                containing an Origin-Host AVP
                 *                containing an Origin-Realm AVP
                 *                containing a Failed AVP
                 *                    indicating missing Information Element
                 *        }
                 *     }
                 * </pre>
                 * 
                 * @version    0.0.6
                 * @see        ETSI TS 103 571-2 TP_SH_AS_MS_01
                 */
                testcase TC_SH_AS_MS_01() runs on DiameterShDh system TestAdapter { 
                    // Local variables
                    var DiameterShDh v_diameterSh_as; 
                    
                    // Test control
                    if (not PICS_AS_IUT) {
                        log("*** " & __SCOPE__ & ": ERROR: 'PICS_HSS_IUT' required for executing the TC. ***"); 
                        stop;
                    }
                    
                    // Test component configuration
                    f_cf_1Sh_asUp(v_diameterSh_as);
                    
                    // Start
                    v_diameterSh_as.start(f_TC_SH_AS_MS_01()); 
                        
                    // synchronize PTC on 1 sychronization points
                    f_serverSyncNClientsAndStop(f_NrofComps(), {c_prDone, c_tbDone, c_poDone});
                        
                    f_cf_1Sh_asDown(v_diameterSh_as);
                        
                } // End of testcase TC_SH_AS_MS_01 
                
                
            } // End of group TP_ASRole_MessageSyntax
            
            group TP_ASRole_UserData{