summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2021-09-06 22:06:02 +0200
committerneels <nhofmeyr@sysmocom.de>2021-09-14 08:31:04 +0000
commita41ae30a1ee8320b5e7b30809552a29efaa785b6 (patch)
treead289a9774666484330b72c9e3ffb514fbca1cc2
parent5ce3ae400dd14eac51128eee93b5eafcf745af38 (diff)
bsc: verify new CTRL 'rf_states' and 'bts.N.rf_states'
-rw-r--r--bsc/BSC_Tests.ttcn25
1 files changed, 25 insertions, 0 deletions
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index cbe6bad7..965a4484 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -2850,6 +2850,31 @@ private function f_tc_stat_num_bts_connected_test_ct(void_fn tc_fn, integer nr_b
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();
}