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

Change subject: stp: Define IUT default T(beat) in mp_t_beat_sec_default
......................................................................

stp: Define IUT default T(beat) in mp_t_beat_sec_default

Several tests expect to know this value from the IUT in order to test
related features. Since it will be used in more places in follow-up
patches, move it so the information only needs to be configured once.

Change-Id: Ic518e0d35f377fef85344177b630eb8599ec22d0
---
M stp/STP_Tests_Common.ttcn
M stp/STP_Tests_IPA.ttcn
M stp/STP_Tests_M3UA.ttcn
3 files changed, 7 insertions(+), 2 deletions(-)

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




diff --git a/stp/STP_Tests_Common.ttcn b/stp/STP_Tests_Common.ttcn
index 0a0a436..16b6406 100644
--- a/stp/STP_Tests_Common.ttcn
+++ b/stp/STP_Tests_Common.ttcn
@@ -28,6 +28,11 @@
 import from SCCPasp_Types all;
 import from SCCP_Emulation all;

+modulepar {
+       /* Default T(beat) configured at the IUT ASP, in seconds */
+       integer mp_t_beat_sec_default := 30;
+}
+
 function f_SCCP_UDT(template (value) SCCP_PAR_Address calling := 
ts_SccpAddr_GT('5678'H),
                    template (value) SCCP_PAR_Address called := 
ts_SccpAddr_GT('1234'H),
                    template (omit) octetstring data := omit) return octetstring
diff --git a/stp/STP_Tests_IPA.ttcn b/stp/STP_Tests_IPA.ttcn
index 431bdd4..7225949 100644
--- a/stp/STP_Tests_IPA.ttcn
+++ b/stp/STP_Tests_IPA.ttcn
@@ -849,7 +849,7 @@
        }

        /* return to default value: */
-       f_vty_cs7_ipa_asp_cmd(g_ipa_configs[0], "timer xua beat 30");
+       f_vty_cs7_ipa_asp_cmd(g_ipa_configs[0], "timer xua beat " & 
int2str(STP_Tests_Common.mp_t_beat_sec_default));
 }
 
 /* Test the IUT sends heartbeat procedure when needed. */
diff --git a/stp/STP_Tests_M3UA.ttcn b/stp/STP_Tests_M3UA.ttcn
index ac9cc25..7debed6 100644
--- a/stp/STP_Tests_M3UA.ttcn
+++ b/stp/STP_Tests_M3UA.ttcn
@@ -598,7 +598,7 @@
        }

        /* return to default value: */
-       f_vty_cs7_asp_cmd(g_m3ua_configs[0], "timer xua beat 30");
+       f_vty_cs7_asp_cmd(g_m3ua_configs[0], "timer xua beat " & 
int2str(STP_Tests_Common.mp_t_beat_sec_default));

        f_clear_m3ua();
 }

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43158?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: Ic518e0d35f377fef85344177b630eb8599ec22d0
Gerrit-Change-Number: 43158
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to