Change in osmo-ttcn3-hacks[master]: stp: Add tests for "daud_in_asp" quirk.

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Thu May 13 19:30:15 UTC 2021


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24229 )


Change subject: stp: Add tests for "daud_in_asp" quirk.
......................................................................

stp: Add tests for "daud_in_asp" quirk.

Change-Id: Ie7e817dc92da4b9103fa50bd3a8240fbe20ddc68
Related: OS#5147
---
M stp/STP_Tests_M3UA.ttcn
1 file changed, 38 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/29/24229/1

diff --git a/stp/STP_Tests_M3UA.ttcn b/stp/STP_Tests_M3UA.ttcn
index 1e55b36..78819b4 100644
--- a/stp/STP_Tests_M3UA.ttcn
+++ b/stp/STP_Tests_M3UA.ttcn
@@ -894,6 +894,42 @@
 	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 @@
 	/* 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 */

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24229
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ie7e817dc92da4b9103fa50bd3a8240fbe20ddc68
Gerrit-Change-Number: 24229
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210513/3a9dfbc1/attachment.htm>


More information about the gerrit-log mailing list