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

lynxis lazus gerrit-no-reply at lists.osmocom.org
Fri Aug 6 20:14:35 UTC 2021


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


Change subject: ns2: add TC_sns_sgsn_add to test SNS ADD on the SGSN side
......................................................................

ns2: add TC_sns_sgsn_add to test SNS ADD on the SGSN side

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



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

diff --git a/ns/NS_Tests.ttcn b/ns/NS_Tests.ttcn
index fcc5dbb..99f0a1c 100644
--- a/ns/NS_Tests.ttcn
+++ b/ns/NS_Tests.ttcn
@@ -708,6 +708,25 @@
 	f_clean_ns_codec();
 }
 
+testcase TC_sns_sgsn_add() 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);
+
+	setverdict(pass);
+	f_clean_ns_codec();
+}
+
+
 control {
 	if (mp_dialect == NS2_DIALECT_STATIC_RESETBLOCK or mp_dialect == NS2_DIALECT_IPACCESS) {
 		execute( TC_tx_reset() );
@@ -766,6 +785,7 @@
 
 		if (mp_sns_side == SNS_SIDE_SGSN) {
 			execute( TC_sns_sgsn_config_success() );
+			execute( TC_sns_sgsn_add() );
 		}
 	}
 }

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25140
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: I7474ea81ee905fb9fffb6c413b312e0b3547ea14
Gerrit-Change-Number: 25140
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210806/c7d19ed2/attachment.htm>


More information about the gerrit-log mailing list