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/.
Harald Welte gerrit-no-reply at lists.osmocom.orgReview at https://gerrit.osmocom.org/5556 convert TC_assignment_sign to 'new style' tests the use of the MSC_ConnHdlr automatically handles the MODIFY on both RR and RSL level. Change-Id: Iad7122ff5220ffc1640d802db47b1aa97986ed5b --- M bsc/BSC_Tests.ttcn 1 file changed, 19 insertions(+), 9 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/56/5556/1 diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn index b530db2..4c88788 100644 --- a/bsc/BSC_Tests.ttcn +++ b/bsc/BSC_Tests.ttcn @@ -526,15 +526,6 @@ f_assignment_exp(ass_cmd, exp_fail, "BSC accepted Assignment for Speech+CTM"); } -testcase TC_assignment_sign() runs on test_CT { - var template PDU_BSSAP exp_compl := tr_BSSMAP_AssignmentComplete(omit, omit); - var BSSMAP_IE_AoIP_TransportLayerAddress tla := valueof(ts_BSSMAP_IE_AoIP_TLA4('01020304'O, 2342)); - var PDU_BSSAP ass_cmd := valueof(ts_BSSMAP_AssignmentReq(omit, tla)); - - ass_cmd.pdu.bssmap.assignmentRequest.channelType := valueof(ts_BSSMAP_IE_ChannelTypeSIGNAL); - f_assignment_exp(ass_cmd, exp_compl, "BSC failed SIGNALLING assignment"); -} - type record DchanTuple { integer sccp_conn_id, RslChannelNr rsl_chan_nr @@ -1371,6 +1362,25 @@ } +private function f_tc_assignment_sign(charstring id) runs on MSC_ConnHdlr { + var TestHdlrParams pars := valueof(t_def_TestHdlrPars); + var template PDU_BSSAP exp_compl := tr_BSSMAP_AssignmentComplete(omit, omit); + var PDU_BSSAP ass_cmd := valueof(ts_BSSMAP_AssignmentReq(omit, omit)); + + ass_cmd.pdu.bssmap.assignmentRequest.channelType := valueof(ts_BSSMAP_IE_ChannelTypeSIGNAL); + f_establish_fully(pars, ass_cmd, exp_compl); +} + +testcase TC_assignment_sign() runs on test_CT { + var MSC_ConnHdlr vc_conn; + + f_init(1, true); + f_sleep(1.0); + + vc_conn := f_start_handler(refers(f_tc_assignment_sign), testcasename()); + vc_conn.done; +} + control { -- To view, visit https://gerrit.osmocom.org/5556 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iad7122ff5220ffc1640d802db47b1aa97986ed5b Gerrit-PatchSet: 1 Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Owner: Harald Welte <laforge at gnumonks.org>