summaryrefslogtreecommitdiffstats
path: root/stp
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2019-12-01 20:49:01 +0100
committerHarald Welte <laforge@osmocom.org>2019-12-01 20:51:12 +0100
commit53050cdac4c39c46296e9636567c375d525fe1df (patch)
tree4a0708db0957b8a5f7ae65e0ab86319237ec8084 /stp
parentdfbca117e3fa6e41d63858c1ef5382993d5c143a (diff)
stp: Add TC_clnt_asp_act_tmt_loadshare()
This test case checks if the traffic-mode is communicated to the SG if we operate in ASP mode. Change-Id: If7d84b73b36a91fb697daf6263ec93b8672cbdc2 Related: OS#4285
Diffstat (limited to 'stp')
-rw-r--r--stp/STP_Tests_M3UA.ttcn15
1 files changed, 15 insertions, 0 deletions
diff --git a/stp/STP_Tests_M3UA.ttcn b/stp/STP_Tests_M3UA.ttcn
index 23f93d88..a44e6ad2 100644
--- a/stp/STP_Tests_M3UA.ttcn
+++ b/stp/STP_Tests_M3UA.ttcn
@@ -554,6 +554,18 @@ testcase TC_clnt_asp_act() runs on RAW_M3UA_CT {
f_clear_m3ua();
}
+/* Expect inbound connection from ASP/SCTP-client, followed by ASP-UP + ASP-ACT */
+testcase TC_clnt_asp_act_tmt_loadshare() runs on RAW_M3UA_CT {
+ f_init_common();
+ f_vty_config2(VTY, {"cs7 instance 0", "as as-client m3ua"}, "traffic-mode loadshare");
+ f_init_m3ua();
+ f_init_m3ua_srv();
+
+ f_M3UA_CLNT_asp_up_act(M3UA_SRV(0), tmt := c_M3UA_TMT_loadshare, rctx := int2oct(1055, 4));
+
+ f_clear_m3ua();
+}
+
/* Test traffic being routed through "server" side STP (M3UA SG), coming back in "client"
* side STP (M3UA ASP) */
testcase TC_clnt_sg_to_asp() runs on RAW_M3UA_CT {
@@ -629,6 +641,9 @@ control {
execute( TC_clnt_asp_act() );
execute( TC_clnt_sg_to_asp() );
execute( TC_clnt_asp_to_sg() );
+
+ /* put this one last as it changes the stp side config */
+ execute( TC_clnt_asp_act_tmt_loadshare() );
}