daniel has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/42932?usp=email )
Change subject: STP_Tests_TCAP: Test routing of fragments in TC_tcap_loadshare_ipa_tcap_range_success_pc ......................................................................
STP_Tests_TCAP: Test routing of fragments in TC_tcap_loadshare_ipa_tcap_range_success_pc
A TCAP Begin will cause the stp to create a cache entry and route according to that. Send only a TCAP Continue so we check the tcap range routing logic.
Change-Id: I1cb47174b8f0e69970e75109b9d15b2012e150c3 --- M stp/STP_Tests_TCAP.ttcn 1 file changed, 22 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/32/42932/1
diff --git a/stp/STP_Tests_TCAP.ttcn b/stp/STP_Tests_TCAP.ttcn index 5093b78..f8ba240 100644 --- a/stp/STP_Tests_TCAP.ttcn +++ b/stp/STP_Tests_TCAP.ttcn @@ -324,6 +324,24 @@ f_asp_tx_tcap_exp_any(tcap_msg, t_asp_idx); }
+private function f_asp_tx_tcap_m3ua_ipa_continue(integer o_asp_idx, + integer t_asp_idx, + OCT4 o_tid, + OCT4 t_tid) +runs on TCAP_CT +{ + var template (value) TCMessage tcap_msg; + + /* TCAP Continue: O -> T */ + tcap_msg := ts_TCAP_Continue(o_tid, t_tid); + f_asp_tx_tcap_exp(tcap_msg, o_asp_idx, t_asp_idx); + + /* TCAP Continue: O <- T */ + tcap_msg := ts_TCAP_Continue(t_tid, o_tid); + f_asp_tx_tcap_exp_any(tcap_msg, t_asp_idx); + +} + private function f_asp_tx_tcap_m3ua_ipa_transaction_alt(integer o_asp_idx, OCT4 o_tid, integer t_asp_idx1, OCT4 t_tid1, @@ -632,6 +650,8 @@ * * node a: 0..99 * node b: 60..80/pc (own) + * Don't test a complete tcap transaction because that will create a cache entry. + * Testing with a continue will definitely use the tcap range. */ testcase TC_tcap_loadshare_ipa_tcap_range_success_pc() runs on TCAP_CT { var Misc_Helpers.ro_charstring tcap_asps := { "asp-m3ua-loadshare-0-0", @@ -642,8 +662,8 @@
f_init_tcap(tcap_configs); f_tcap_loadshare_ipa_tcap_range_success_pc(tcap_configs); - f_asp_tx_tcap_m3ua_ipa_transaction(0, 2, int2oct(23, 4), int2oct(98, 4)); - f_asp_tx_tcap_m3ua_ipa_transaction(0, 3, int2oct(60, 4), int2oct(79, 4)); + f_asp_tx_tcap_m3ua_ipa_continue(0, 2, int2oct(98, 4), int2oct(23, 4)); + f_asp_tx_tcap_m3ua_ipa_continue(0, 3, int2oct(79, 4), int2oct(60, 4)); /* TODO: check traffic routing with the correct PC, but different SSN, otid := 60 */
setverdict(pass);