pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/41954?usp=email )

Change subject: sccp: Introduce test TC_local_unavailable_user_part_dupu
......................................................................

sccp: Introduce test TC_local_unavailable_user_part_dupu

Related: OS#6907
Related: OS#6891
Change-Id: Ia0e71cc98c267692bc9230be8d15bbc861d5daad
---
M sccp/SCCP_Tests_RAW.ttcn
1 file changed, 30 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, approved
  osmith: Looks good to me, but someone else must approve




diff --git a/sccp/SCCP_Tests_RAW.ttcn b/sccp/SCCP_Tests_RAW.ttcn
index f0d716a..9b53a1c 100644
--- a/sccp/SCCP_Tests_RAW.ttcn
+++ b/sccp/SCCP_Tests_RAW.ttcn
@@ -12,6 +12,8 @@

 module SCCP_Tests_RAW {

+import from MTP3asp_Types all;
+
 import from General_Types all;
 import from Osmocom_Types all;
 import from Misc_Helpers all;
@@ -535,6 +537,32 @@
        setverdict(pass);
 }

+/* test whether the M3UA stack under SCCP sends back a M3UA DUPU when receiving
+ * a pkt towards a local unavailable User Part */
+testcase TC_local_unavailable_user_part_dupu() runs on SCCP_Test_RAW_CT {
+       f_init_raw(mp_sccp_cfg[0]);
+       f_sleep(1.0);
+
+       var MTP3_Field_sio unavail_sio := g_param.sio;
+       unavail_sio.si := '0100'B; /* SI=DUP */
+       var SCCP_MTP3_TRANSFERreq tx := {
+               sio := unavail_sio,
+               opc := g_param.opc,
+               dpc := g_param.dpc,
+               sls := g_param.sls,
+               data := valueof(ts_SCCP_CC(g_own_lref, '000000'O))
+       };
+       MTP3.send(tx);
+
+       /* TODO: Here we should wait to receive a MTP-STATUS.ind in MTP3 port 
generated by
+        * received DUPU (see 
https://datatracker.ietf.org/doc/html/rfc4666#section-5.5.2.3.4),
+        * but forwarding non-data M3UA messages up the stack is not yet 
implemented
+        * in M3UA_Emulation.ttcn, see OS#6907. */
+       f_sleep(1.0);
+
+       setverdict(pass);
+}
+

 control {
        execute( TC_cr_cc() );
@@ -550,6 +578,8 @@

        execute( TC_callingparty_ssn_only() );
        execute( TC_cr_timeout_cc_too_late() );
+
+       execute( TC_local_unavailable_user_part_dupu() );
 }



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

Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ia0e71cc98c267692bc9230be8d15bbc861d5daad
Gerrit-Change-Number: 41954
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-CC: fixeria <[email protected]>

Reply via email to