Change in osmo-ttcn3-hacks[master]: gbproxy: Add GBProxy_Tests_Outage

laforge gerrit-no-reply at lists.osmocom.org
Sun Apr 25 12:29:07 UTC 2021


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


Change subject: gbproxy: Add GBProxy_Tests_Outage
......................................................................

gbproxy: Add GBProxy_Tests_Outage

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
---
M gbproxy/GBProxy_Tests.cfg
A gbproxy/GBProxy_Tests_Outage.ttcn
2 files changed, 30 insertions(+), 0 deletions(-)



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

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 @@
 
 [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 at osmocom.org>
+ * (C) 2020 sysmocom - s.f.m.c. GmbH
+ * All rights reserved.
+ *
+ * Author: Daniel Willmann <dwillmann at 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() );
+}
+
+
+}

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23887
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: I421baa83611baf5df9374ef1598f7c37189dd961
Gerrit-Change-Number: 23887
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210425/3b5a4a92/attachment.htm>


More information about the gerrit-log mailing list