summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-04-01 22:55:11 +0200
committerHarald Welte <laforge@osmocom.org>2021-04-01 22:58:59 +0200
commit585aac84d8c67842d20cf34300e7e93b114eea5a (patch)
treeaf62c4a9ee0a48c5a2647a9a19859c6805b13b6c
parent0ffce4e22595409d6f299c0eeaaf9e948f213f47 (diff)
gbproxy: Add GBProxy_Tests_Outagelaforge/sns
This test runs TC_BVC_bringup, terminates all components, waits long enough for all NSVCs to go dead, and then re-starts TC_BVC_bringup to see if it still recovers. Change-Id: I421baa83611baf5df9374ef1598f7c37189dd961
-rw-r--r--gbproxy/GBProxy_Tests.cfg1
-rw-r--r--gbproxy/GBProxy_Tests_Outage.ttcn29
2 files changed, 30 insertions, 0 deletions
diff --git a/gbproxy/GBProxy_Tests.cfg b/gbproxy/GBProxy_Tests.cfg
index d610e40..1aeb7eb 100644
--- a/gbproxy/GBProxy_Tests.cfg
+++ b/gbproxy/GBProxy_Tests.cfg
@@ -25,3 +25,4 @@ GBProxy_Tests.mp_nsconfig_sgsn := {
[EXECUTE]
GBProxy_Tests.control
+GBProxy_Tests_Outage.control
diff --git a/gbproxy/GBProxy_Tests_Outage.ttcn b/gbproxy/GBProxy_Tests_Outage.ttcn
new file mode 100644
index 0000000..3433c9c
--- /dev/null
+++ b/gbproxy/GBProxy_Tests_Outage.ttcn
@@ -0,0 +1,29 @@
+module GBProxy_Tests_Outage {
+
+/* Osmocom GBProxy test suite in TTCN-3
+ * (C) 2020-2021 Harald Welte <laforge@osmocom.org>
+ * (C) 2020 sysmocom - s.f.m.c. GmbH
+ * All rights reserved.
+ *
+ * Author: Daniel Willmann <dwillmann@sysmocom.de>
+
+ * Released under the terms of GNU General Public License, Version 2 or
+ * (at your option) any later version.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+import from GBProxy_Tests all;
+import from Osmocom_Types all;
+
+/* we want to test recovery after an outage of some sort. So we first bring
+ * up everything, wait for some time until all state is lost, and then re-start
+ * from scratch */
+control {
+ execute( TC_BVC_bringup() );
+ f_sleep(90.0);
+ execute( TC_BVC_bringup() );
+}
+
+
+}