From 53050cdac4c39c46296e9636567c375d525fe1df Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 1 Dec 2019 20:49:01 +0100 Subject: 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 --- stp/STP_Tests_M3UA.ttcn | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'stp') 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() ); } -- cgit v1.2.3