Change in osmo-ttcn3-hacks[master]: pcu: TC_rim_ran_info_req_single_rep: don't duplicate si_default locally

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

pespin gerrit-no-reply at lists.osmocom.org
Fri Feb 5 17:11:12 UTC 2021


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


Change subject: pcu: TC_rim_ran_info_req_single_rep: don't duplicate si_default locally
......................................................................

pcu: TC_rim_ran_info_req_single_rep: don't duplicate si_default locally

The same values are available for several tests as gloval consts.

Change-Id: I32b7d841bc1fa896f9866c5d7fba857e1ca65ab3
---
M pcu/PCU_Tests.ttcn
1 file changed, 4 insertions(+), 10 deletions(-)



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

diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn
index 5f75992..0b887db 100644
--- a/pcu/PCU_Tests.ttcn
+++ b/pcu/PCU_Tests.ttcn
@@ -4124,9 +4124,6 @@
  * PCUIF on startup. */
 testcase TC_rim_ran_info_req_single_rep() runs on RAW_PCU_Test_CT {
 	const BssgpBvci bvci := mp_gb_cfg.bvc[0].bvci;
-	var octetstring si1_expect := '198fb100000000000000000000000000007900002b'O;
-	var octetstring si3_expect := '1b753000f110236ec9033c2747407900003c0b2b2b'O;
-	var octetstring si13_expect := '009000185a6fc9e08410ab2b2b2b2b2b2b2b2b2b2b'O;
 	timer T := 2.0;
 
 	/* Initialize NS/BSSGP side */
@@ -4139,11 +4136,11 @@
 	f_bssgp_establish();
 
 	/* Send sysinfo to the PCU */
-	var template PCUIF_Message si1_data_ind := ts_PCUIF_DATA_IND(0, 0, 0, 0, PCU_IF_SAPI_BCCH, '5506'O & si1_expect, 0, 0, 0, 0, 32767);
+	var template PCUIF_Message si1_data_ind := ts_PCUIF_DATA_IND(0, 0, 0, 0, PCU_IF_SAPI_BCCH, '5506'O & si1_default, 0, 0, 0, 0, 32767);
 	BTS.send(si1_data_ind);
-	var template PCUIF_Message si3_data_ind := ts_PCUIF_DATA_IND(0, 0, 0, 0, PCU_IF_SAPI_BCCH, '4906'O & si3_expect, 0, 0, 0, 0, 32767);
+	var template PCUIF_Message si3_data_ind := ts_PCUIF_DATA_IND(0, 0, 0, 0, PCU_IF_SAPI_BCCH, '4906'O & si3_default, 0, 0, 0, 0, 32767);
 	BTS.send(si3_data_ind);
-	var template PCUIF_Message si16_data_ind := ts_PCUIF_DATA_IND(0, 0, 0, 0, PCU_IF_SAPI_BCCH, '0106'O & si13_expect, 0, 0, 0, 0, 32767);
+	var template PCUIF_Message si16_data_ind := ts_PCUIF_DATA_IND(0, 0, 0, 0, PCU_IF_SAPI_BCCH, '0106'O & si13_default, 0, 0, 0, 0, 32767);
 	BTS.send(si16_data_ind);
 	f_sleep(1.0);
 
@@ -4158,9 +4155,6 @@
 	src_addr := valueof(t_RIM_Routing_Address_cid(src_cid));
 	dst_addr := valueof(t_RIM_Routing_Address_cid(mp_gb_cfg.bvc[0].cell_id));
 
-
-	var octetstring si_expect := si1_expect & si3_expect & si13_expect;
-
 	req_cont := ts_RAN_Information_Request_RIM_Container(ts_RIM_Application_Identity(RIM_APP_ID_NACC),
 							     ts_RIM_Sequence_Number(1),
 							     ts_RIM_PDU_Indications(false, RIM_PDU_TYPE_SING_REP),
@@ -4175,7 +4169,7 @@
 							    tr_RIM_Sequence_Number(1),
 							    tr_RIM_PDU_Indications(false, RIM_PDU_TYPE_SING_REP),
 							    tr_RIM_Protocol_Version_Number(1),
-							    tru_ApplContainer_or_ApplErrContainer_NACC(tru_ApplContainer_NACC(mp_gb_cfg.bvc[0].cell_id, false, 3, si_expect)),
+							    tru_ApplContainer_or_ApplErrContainer_NACC(tru_ApplContainer_NACC(mp_gb_cfg.bvc[0].cell_id, false, 3, si_default)),
 							    omit);
 
 	bssgp_rim_pdu_expect := tr_PDU_BSSGP_RAN_INFORMATION(tr_RIM_Routing_Information(RIM_ADDR_GERAN_CELL_ID, src_addr),

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


More information about the gerrit-log mailing list