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/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20681 ) Change subject: bts-oml: Verify BTS obj becomes Enabled durig OPSTART ACK ...................................................................... bts-oml: Verify BTS obj becomes Enabled durig OPSTART ACK Change-Id: Iabe2677a458e169e646eb5a105ec9897c48eecc4 --- M bts/BTS_Tests_OML.ttcn M library/AbisOML_Types.ttcn 2 files changed, 29 insertions(+), 5 deletions(-) Approvals: laforge: Looks good to me, approved Jenkins Builder: Verified diff --git a/bts/BTS_Tests_OML.ttcn b/bts/BTS_Tests_OML.ttcn index dc1b7ce..396ed38 100644 --- a/bts/BTS_Tests_OML.ttcn +++ b/bts/BTS_Tests_OML.ttcn @@ -113,11 +113,33 @@ /* Perform an "OPSTART" procedure with the speciifed MO" */ private function f_oml_opstart(template (value) OML_FOM_ObjectClass obj_class, template (value) OML_FOM_ObjectInstance obj_inst, - boolean exp_fail := false) + boolean exp_fail := false, + template OML_FOM_OperationalState exp_stchg := ?) runs on BSC_OML_CT { + var boolean check_stchg := not istemplatekind(exp_stchg, "?"); + var boolean ack_received := false; + var boolean stchg_received := not check_stchg; + OML.send(ts_OML_Opstart(obj_class, obj_inst)); + alt { + [check_stchg] OML.receive(tr_OML_StateChgEvtRep(obj_class, obj_inst, + exp_stchg, NM_AVSTATE_OK)) { + stchg_received := true; + if (not ack_received) { + repeat; + } + setverdict(pass); + } + [check_stchg] OML.receive(tr_OML_StateChgEvtRep(obj_class, obj_inst, + ?, NM_AVSTATE_OK)) { + setverdict(fail, "Unexpected State Change for ", obj_class, " ", obj_inst); + } [not exp_fail] OML.receive(tr_OML_OpstartACK(obj_class, obj_inst)) { + ack_received := true; + if (not stchg_received) { + repeat; + } setverdict(pass); } [not exp_fail] OML.receive(tr_OML_OpstartNACK(obj_class, obj_inst)) { @@ -515,7 +537,7 @@ } f_oml_bts_attr(); - f_oml_opstart(obj_class, obj_inst); + f_oml_opstart(obj_class, obj_inst, false, NM_OPSTATE_ENABLED); } diff --git a/library/AbisOML_Types.ttcn b/library/AbisOML_Types.ttcn index c4fd81c..0a562ae 100644 --- a/library/AbisOML_Types.ttcn +++ b/library/AbisOML_Types.ttcn @@ -100,7 +100,7 @@ NM_MT_DISC_TERR_TRAF ('2d'H), NM_MT_DISC_TERR_TRAF_ACK ('2e'H), NM_MT_DISC_TERR_TRAF_NACK ('2f'H), - /* Transmission Management Messages */ + /* Transmission Management Messages */ NM_MT_CONN_MDROP_LINK ('31'H), NM_MT_CONN_MDROP_LINK_ACK ('32'H), NM_MT_CONN_MDROP_LINK_NACK ('33'H), @@ -884,10 +884,12 @@ template OML_PDU tr_OML_StateChgEvtRep(template OML_FOM_ObjectClass obj_class, template OML_FOM_ObjectInstance obj_inst, template OML_FOM_OperationalState opstate := ?, - template OML_FOM_AvailabilityStatus avstate := ?) := + template OML_FOM_AvailabilityStatus avstate := ?, + template OML_FOM_AdministrativeState admstate := ?) := tr_OML_MsgType(NM_MT_STATECHG_EVENT_REP, obj_class, obj_inst, { tr_OML_IE(NM_ATT_OPER_STATE, OML_FOM_IE_Body:{opstate := opstate}), - tr_OML_IE(NM_ATT_AVAIL_STATUS, OML_FOM_IE_Body:{avail_status := {len := 1, avail_status := avstate}}) + tr_OML_IE(NM_ATT_AVAIL_STATUS, OML_FOM_IE_Body:{avail_status := {len := 1, avail_status := avstate}}), + tr_OML_IE(NM_ATT_ADM_STATE, OML_FOM_IE_Body:{adm_state := admstate}) }); /* 8.8.2 Failure Event Report */ -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20681 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: Iabe2677a458e169e646eb5a105ec9897c48eecc4 Gerrit-Change-Number: 20681 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin at sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: daniel <dwillmann at sysmocom.de> Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de> Gerrit-Reviewer: laforge <laforge at osmocom.org> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201019/50afcccd/attachment.htm>