summaryrefslogtreecommitdiffstats
path: root/stp
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-05-13 21:10:25 +0200
committerHarald Welte <laforge@osmocom.org>2021-05-13 21:30:04 +0200
commit5ef25533cfde388c1d8fbf13784df211aae70f72 (patch)
tree9ed3d8a3ff5ad849b155180c8e09a4850bc9b26e /stp
parent30cb40037db027e25c2626955095743173dba914 (diff)
stp: Add tests for "daud_in_asp" quirk.
Diffstat (limited to 'stp')
-rw-r--r--stp/STP_Tests_M3UA.ttcn38
1 files changed, 38 insertions, 0 deletions
diff --git a/stp/STP_Tests_M3UA.ttcn b/stp/STP_Tests_M3UA.ttcn
index 1e55b36d..78819b49 100644
--- a/stp/STP_Tests_M3UA.ttcn
+++ b/stp/STP_Tests_M3UA.ttcn
@@ -894,6 +894,42 @@ testcase TC_clnt_quirk_no_notify_asp_act() runs on RAW_M3UA_CT {
f_clear_m3ua();
}
+/* ensure that DAUD is not supported in ASP role, as required by RFC */
+testcase TC_clnt_no_daud_in_asp() runs on RAW_M3UA_CT {
+ f_init_m3ua();
+ f_no_quirk("daud_in_asp");
+ f_init_m3ua_srv();
+
+ var OCT4 rctx := int2oct(mp_m3ua_configs[M3UA_SRV(0)].routing_ctx, 4);
+
+ f_M3UA_CLNT_asp_up_act(M3UA_SRV(0), rctx := rctx);
+
+ var template (value) M3UA_Point_Codes aff_pcs := { ts_M3UA_PC(mp_m3ua_configs[M3UA_SRV(0)].point_code) };
+ f_M3UA_send(M3UA_SRV(0), ts_M3UA_DAUD(aff_pcs));
+ f_M3UA_exp(M3UA_SRV(0), tr_M3UA_ERR('00000004'O, omit));
+ setverdict(pass);
+
+ f_clear_m3ua();
+}
+
+/* quirk 'daud_in_asp': allowing inbound DAUD from SG in ASP role */
+testcase TC_clnt_quirk_daud_in_asp() runs on RAW_M3UA_CT {
+ f_init_m3ua();
+ f_quirk("daud_in_asp");
+ f_init_m3ua_srv();
+
+ var OCT4 rctx := int2oct(mp_m3ua_configs[M3UA_SRV(0)].routing_ctx, 4);
+
+ f_M3UA_CLNT_asp_up_act(M3UA_SRV(0), rctx := rctx);
+
+ var template (value) M3UA_Point_Codes aff_pcs := { ts_M3UA_PC(mp_m3ua_configs[M3UA_SRV(0)].point_code) };
+ f_M3UA_send(M3UA_SRV(0), ts_M3UA_DAUD(aff_pcs));
+ f_M3UA_exp(M3UA_SRV(0), tr_M3UA_DAVA(aff_pcs));
+ setverdict(pass);
+
+ f_no_quirk("daud_in_asp");
+ f_clear_m3ua();
+}
control {
/* M3UA Tests */
@@ -930,6 +966,8 @@ control {
/* remove the condition if osmo-stp > 1.4.0 is released */
if (mp_stp_has_asp_quirk) {
execute( TC_clnt_quirk_no_notify_asp_act() );
+ execute( TC_clnt_no_daud_in_asp() );
+ execute( TC_clnt_quirk_daud_in_asp() );
}
/* M3UA SSNM tests */