From 693476da5de6c7df247f62eca876102ce76779a1 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 1 Apr 2021 22:55:11 +0200 Subject: [PATCH] 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 --- gbproxy/GBProxy_Tests.cfg | 1 + gbproxy/GBProxy_Tests_Outage.ttcn | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 gbproxy/GBProxy_Tests_Outage.ttcn diff --git a/gbproxy/GBProxy_Tests.cfg b/gbproxy/GBProxy_Tests.cfg index d610e407d..1aeb7eb49 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 000000000..3433c9cba --- /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 + * (C) 2020 sysmocom - s.f.m.c. GmbH + * All rights reserved. + * + * Author: Daniel Willmann + + * 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() ); +} + + +}