daniel has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/42682?usp=email )
Change subject: stp: Test TCAP routing with a different called address answering ......................................................................
stp: Test TCAP routing with a different called address answering
Change-Id: I6d586b17b767219d20646f7cd1b59d6719cdbcdb Related: SYS#5423 --- M stp/STP_Tests_TCAP.ttcn 1 file changed, 41 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/82/42682/1
diff --git a/stp/STP_Tests_TCAP.ttcn b/stp/STP_Tests_TCAP.ttcn index ebacbc1..d488910 100644 --- a/stp/STP_Tests_TCAP.ttcn +++ b/stp/STP_Tests_TCAP.ttcn @@ -272,7 +272,7 @@ private function f_asp_tx_tcap_m3ua_ipa_transaction(integer o_asp_idx, integer t_asp_idx, OCT4 o_tid, - OCT4 t_tid) + OCT4 t_tid, integer alt_asp_idx := -1) runs on TCAP_CT { var template (value) TCMessage tcap_msg; @@ -283,7 +283,11 @@
/* TCAP Continue: O <- T */ tcap_msg := ts_TCAP_Continue(t_tid, o_tid); - f_asp_tx_tcap_exp_any(tcap_msg, t_asp_idx); + if (alt_asp_idx == -1) { + f_asp_tx_tcap_exp_any(tcap_msg, t_asp_idx); + } else { + f_asp_tx_tcap_exp_any(tcap_msg, alt_asp_idx); + }
/* TCAP Continue: O -> T */ tcap_msg := ts_TCAP_Continue(o_tid, t_tid); @@ -377,6 +381,40 @@ setverdict(pass); }
+/* test routing TCAP traffic from IPA AS to M3UA AS + The answer is sent from a different point code than the request dpc */ +testcase TC_tcap_loadshare_m3ua_to_ipa_different_opc () runs on TCAP_CT { + var template (value) IPA_EXT_TCAP_ROUTING_Message tcap_rt_msg; + var Misc_Helpers.ro_charstring tcap_asps := { "asp-m3ua-loadshare-0-0", + "asp-m3ua-loadshare-0-1", + "asp-ipa-loadshare-0-0", + "asp-ipa-loadshare-0-1" }; + var TCAP_CT_Configurations tcap_configs := tcap_build_configs(tcap_asps); + + /* Patch own PC from asp-m3ua-loadshare-0-1 to test a TCAP continue + from a differen PC. */ + tcap_configs[1].cfg.own_pc := 42; + + f_init_tcap(tcap_configs); + + /* Configure TCAP routing on ASP "asp-ipa-loadshare-0-0": */ + tcap_rt_msg := ts_IPA_EXT_TCAP_ROUTING_ADD_RANGE(seq_nr := 0, + tid_start := 0, + tid_end := 99, + pc := tcap_configs[2].cfg.own_pc, + ssn := tcap_configs[2].cfg.own_ssn); + f_asp_tx_ipa_ext_tcap_routing(tcap_rt_msg, 2); + + /* Configure TCAP routing on ASP "asp-ipa-loadshare-0-1": */ + tcap_rt_msg.u.add_range.tid_start := 100; + tcap_rt_msg.u.add_range.tid_end := 199; + f_asp_tx_ipa_ext_tcap_routing(tcap_rt_msg, 3); + + f_asp_tx_tcap_m3ua_ipa_transaction(0, 2, int2oct(77, 4), int2oct(42, 4), 1); + + setverdict(pass); +} +
/* Test m3ua routing towards IPA/TCAP and register for wildcards ssn/pc */ @@ -700,6 +738,7 @@ control { execute( TC_tcap_loadshare_ipa_to_ipa() ); execute( TC_tcap_loadshare_m3ua_to_ipa() ); + execute( TC_tcap_loadshare_m3ua_to_ipa_different_opc() ); execute( TC_tcap_loadshare_m3ua_to_ipa_50() ); execute( TC_tcap_loadshare_m3ua_to_ipa_wildcard() ); execute( TC_tcap_loadshare_ipa_tcap_range_fail_overlap_same() );