Commit e356476d authored by nikolajev's avatar nikolajev
Browse files

Added more LibDiameter validation test cases

parent dffdc4c4
Loading
Loading
Loading
Loading
+122 −18
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ module DiameterTortureTestCases
	type component DiameterComponent
	{
		port DiameterPort p;
		port DiameterPort loopback;
		timer tmrTimeout := 3.0;
	} // End of type DiameterComponent
	
@@ -33,8 +34,10 @@ module DiameterTortureTestCases
	
	altstep receive_specific_DIAMETER_MSG(template DIAMETER_MSG tmpl) runs on DiameterComponent
	{
		[]p.receive(tmpl)
		var DIAMETER_MSG msg;
		[]p.receive(tmpl) -> value msg
		{
			loopback.send(msg);//test if encoded message looks the same...
			setverdict(pass);
		}
		[]p.receive(DIAMETER_MSG:?)
@@ -90,14 +93,18 @@ module DiameterTortureTestCases
		receiveDIAMETER_MSG();
	} // End of testcase TC_3GPP_Update_Location_Answer
	
	testcase TC_Capabilities_Exchange_Answer() runs on DiameterComponent
	testcase TC_Capabilities_Exchange_Answer() runs on DiameterComponent system DiameterComponent
	{//3GPP-Update-Location answer
		map(self:p, system:p);
		connect(self:loopback,mtc:loopback);
		tmrTimeout.start;
		receive_specific_DIAMETER_MSG(DIAMETER_MSG:{cEA_MSG := ?});
	} // End of testcase TC_3GPP_Update_Location_Answer
	
	testcase TC_Capabilities_Exchange_Request() runs on DiameterComponent
	testcase TC_Capabilities_Exchange_Request() runs on DiameterComponent system DiameterComponent
	{//3GPP-Update-Location answer
		map(self:p, system:p);
		connect(self:loopback,mtc:loopback);
		tmrTimeout.start;
		receive_specific_DIAMETER_MSG(DIAMETER_MSG:{cER_MSG := ?});
	} // End of testcase TC_3GPP_Update_Location_Answer
@@ -115,47 +122,144 @@ module DiameterTortureTestCases
		receiveDIAMETER_MSG();
	} // End of testcase TC_3GPP_Update_Location_Answer
	
	testcase TC_271_A() runs on DiameterComponent
	testcase TC_Accounting_Answer() runs on DiameterComponent system DiameterComponent
	{//3GPP-Update-Location answer
		map(self:p, system:p);
		connect(self:loopback,mtc:loopback);
		tmrTimeout.start;
		receive_specific_DIAMETER_MSG(DIAMETER_MSG:{aCA_MSG := ?});
	} // End of testcase TC_3GPP_Update_Location_Answer
	
	testcase TC_Accounting_Request() runs on DiameterComponent
	testcase TC_Accounting_Request() runs on DiameterComponent system DiameterComponent
	{//3GPP-Update-Location answer
		map(self:p, system:p);
		connect(self:loopback,mtc:loopback);
		tmrTimeout.start;
		receive_specific_DIAMETER_MSG(DIAMETER_MSG:{aCR_MSG := ?});
	} // End of testcase TC_3GPP_Update_Location_Answer
	
	testcase TC_Device_Watchdog_Answer() runs on DiameterComponent
	testcase TC_Device_Watchdog_Answer() runs on DiameterComponent system DiameterComponent
	{//3GPP-Update-Location answer
		map(self:p, system:p);
		connect(self:loopback,mtc:loopback);
		tmrTimeout.start;
		receive_specific_DIAMETER_MSG(DIAMETER_MSG:{dWA_MSG := ?});
	} // End of testcase TC_3GPP_Update_Location_Answer
	
	testcase TC_Device_Watchdog_Request() runs on DiameterComponent
	testcase TC_Device_Watchdog_Request() runs on DiameterComponent system DiameterComponent
	{//3GPP-Update-Location answer
		map(self:p, system:p);
		connect(self:loopback,mtc:loopback);
		tmrTimeout.start;
		receive_specific_DIAMETER_MSG(DIAMETER_MSG:{dWR_MSG := ?});
	} // End of testcase TC_3GPP_Update_Location_Answer
	
	testcase TC_Re_Auth_Answer() runs on DiameterComponent system DiameterComponent
	{//3GPP-Update-Location answer
		map(self:p, system:p);
		connect(self:loopback,mtc:loopback);
		tmrTimeout.start;
		receive_specific_DIAMETER_MSG(DIAMETER_MSG:{rAA_MSG := ?});
	} // End of testcase TC_3GPP_Update_Location_Answer
	
	testcase TC_Re_Auth_Request() runs on DiameterComponent system DiameterComponent
	{//3GPP-Update-Location answer
		map(self:p, system:p);
		connect(self:loopback,mtc:loopback);
		tmrTimeout.start;
		receive_specific_DIAMETER_MSG(DIAMETER_MSG:{rAR_MSG := ?});
	} // End of testcase TC_3GPP_Update_Location_Answer
	
	testcase TC_Auth_Accounting_Answer() runs on DiameterComponent system DiameterComponent
	{//3GPP-Update-Location answer
		map(self:p, system:p);
		connect(self:loopback,mtc:loopback);
		tmrTimeout.start;
		receive_specific_DIAMETER_MSG(DIAMETER_MSG:{aAA_MSG := ?});
	} // End of testcase TC_3GPP_Update_Location_Answer
	
	testcase TC_Auth_Accounting_Request() runs on DiameterComponent system DiameterComponent
	{//3GPP-Update-Location answer
		map(self:p, system:p);
		connect(self:loopback,mtc:loopback);
		tmrTimeout.start;
		receive_specific_DIAMETER_MSG(DIAMETER_MSG:{aAR_MSG := ?});
	} // End of testcase TC_3GPP_Update_Location_Answer
	
	testcase TC_Credit_Control_Answer() runs on DiameterComponent system DiameterComponent
	{//3GPP-Update-Location answer
		map(self:p, system:p);
		connect(self:loopback,mtc:loopback);
		tmrTimeout.start;
		receive_specific_DIAMETER_MSG(DIAMETER_MSG:{cCA_MSG := ?});
	} // End of testcase TC_3GPP_Update_Location_Answer
	
	testcase TC_Credit_Control_Request() runs on DiameterComponent system DiameterComponent
	{//3GPP-Update-Location answer
		map(self:p, system:p);
		connect(self:loopback,mtc:loopback);
		tmrTimeout.start;
		receive_specific_DIAMETER_MSG(DIAMETER_MSG:{cCR_MSG := ?});
		
	} // End of testcase TC_3GPP_Update_Location_Answer
	
	
	testcase TC_Session_Termination_Answer() runs on DiameterComponent system DiameterComponent
	{//3GPP-Update-Location answer
		map(self:p, system:p);
		connect(self:loopback,mtc:loopback);
		tmrTimeout.start;
		receive_specific_DIAMETER_MSG(DIAMETER_MSG:{sTA_MSG := ?});
	} // End of testcase TC_3GPP_Update_Location_Answer
	
	testcase TC_Session_Termination_Request() runs on DiameterComponent system DiameterComponent
	{//3GPP-Update-Location answer
		map(self:p, system:p);
		connect(self:loopback,mtc:loopback);
		tmrTimeout.start;
		receive_specific_DIAMETER_MSG(DIAMETER_MSG:{sTR_MSG := ?});
		
	} // End of testcase TC_3GPP_Update_Location_Answer
	
	
	testcase TC_Multimedia_Auth_Request() runs on DiameterComponent system DiameterComponent
	{//3GPP-Update-Location answer
		map(self:p, system:p);
		connect(self:loopback,mtc:loopback);
		tmrTimeout.start;
		receive_specific_DIAMETER_MSG(DIAMETER_MSG:{mAR_MSG := ?});
		
	} // End of testcase TC_3GPP_Update_Location_Answer
	
	control
	{
		//DIAMETER
		/*execute(TC_3GPP_Authentication_Information_Request());
		execute(TC_3GPP_Authentication_Information_Answer());
		execute(TC_3GPP_Update_Location_Request());
		execute(TC_3GPP_Update_Location_Answer());*/
		
		execute(TC_3GPP_Authentication_Information_Request());//318
		execute(TC_3GPP_Authentication_Information_Answer());//318
		execute(TC_3GPP_Update_Location_Request());//316
		execute(TC_3GPP_Update_Location_Answer());//316
		
		execute(TC_Capabilities_Exchange_Answer());
		execute(TC_Capabilities_Exchange_Request());
		execute(TC_Capabilities_Exchange_Answer());//257
		execute(TC_Capabilities_Exchange_Request());//257
		execute(TC_268_A());
		execute(TC_268_R());
		execute(TC_Accounting_Answer());
		execute(TC_Accounting_Request());
		execute(TC_Device_Watchdog_Answer());
		execute(TC_Device_Watchdog_Request());
		execute(TC_Accounting_Answer());//271
		execute(TC_Accounting_Request());//271
		execute(TC_Device_Watchdog_Answer());//280
		execute(TC_Device_Watchdog_Request());//280
		
		execute(TC_Re_Auth_Answer());//258
		execute(TC_Re_Auth_Request());//258
		
		execute(TC_Auth_Accounting_Answer());//265
		execute(TC_Auth_Accounting_Request());//265 //
		
		execute(TC_Credit_Control_Answer());//272
		execute(TC_Credit_Control_Request());//272
		
		execute(TC_Session_Termination_Answer());//275
		execute(TC_Session_Termination_Request());//275
		
		execute(TC_Multimedia_Auth_Request());//303
	}
}
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
010000f84000010901000014da70486aaadf921a000001074000003370637363662e6d6574617377697463682e636f6d3b313331373035393234353b35363b323138323334393000000001084000001a7068696c2e616c75706372662e76662e646500000000012840000015616c75706372662e76662e6465000000000001024000000c010000140000010c4000000c000007d10000027480000038000028af0000027580000010000028af000000010000027680000010000028af000000010000010a4000000c000028af00000403c0000010000028af0000000500000408c0000010000028af000003ec000001164000000c4e6480ea
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
0100026cc000010901000014da704776aadf9126000001074000003370637363662e6d6574617377697463682e636f6d3b313331373035393234353b35323b323138323334393000000001084000001c70637363662e6d6574617377697463682e636f6d00000128400000166d6574617377697463682e636f6d00000000011b40000015616c75706372662e76662e6465000000000001024000000c01000014000001f9c000006d000028af3030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303b30303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303000000000000201c0000010000028af0000000100000201c0000010000028af0000000200000201c0000010000028af0000000300000201c0000010000028af0000000400000201c0000010000028af0000000600000201c0000010000028af00000007000001164000000ca6d93745000001f8c0000031000028af75726e3a75726e2d373a336770702d736572766963652e696d732e696373692e6d6d74656c00000000000205c0000048000028af00000206c0000010000028af0000000000000207c000002c000028af000001fdc0000010000028af0000000000000200c0000010000028af00000002000001bb40000030000001c24000000c00000002000001bc4000001b7369703a5545344076662d6d7366322e636f6d00000000080000000c0a080b020000027480000038000028af0000010a4000000c000028af0000027580000010000028af000000010000027680000010000028af00000001
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
010001e4400001100100001600040c73eb5001f0000001074000002454656c6c6162735063656630303b313331373331383332353b323438000001084000001a7068696c2e616c75706372662e76662e646500000000012840000015616c75706372662e76662e6465000000000001024000000c010000160000010c4000000c000007d10000027480000038000028af0000027580000010000028af000000010000027680000010000028af000000010000010a4000000c000028af000001a04000000c000000010000019f4000000c00000000000003ffc0000010000028af00000002000003eec0000010000028af00000001000003eec0000010000028af00000002000003eec0000010000028af0000000d000003eec0000010000028af00000015000003eec0000010000028af0000000c000003eec0000010000028af00000007000003f8c000002c000028af00000410c0000010000028af0007a12000000411c0000010000028af0007a12000000419c0000058000028af00000404c0000010000028af000000050000040ac000003c000028af00000416c0000010000028af0000000100000417c0000010000028af0000000000000418c0000010000028af00000000000003f1c0000010000028af00000000000001164000000c4e6480ea
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
010002d0c00001100100001600040c73eb5001f0000001074000002454656c6c6162735063656630303b313331373331383332353b323438000001084000001554656c6c6162735063656630300000000000012840000018706365662e74656c6c6162732e636f6d0000011b40000015616c75706372662e76662e6465000000000001024000000c01000016000001a04000000c000000010000019f4000000c00000000000001bb4000002c000001c24000000c00000001000001bc4000001735343830323130303030303030303400000003f8c00000b8000028af00000411c0000010000028af0007d00000000410c0000010000028af0007d00000000404c0000010000028af0000000500000204c0000010000028af0000000000000203c0000010000028af0000000000000402c0000010000028af0000000000000401c0000010000028af000000000000040ac000003c000028af00000416c0000010000028af0000000100000417c0000010000028af0000000000000418c0000010000028af0000000000000274c0000038000028af0000010a4000000c000028af0000027580000010000028af000000010000027680000010000028af0000000100000400c0000010000028af00000001000000084000000c0a080b0200000403c0000010000028af0000000500000408c0000010000028af000003ec00000016c0000025000028af8235343830326630343030353438303266303030303032303200000000000017c000000e000028af23000000000003f1c0000010000028af000000000000001e40000033766f6963652d74656c6c6162732d76662d6d73662e6f72672e6d6e633030322e6d63633534382e677072730000000419c0000058000028af00000404c0000010000028af000000050000040ac000003c000028af00000416c0000010000028af0000000000000417c0000010000028af0000000100000418c0000010000028af00000001
 No newline at end of file
Loading