ns: add TC_sns_sgsn_size_correct_port to check if SIZE_ACK is transmitted from the correct port

Change-Id: Ib0fbf0cc87ff8f00fd4062b471d7a4835b45723c
This commit is contained in:
Alexander Couzens 2021-09-04 01:23:42 +02:00 committed by lynxis lazus
parent bdef810edc
commit 717bb2167b
1 changed files with 15 additions and 0 deletions

View File

@ -752,6 +752,20 @@ testcase TC_sns_sgsn_config_success() runs on RAW_Test_CT {
f_clean_ns_codec();
}
/* Ensure a SNS SIZE ACK is transmitted from the correct port */
testcase TC_sns_sgsn_size_correct_port() runs on RAW_Test_CT {
f_init_vty();
f_init_ns_codec(mp_nsconfig);
f_init_ns_codec(mp_nsconfig, 1);
f_outgoing_sns_size(max_nsvcs := 10);
f_outgoing_sns_config();
f_incoming_sns_config();
NSCP[0].receive(t_NS_ALIVE);
f_outgoing_sns_size(max_nsvcs := 10, idx := 1);
setverdict(pass);
f_clean_ns_codec();
}
testcase TC_sns_sgsn_add() runs on RAW_Test_CT {
g_handle_rx_alive := true;
f_init_vty();
@ -900,6 +914,7 @@ control {
execute( TC_sns_sgsn_add() );
execute( TC_sns_sgsn_del() );
execute( TC_sns_sgsn_add_change_del() );
execute( TC_sns_sgsn_size_correct_port() );
}
}
}