Change in osmo-ttcn3-hacks[master]: bsc: verify new CTRL 'rf_states' and 'bts.N.rf_states'

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

neels gerrit-no-reply at lists.osmocom.org
Mon Sep 6 20:15:24 UTC 2021


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


Change subject: bsc: verify new CTRL 'rf_states' and 'bts.N.rf_states'
......................................................................

bsc: verify new CTRL 'rf_states' and 'bts.N.rf_states'

Related: SYS#5542
Depends: I14fa2678fc8f2c11a879c5e9615ac552782c5b7e (osmo-bsc)
Change-Id: I01e6f391a5e71b0606c42be9b57f8a1687d59bcb
---
M bsc/BSC_Tests.ttcn
1 file changed, 25 insertions(+), 0 deletions(-)



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

diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index d0c2fe6..b87446d 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -2848,6 +2848,31 @@
 	f_ctrl_get_exp(IPA_CTRL, "stat_item.last.bsc.0.num_trx:rsl_connected", int2str(nr_bts));
 	f_ctrl_get_exp(IPA_CTRL, "stat_item.last.bsc.0.num_trx:total", int2str(NUM_BTS_CFG));
 
+	/* Verify rf_states exposed on CTRL interface */
+	var charstring expect_net_rf_states := "";
+	for (var integer i := 0; i < NUM_BTS_CFG; i := i + 1) {
+		var charstring expect_bts_rf_states := int2str(i) & ",0,";
+		if (i < NUM_BTS) {
+			/* In these tests, OML for the first NUM_BTS are always connected via osmo-bts-omldummy */
+			expect_bts_rf_states := expect_bts_rf_states & "operational,unlocked,";
+		} else {
+			/* For remaining i < NUM_BTS_CFG, OML is not connected, i.e. inoperational */
+			expect_bts_rf_states := expect_bts_rf_states & "inoperational,locked,";
+		}
+		/* The RF policy is still global in osmo-bsc, i.e. always "on" */
+		expect_bts_rf_states := expect_bts_rf_states & "on,";
+		if (i < nr_bts) {
+			/* For BTS where RSL is connected, the RSL state will be "up" */
+			expect_bts_rf_states := expect_bts_rf_states & "rsl-up;";
+		} else {
+			expect_bts_rf_states := expect_bts_rf_states & "rsl-down;";
+		}
+
+		f_ctrl_get_exp(IPA_CTRL, "bts." & int2str(i) & ".rf_states", expect_bts_rf_states);
+		expect_net_rf_states := expect_net_rf_states & expect_bts_rf_states;
+	}
+	f_ctrl_get_exp(IPA_CTRL, "rf_states", expect_net_rf_states);
+
 	f_shutdown_helper();
 }
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25388
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: I01e6f391a5e71b0606c42be9b57f8a1687d59bcb
Gerrit-Change-Number: 25388
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210906/43c59f80/attachment.htm>


More information about the gerrit-log mailing list