diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-09-29 19:48:26 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-09-29 20:11:22 +0700 |
commit | 6276b6cf520cd7d3333b62c09dc592db603a1032 (patch) | |
tree | ed9e7aa723bbad850f0e1654ea3708fbd8b7bf10 | |
parent | 740ae7614cd802f70d14af3ae536613da8615c7a (diff) |
PCU_Tests_RAW.ttcn: TC_cs_lqual_ul_tbf: properly check for Dynamic Assignment
According to 3GPP TS 44.018, section 10.5.2.16 "IA Rest Octets",
Packet Uplink Assignment can be either of the following types:
- single block allocation,
- dynamic allocation.
The current version of TC_cs_lqual_ul_tbf does not handle single
block allocation, so we need to make sure we got a TBF with
dynamic allocation.
Change-Id: I05cf0c62d21094fb53a9e5e54b404f3cf972a182
-rw-r--r-- | pcu/PCU_Tests_RAW.ttcn | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pcu/PCU_Tests_RAW.ttcn b/pcu/PCU_Tests_RAW.ttcn index 15a9cf6d..6b45af24 100644 --- a/pcu/PCU_Tests_RAW.ttcn +++ b/pcu/PCU_Tests_RAW.ttcn @@ -631,7 +631,6 @@ testcase TC_cs_lqual_ul_tbf() runs on RAW_PCU_Test_CT { } /* Make sure we received an UL TBF Assignment */ - /* TODO: check if we got single or dynamic assignment */ if (match(rr_msg, tr_IMM_TBF_ASS(dl := false, rest := tr_IaRestOctets_ULAss(?)))) { ul_tbf_ass := rr_msg.payload.imm_ass.rest_octets.hh.pa.uldl.ass.ul; log("Rx Uplink TBF assignment: ", ul_tbf_ass); @@ -641,6 +640,12 @@ testcase TC_cs_lqual_ul_tbf() runs on RAW_PCU_Test_CT { mtc.stop; } + /* Make sure we have got a TBF with Dynamic Block Allocation */ + if (ul_tbf_ass.dynamic == omit) { + setverdict(fail, "Single Block Allocation is not handled by ", testcasename()); + mtc.stop; + } + var template (value) RlcmacUlBlock ul_data := t_RLCMAC_UL_DATA( tfi := ul_tbf_ass.dynamic.tfi_assignment, cv := 15, /* 15 UL blocks to be sent (to be overridden in loop) */ |