Change in osmo-ttcn3-hacks[master]: ns2: add TC_sns_sgsn_del to test SNS DEL on the SGSN side

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/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Sun Sep 5 19:45:20 UTC 2021


lynxis lazus has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25339 )

Change subject: ns2: add TC_sns_sgsn_del to test SNS DEL on the SGSN side
......................................................................

ns2: add TC_sns_sgsn_del to test SNS DEL on the SGSN side

Test the SNS DEL procedure when ns2 is operating the SGSN side.

Change-Id: If519da5212470957b922c569b2b8e5a50e12a8a8
---
M ns/NS_Tests.ttcn
1 file changed, 22 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/ns/NS_Tests.ttcn b/ns/NS_Tests.ttcn
index e9c3bf4..b45ab91 100644
--- a/ns/NS_Tests.ttcn
+++ b/ns/NS_Tests.ttcn
@@ -730,6 +730,27 @@
 	f_clean_ns_codec();
 }
 
+testcase TC_sns_sgsn_del() runs on RAW_Test_CT {
+	g_handle_rx_alive := true;
+	f_init_vty();
+	f_init_ns_codec(mp_nsconfig);
+	f_init_ns_codec(mp_nsconfig, 1);
+	f_outgoing_sns_size(max_nsvcs := 4, num_ip := 4);
+	f_outgoing_sns_config();
+	f_incoming_sns_config();
+	activate(as_rx_alive_tx_ack());
+
+	f_vty_config2(NSVTY, {"ns", "nse " & int2str(g_nsconfig.nsei)}, "ip-sns-bind local2");
+	f_incoming_sns_add(idx_add := 1);
+	as_rx_alive_tx_ack(oneshot := true, idx := 1);
+
+	/* delete the endpoint */
+	f_vty_config2(NSVTY, {"ns", "nse " & int2str(g_nsconfig.nsei)}, "no ip-sns-bind local2");
+	f_incoming_sns_del(idx_del := 1);
+
+	setverdict(pass);
+	f_clean_ns_codec();
+}
 
 control {
 	if (mp_dialect == NS2_DIALECT_STATIC_RESETBLOCK or mp_dialect == NS2_DIALECT_IPACCESS) {
@@ -790,6 +811,7 @@
 		if (mp_sns_role == SNS_ROLE_SGSN) {
 			execute( TC_sns_sgsn_config_success() );
 			execute( TC_sns_sgsn_add() );
+			execute( TC_sns_sgsn_del() );
 		}
 	}
 }

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25339
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: If519da5212470957b922c569b2b8e5a50e12a8a8
Gerrit-Change-Number: 25339
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210905/e04d5b48/attachment.htm>


More information about the gerrit-log mailing list