sccp: Introduce TC_udt_without_cr_cc

Change-Id: I752af1ae4a34d8d72472e716fe721198f1ba46b1
This commit is contained in:
Pau Espin 2020-01-20 20:19:47 +01:00
parent a2473da683
commit f7ba234acf
1 changed files with 17 additions and 0 deletions

View File

@ -161,6 +161,22 @@ testcase TC_cr_cc() runs on SCCP_Test_RAW_CT {
f_establish_conn(calling, called);
}
/* Verify sccp_demo_user answers a CR with a CC for PC and SSN set up to echo back */
testcase TC_udt_without_cr_cc() runs on SCCP_Test_RAW_CT {
var SCCP_PAR_Address calling, called;
var octetstring data := f_rnd_octstring(f_rnd_int(100));
f_init_raw(mp_sccp_cfg[0]);
f_sleep(1.0);
called := valueof(ts_SccpAddr_PC_SSN(mp_sccp_cfg[0].peer_pc, mp_sccp_cfg[0].peer_ssn,
mp_sccp_cfg[0].sio, mp_sccp_cfg[0].sccp_service_type));
calling := valueof(ts_SccpAddr_PC_SSN(mp_sccp_cfg[0].own_pc, mp_sccp_cfg[0].own_ssn,
mp_sccp_cfg[0].sio, mp_sccp_cfg[0].sccp_service_type));
f_tx_udt_exp(calling, called, data);
}
/* Verify T(iar) triggers and releases the channel */
testcase TC_tiar_timeout() runs on SCCP_Test_RAW_CT {
var SCCP_PAR_Address calling, called;
@ -193,6 +209,7 @@ testcase TC_tiar_timeout() runs on SCCP_Test_RAW_CT {
control {
execute( TC_cr_cc() );
execute( TC_udt_without_cr_cc() );
execute( TC_tiar_timeout() );
}